I have a stateful session bean that I want to store the userid and password in. In a
servlet I assign the values to an instance variable, so that I can access them later.
I am doing this so that the user logs into the database as themselves (audit purposes) when doing a transaction.
So, I want the connection object to use the information from the stateful session bean to obtain the userid and password.
At that time, I need to get a reference to the already existing stateful session bean. When I do a look up with a create(), the values are null in the instance variables.
How do I access the session bean after it has been created without the benefit of storing the handle?