There is an enormous quantity of information in the archives on singletons
and EJB.

----- Original Message -----
From: Tim Shaw <[EMAIL PROTECTED]>
> Perceived wisdom (spec) is that Singletons are not allowed/possible with
> EJB.

True, there is no way currently, to generate a singleton instance of a bean
in EJB. If you are running only one EJB server in your environment, it is
possible to create a BMP that functions as a singleton. Binding a CORBA
object into the JNDI seems to be the best approach.

AFAIK, there is no prohibition of using static variables in your EJB classes
to hold read-only data.

jim

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