yep. static inner classes don't need no args constructor... --- Rickard Oberg <[EMAIL PROTECTED]> wrote: > Hey > > > > Rickard Oberg wrote: > > > > > 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 > > > > It does, but I also have to add a no-arg > constructor in > > EnterpriseContext, and to do the same for the > inner classes in > > EntityEnterpriseContext and > StatelessSessionEnterpriseContext. > > > > Now which solution is the less ugly? ;-) > > Are you sure about that? I don't think you need a > no-arg if you make it > static. > > /Rickard > > > > __________________________________________________ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/
