aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes JTA and resource-local Entity Manager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "JTA and resource-local Entity Manager" Watch "JTA and resource-local Entity Manager" New topic
Author

JTA and resource-local Entity Manager

Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
Hi Guys,

Can someone explain what is the difference between JTA and resource-local Entity Manager, Why CMT doesnt support resource-local

I expect a clear description than JPA spec 5.5

Regards
Cham
[ November 11, 2008: Message edited by: Chaminda Amarasinghe ]
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
"resource-local Entity Manager" are used outside to the Java EE container. As an example if we are dealing with a swing application, JTA is not a possibility. So resource-local transactions are used in this case. So implementation of EntitTransaction interface is required.


Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
Thanks Dilshan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTA and resource-local Entity Manager