Topic: How to obtain entity manager in application server?

Hey,

How to obtain Entity manger in application server ?

The class is a simple class (no Ejb), and i can call to this class from Ejb or from inner schdeuler process (not container management)

I want that if i call to this calss from Ejb , that the entity manager transaction will join to the global transaction.

Thank you

[352 byte] By [AvihaiMara] at [2007-11-27 5:49:08]
# 1
Hi,entity managers outside EJBs can be created using a javax.persistence.EntityManagerFactory.Regards
JUnkiea at 2007-7-12 15:35:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...