Hi!

> I tried that, but I kept getting this exception: 
> 
> java.io.InvalidClassException:
> org.jboss.ejb.EnterpriseContext$EJBContextImplMissing no-arg constructor
> for class
> 
> EJBContextImpl does have the no-arg constructor, but I think it has to
> do fact that it is an inner class.  (I added no-arg constructors
> everywhere, but always got this exception)
> 
> Any idea?  (making it a real class is going to be painful)
> 

Try this:
- Make it a static inner class
- Add a one-arg constructor that taxes the EnterpriseContext
- Store EC inside inner class and change uses of EC variables to that
- Make EJBContext serializable, but mark all fields as transient

Should work

/Rickard




Reply via email to