Hi!

> It says:
> --8<-----------
> The Bean Provider is required to ensure that the ejbPassivate method
> leaves the instance fields ready to be serialized by the Container. The
objects
> that are assigned to the instance's non-transient fields after the
> ejbPassivate method completes must be one of the following:
>
> [...]
> . A reference to the environment naming context (that is, the
> java:comp/env JNDI context) or any of its subcontexts.
> [...]
> --8<-----------
>
> Aren't these objects type of InitialContext?

No, they are of the type Context.

> The reason I again come up with this topic is, that I used some examples
> from the web to get familiar with EJBs and in the tutorial I found, they
> didn't bother about setting the reference to the InitialContext to 'null'
in the
> ejbPassivate methode. If this done so by other beans too, they might not
be
> deloyable in jboss.

I would recommend setting the field to transient. IMHO the code you saw was
flawed/buggy.

regards,
  Rickard





--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to