dev@glassfish.java.net

Re: PU with TX Type JTA

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Mon, 18 Jun 2007 09:27:00 -0400

1. Verify your app: right-click on the project and select "Verify
    Project".

2. Avoid editing persistence.xml by hand. Editing @transaction-type
    without changing the data source invites trouble.

3. Download the tutorial and look at the order application[1].

[1]
http://java.sun.com/javaee/5/docs/tutorial/doc/PersistenceEJB2.html#wp82561

   -- Ed

Arun Gupta wrote:
> If I enable "em.flush()" after "and now committed!" statement, then I
> get the following error:
>
> -- cut here --
> javax.persistence.TransactionRequiredException:
> Exception Description: Error marking externally managed transaction for
> rollback
> -- cut here --
>
> I think something more basic is missing because I'm not even seeing the
> tables getting created in the database. Any clues ?
>
> -Arun
>
[ ... ]