It sounds to me like you're spending too much time fighting. You could have spent this time learning Spring (it's not that hard for what you want to do) and you'd be a happy camper right now. There's a reason so many folks use it. It works.
On Tue, Jun 9, 2009 at 7:48 AM, Frank Tegtmeyer<[email protected]> wrote: > >> Well when it comes to EntityManagers be sure to close, commit and >> clear your threadlocal instance after your service request cycle. > > Exactly that didn't work for me. I checked for open transactions, > closed them, closed the EntityManager and even released it by setting > the ThreadLocal variable to null. > Although I created a new EntityManager in onBeginRequest() I > constantly got errors during form processing because of not existing > EntityManager. I solved this by leaving EntityManager there after the > request and checking for its existence at the begin of the request. > > Any ideas about this? > > Regards, Frank > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
