>1. Write a regular old Singleton

This probably involves updating static contrary to the restriction in
section 18.1.2 of the EJB 1.1 spec and can lead to inconsistent runtime
semantics, although it can be argued that this restriction is only
intended to apply to fields of the enterprise bean class itself and not
those of 'helper' classes.

In multi-threaded JVM EJB implementations you would need to be careful
to make the singleton code thread-safe.

In environments that ensure application isolation, such as CICS TS v2.1,
if an application updates static there is an undesirable performance
penalty as the JVM cannot be reset to a clean state for the next
transaction and must be terminated at end of transaction.

Glyn Normington

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