Not to change the discussion or anything, but what's the difference between these 2 ?

https://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps/ mailreader-jpa/

https://svn.apache.org/repos/asf/shale/sandbox/mailreader-jpa/

--
James Mitchell




On Jul 26, 2006, at 12:40 PM, Craig McClanahan wrote:

On 7/26/06, Gary VanMatre <[EMAIL PROTECTED]> wrote:


I hate the idea of creating more layers. The extra setter methods for
the entity manager on the session bean sounds much simpler.  I'm not
sure how the transaction would be handled transparently for in container
versus out of container?  The examples that I have seen, uses the
JNDI UserTransaction in container and the EntityTransaction out of
container.


FWIW, the mailreader-jpa persistence unit that is currently checked in uses resource local transactions, even inside the container. I like the idea of using the same transaction apis inside and outside ... and I also like the
fact that EntityTransaction has an isActive() method, plus it throws
unchecked exceptions like all the other JPA APIs.

Craig

Reply via email to