--- "Tye, Tim" <[EMAIL PROTECTED]> wrote:
> I see a problem here...
> The EJB specification only allows static final
> constants or class variables.
> Static variables cannot be set when the server
> "comes up", they are only
> initialized when the class is first instantiated
> (some time later).  And,
> when the referencing EJB is discarded by the
> container to make room for
> other transactions, the helper class will also be
> discarded (and the value
> of the static variables lost).


As I remember, Java language spec 1.1 specifies that
when a class is loaded, it will never be unloaded.
That corrects singleton problems with language spec
1.0. If so, when a help "class" is discarded, it is
the
instance is discarded, but the static values should
remain, at least, as long as the class loader is
around.


__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.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".

Reply via email to