Unable to access EJB 3 stateful session bean in a servlet in jboss 4.2
posted 7 years ago
I tried to create a stateful session bean(EJB 3) in jboss server . When i tried to get a handle to the local interface using the lookup() method and cast it to the local interface type i am getting class cast exception . i followed the same approach for accessing a stateless bean but it worked in that case. I saw the JNDI info from the JMX console . It showed the following.
For the stateless bean the proxy object correctly shows that it implements the local interface but for the stateful bean there is just a java.lang.Object instance mapped to the JNDI binding name.
Have i done something wrong ?