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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
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 ]
 
 
subject: Stateful Session Bean returns NULL value