users@glassfish.java.net

RE: Using JPA in AS8

From: Gordon Yorke <gordon.yorke_at_oracle.com>
Date: Tue, 27 Jun 2006 14:49:45 -0400

As long as you are using the latest glassfish build V2 there should be no problems (there were problems with TopLink picking up the JTA datasource when not in an ejb3.0 compatible container but I believe they have been resolved). You will need to call EntityManager.joinTransaction if the entityManagers are created outside of the transaction scope. Also there will be no injection support so you will need to call javax.persistence.Persistence.createEntityManagerFactory.
--Gordon
  -----Original Message-----
  From: Michael.Key_at_sun.com [mailto:Michael.Key_at_sun.com]On Behalf Of Mike Key
  Sent: Tuesday, June 27, 2006 11:24 AM
  To: users_at_glassfish.dev.java.net
  Subject: Using JPA in AS8


  This may not be the right alias to ask this question, however I'm looking for some quick feedback if people are willing. I am working on a project that is attempting to use JPA in Sun App Server 8.1 using JTA. This seems a dubious task so far and am wondering if there are any others who have tried this and/or if anyone knows that it just plain doesn't work.



  --MiKey--