Greetings,
Using WebSphere 6.1 with Spring 2.5. I have the following beans wireing file:
Somewhere in the code I have:Code:<jee:local-slsb id="..." jndi-name="..." business-interface="..."/>
The call to service.sayHello() raises the following exception:Code:ApplicationContext ctx = new ClassPathXmlApplicationContext ("..."); GenericService service = ctx.getBean("..."); System.out.println (service.sayHello ("..."));
The EJSLocalStatelessFacadeHome_651bbc32 class is the local home interface stub generated by the WebSphere deployer at the runtime. The exception is saying that the home interface doesn't have any sayHello method. And of course it doesn't, since this is a business method.Code:No such method while invoking a business method EJSLocalStatelessFacadeHome_651bbc32.sayHello(String)
Using SLSB in the normal way, without relying on AbstractStatelessSessionBeanFactory works properly. I wasn't able to find any real code using AbstractStatelessSessionBeanFactory and the 2 books plus all the docs I've read, provide the full samples code but, strangelly enough, the one concerning AbstractStatelessSessionBeanFactory.
Thinking that it might be a good reason to this miss and, as I'm not at all convinced about the advantages of using AbstractStatelessSessionBeanFactory, I'll probably go back to using the "normal way" SLSB, unless someone has a sample and wants to share it.
Kind regards,
Nicolas


Reply With Quote
