my dog learned polymorphism
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
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply 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: 383
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Stateful session bean not working in jboss
 
Similar Threads
Problem with EJB lookup on JBoss 7.1
Doubt about Local and Remote
Profiling application deployed on Glassfish
Java Persistence API
EJB client with DI - @EJB injection doesn't work