Currently, I have the following code snippet in one of the classes:
I'd like to have Spring handle the lookup itself.
InitialContext initialCtx = new InitialContext();
EventFactory eventFactory = (EventFactory) javax.rmi.PortableRemoteObject.narrow(initialCtx
So, I created the following Spring bean configuration:
and use IoC to inject into the code (using setters).
<bean id="eventFactory" class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean">
The thing is, that I get an exception:
Which led me to think it's a stateful bean.
EJB home [org.eclipse.hyades.logging.events.cbe.impl.EventFactoryImpl@be208f7] has no no-arg create() method
any idea why this code does not work, or how to access a remote stateful bean via spring proxy?