Hi,

regarding my problem with not serializable attributes of an stateful
session bean I have an additional question. The object that caused me the trouble
previously was of type InitialContext, which is not serializable.

In the EJB 1.1 specification there is an requirement regarding bean
developers to leave only attributes of a list of predefined types assigned to real
objects and all others to 'null'. It is in section 6.4.1.

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?

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.

Hopefully this is just an misunderstanding of what that english sentence
wants to tell me, so please feel free to correct my interpretation.

Christian Schroeder

-- 
Sent through GMX FreeMail - http://www.gmx.net



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

Reply via email to