users@glassfish.java.net

Re: _at_PostConstruct TransactionRequiredException

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Oct 2007 07:19:37 PDT

Yes what you are doing is what I meant by 'lazy init'. The user transaction would have to be active before you access the bean but you really couldn't mix container managed with bean managed in the same call stack as in most cases the bean managed (user transaction) would take precedence and the container would not manage the transaction.
--Gordon
[Message sent by forum member 'gyorke' (gyorke)]

http://forums.java.net/jive/thread.jspa?messageID=238456