This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stateful session bean not working in jboss
 
Similar Threads
EJB client with DI - @EJB injection doesn't work
Problem with EJB lookup on JBoss 7.1
Profiling application deployed on Glassfish
Java Persistence API
Doubt about Local and Remote