File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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

Stateful session bean not working in jboss

Praveen john

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.

I agree. Here's the link:
subject: Stateful session bean not working in jboss
jQuery in Action, 3rd edition