>
> > If a session bean is created as an instance variable of a
> > servlet, and it's
> > used in the doPost or doGet, that means more than one thread will be
> > attempting to invoke methods on that bean.  And when that happens, an
> > Exception will result.
>
> So what are the possible solutions when using servlets with stateful
session
> beans ?

The obvious solution is to treat your servlets stateless. You SHOULD not use
instance variables like this. Never store connections and remote references
as instance variables in servlets. Try HttpSession instead.

Regards,

Subbu

===========================================================================
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".

Reply via email to