Hi,
See section 23.1.2 of the ejb-2_0-public draft 2-spec or just search for
the word static in the pdf file.
Quote "An enterprise Bean must not use read/write static fields. Using
read-only static fields is
allowed. Therefore, it is recommended that all static fields in the
enterprise bean class be
declared as final. This rule is required to ensure consistent runtime
semantics because while some EJB Containers may use a single JVM to execute
all enterprise bean�s instances, others may distribute the instances across
multiple JVMs."
Hope this helps,
Anil
--------------------------------------------
Anil Colin Lobo
Aztec Software, Inc.
3211 Scott Blvd., Suite 204
Santa Clara, California 95054
Ph: (408) 7483500
Web: http://www.aztecsoft.com
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Wong Kok Wai
Sent: Tuesday, November 07, 2000 5:41 Evening
To: [EMAIL PROTECTED]
Subject: Re: Writing files with EJBs
I've failed to locate the section of the EJB specs which state no static
members. Please help.
Dave Wolf wrote:
> Here here. I think of it this way. Its illegal for me to commit a crime.
> It is also just as illegal for me to convince someone to commit that crime
> on my behalf. To me repackaing an illegal act into a helper class is just
> as illegal an call. The vast majority of these requirements are set for
> WORA reasons. For instance,
>
> No static members (containers may use multiple vm's)
> No singletons (containers may use ClassLoaders)
> No File I/O (Underlying OS may have no file system)
>
===========================================================================
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".