I have a POJO service which use a local stateless session bean. When calling a business method on this service, I get NoSuchMethodException from the proxy.
Why is the proxy a RemoteHome?Code:java.lang.NoSuchMethodException:ApplicEJB_RemoteHomeProxy_118nol5.getFOO() ... at java.lang.Class.getMethod(Unknown Source) at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invokeInContext(LocalSlsbInvokerInterceptor.java:74) at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.invoke(AbstractSlsbInvokerInterceptor.java:188)
I have tried both ways of declaring this stuff in pure desperation (see below), but to no avail. Anyone who can tell me what is going on?
Regards,Code:<bean id="applicEjb" class="org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean"> <property name="jndiName" value="ApplicEJB"/> <property name="businessInterface" value="com.xyz.ApplicBusiness"/> </bean> <jee:local-slsb id="applicEjb" jndi-name="ApplicEJB" business-interface="com.xyz.ApplicBusiness"/> <bean id="applicBean" class="com.xyz.ApplicabilityServiceImpl"> <property name="applicabilityBean" ref="applicEjb"/> </bean>
M


Reply With Quote
