Accessing a STATEFUL Session Bean
I have been searching for examples on how to configure Spring to return the Remote interface for a STATEFUL Session Bean and have been unsuccessful. Its easy to do with a Stateless Session bean using the <jee:remote-slsb/> tag. Is there something similar to help with Stateful beans?
Any examples would be excellent.
Help with deployment problem -- and thanks
Andreas, Thanks for the reply. I was unclear as to whether you could have the proxy injected into your class or had to do somehting else to get it, your post cleared that up. I have one other thing you could help me with. I took the source files you provided, compiled them and put them in a spring-extensions.jar file, which I included in my EAR file. I then configured my webApplicatoinContext.xml the same as for a statless sesson bean, but change the class to the stateful proxy. Everything went fine until I tried to access the bean (I have lazy-init = true), then I get the ClassNotFoundException listed below. Is there something else I should be doing?
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '/statefulService1' defined in ServletContext resource [/WEB-INF/webapplicationcontext.xml]: Cannot resolve reference to bean 'statefulServiceController' while setting bean property 'serviceController'; nested exception is org.springframework.beans.factory.CannotLoadBeanCl assException: Cannot find class [org.springframework.ejb.access.SimpleRemoteStatefu lSessionProxyFactoryBean] for bean with name 'statefulServiceController' defined in ServletContext resource [/WEB-INF/webapplicationcontext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.ejb.access.SimpleRemoteStatefu lSessionProxyFactoryBean