> Hello,
>
> I get the following exception when the container attempts to passivate
> my stateful session bean :
>
> [Container factory] java.rmi.ServerException: Could not passivate; nested
> exception is:
> [Container factory]     java.io.NotSerializableException:
> javax.naming.InitialContext
> ...

   You can try to put the ctx.lookup("") , which gives the Context itself,
rather than the InitialContext, that is NOT serializable.
   However that depends on the implementation of the context, and that is
server-specific.

   Lachezar


> The problem seems to be related to the reference to the JNDI Context I
would
> like to maintain as part of the bean's conversational state.
> Accordingly to the EJB 1.1 specs a bean's conversational state may also
consist
> of references to javax.naming.Context.
>
> Thanks for any help.
>
> Francesco.



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to