Hi,
I guess what you would need to do is get the handle
to your stateful session bean and store it in your
HttpSession.
This will ensure that your client (servlet) can get
back the handle and use that to get a reference to the
EJB object.
HttpSession session = req.getSession(false);
Handle handle =
(Handle)session.getValue("handle");
MyBean bean = (MyBean) handle.getEJBObject();
This will make sure that your client will always get
the stateful session bean that it was using.
I hope this helps.
Rgds,
D Swaminathan
--- Soteri Panagou <[EMAIL PROTECTED]> wrote:
> Hi
>
> Sorry bout this newbie question, but am i missing
> something? can anyone
> give me clarity on the following scenario:
>
> 1) I am using weblogic 4.5 application server;
> 2) i have a servlet acting as a front component;
> 3) I have a stateful session bean that handles user
> authentication and
> Account detail retrieval
> 4) At the same level i have a stateless session bean
> doing credit card
> authorisation
>
> I have just built http session management into my
> servlet. my question
> is this: If I have to use an HttpSession object to
> keep track of my user
> connections, how does the stateful session bean
> handle this scenario?
> i.e. How does the connection between a specific
> instance of the session
> bean and a specific client get managed?
>
> cheers
> steri
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff EJB-INTEREST". For general
> help, send email to
> [EMAIL PROTECTED] and include in the body of the
> message "help".
>
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".