aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Stateful session bean not working in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Stateful session bean not working in jboss" Watch "Stateful session bean not working in jboss" New topic
Author

Stateful session bean not working in jboss

Praveen john
Greenhorn

Joined: Sep 02, 2007
Posts: 9
I am able to access a stateless ejb from a servlet through jndi look up but the same ejb changed into a stateful ejb and accessed by the same servlet throws a ClassCastException.

The same works fine in glassfish.

Please help.

And with all the cases the Dependency injection works fine in glassfish but in jboss it is throwing nullpointer exception.
Nikhil Jain
Ranch Hand

Joined: May 15, 2005
Posts: 385
can you give some more info like code snippet.


SCJP 1.4, SCWCD 1.4, SCBCD 1.5
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
How can a stateless EJB changed into StateFul? This sounds weired... are you sure it is changed into stateful? how did you found out just brief it so that people can help you in better way.

Thanks
Nitin
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Stateful session bean not working in jboss