aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes Stateful Session Bean returns NULL value Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Stateful Session Bean returns NULL value" Watch "Stateful Session Bean returns NULL value" New topic
Author

Stateful Session Bean returns NULL value

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Hi

Wondering if you guys can help me, I have two Sevlets which make remote calls to a Stateful Session Bean to set/get a user's details.
The problem is, when I run the GET methods it returns a value of 'null'.

i am connecting to the Session bean using the following



The only thing I can think of, is when I run the Servlet with the GET call in it, because it's doing the above, it's maybe creating an new instance of the bean.

If so can anyone help me with a snippet example of how one Servlet can set values and another retieve them from a Stateful Session Bean?

Please!

KS

[ December 18, 2007: Message edited by: Keith Seller ]


Just for the record I worked it out!

It's exactly the same as storing a standard Bean in a HttpSession!

So daft!


[ December 18, 2007: Message edited by: Keith Seller ]
 
I agree. Here's the link: http://jrebel.com/download
 
subject: Stateful Session Bean returns NULL value
 
Similar Threads
Tomcat to Sun WebApp comms problem with EJBs
Explination needed ..what's happening behind the IDE.
EJB3.0 & calling remote interface.
Exception while sending email from a Servlet
EJB3.0, mySQL, Queries & Entity Beans?