Ron,

The spec mentions "field", but not "basic data typed field" or "reference
field" Therefore, I would interpret "static final Vector vect = new Vector()"
as legal. But yes, this is confusing. What is the reason behind it? the spec
doesn't say.

Lam

Ron Yust wrote:

> Lam,
>
> Do you mean by read/write that you can't create new objects referenced by
> fields or change their values?  Do you consider a Hashtable or Vector a
> read/write?  If a Hashtable is instantiated once, can I get/put to it?
> Seems everyone has a different interpretation of the spec.
>
> -Ron
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Fong Shing Lam
> > Sent: Tuesday, October 26, 1999 3:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: EJB Restrictions-- threads, io
> >
> >
> > The spec restricts only read/write static fields. static methods
> > and static
> > final fields are allowed. I think this restriction applies to all
> > the helper
> > classes also.
> >
> > Lam
> >
> > Ron Yust wrote:
> >
> > > Richard,
> > >
> > > Does the spec mean no static methods/data in the EJB bean only
> > or no static
> > > items in ANY other java class the bean accesses?  For example, could a
> > > session bean access a static variable in a class outside the bean?
> > >
> > > -Ron
> > >
> > > > -----Original Message-----
> > > > From: A mailing list for Enterprise JavaBeans development
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard �berg
> > > > Sent: Tuesday, October 26, 1999 10:52 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: EJB Restrictions-- threads, io
> > > >
> > > >
> > > > Hey
> > > >
> > > > Steve Roth wrote:
> > > > > I forgot to mention the most important restriction I've
> > seen-- no static
> > > > > methods/data members
> > > > >
> > > > > Can U have static methods/data members?
> > > >
> > > > No. This is strictly fobidden, for good reasons. See archive for
> > > > details: http://archives.java.sun.com/archives/ejb-interest.html
> > > >
> > > > /Rickard
> > > >
> > > > --
> > > > Rickard �berg
> > > >
> > > > @home: +46 13 177937
> > > > Email: [EMAIL PROTECTED]
> > > > Homepage: http://www-und.ida.liu.se/~ricob684
> > > >
> > > > ==================================================================
> > > > =========
> > > > 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".
> >
> > ==================================================================
> > =========
> > 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".

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