I'm working on a reference implementation with Spring 2 and EJB 3. I'm using JBoss 4.2.0, Spring 2.0.5 with the new Sun SDK 5.
I've configured a Spring MVC controller to hold a "service" data member which should be injected with a stateless EJB 3. Here's the "<dispatcher-name>-servlet.xml" file:
..................
<bean id="ManageMemberService"
class="org.springframework.ejb.access.SimpleRemote StatelessSessionProxyFactoryBean" lazy-init="true">
<property name="jndiName"
value="JEEArchitecture-app/ManageMemberEJB/local" />
<property name="businessInterface"
value="com.companyName.services.membership.IManage Member" />
<property name="lookupHomeOnStartup" value="false" />
</bean>
<bean id="ManageMemberController"
class="com.healthnet.membership.web.controller.Man ageMemberController">
<property name="service" ref="ManageMemberService" />
<property name="sessionForm"><value>true</value></property>
<property name="successView"><value>manageMember</value>
</property>
<property name="formView"><value>manageMember</value></property>
</bean>
...............................................
This works perfectly fine when I'm trying to insert a Stateless EJB 2.1 version, however if I switch to a Stateless EJB 3 approach I'm getting the following error:
org.springframework.ejb.access.EjbAccessException: EJB home [ManageMemberEJB] has no no-arg create() method
The EJB extends a base POJO class and implements the "IManageMember" interface.
So, I hope I'm asking a very simple question: how can I inject an Stateless EJB 3 with Spring 2.0 (in both, "remote" and "local" modes) ?
I'm at a hard-stop right now so any insightful comments would be appreciated.
Thanks.


Reply With Quote
) you aren't. You do when you specify the SLSBPFBean, but that doesn't work for EJB3 (AIUI).