That's what i thing. If I'm wrong, please don't leave me in the hole.

The location of one EB is transaparent to it clients (the bean could leave in the
same address space or not). It is also vendor dependent whether or not all instances
of a bean live in the same JVM. Because non-final static fields couldn't be shared
by many JVMs, it doesn't make sense to use them. Your application will become
inconsistent once the value of the static field changes in one JVM. The problem
doesn't occur for static "final" fields.
It doesn't matter which distribution scheme(RMI, CORBA...) is used.

Evan Ireland wrote:

> "Bailey, Jeff" wrote:
> >
> > I understand that an EJB cannot create a new thread or have a non-final
> > static, but can an EJB use an instance of another Java class (not an EJB)
> > which does?
>
> That is an excellent question. I hope that someone from Sun can give you an
> excellent answer, in particular one that doesn't refer to RMI or CORBA :-)
>
> > If not, what patterns do EJB developers typically use to get around the
> > limitations?
> >
> > Jeff Bailey ([EMAIL PROTECTED])
> > Sr. Software Engineer
> > NetGenics, Inc.
> >
> > ===========================================================================
> > 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".
>
> --
> ________________________________________________________________________________
>
> Evan Ireland              Sybase EA Server Engineering       [EMAIL PROTECTED]
>                             Wellington - New Zealand              +64 4 934-5856
>
> ===========================================================================
> 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".

--
Francis Pouatcha
MATHEMA Software GmbH
N�gelsbachstra�e 25 a
91052 E r l a n g e n
Telefon 09131/8903-0
Telefax 09131/8903-55
http://www.mathema.de

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