I really should have been more clear to say dont write static fields, but
the spec says in section 18.1.2
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.
Dave Wolf
Internet Applications Division
----- Original Message -----
From: "Wong Kok Wai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 07, 2000 8:40 PM
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".
>
>
===========================================================================
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".