dev@glassfish.java.net

Re: PU with TX Type JTA

From: Lance J. Andersen <Lance.Andersen_at_Sun.COM>
Date: Mon, 18 Jun 2007 09:54:47 -0400

Ed Mooney wrote:
> 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.
Actually, i find the NP plugin does not work well for me on XP, so i do
find i need to edit the persistence.xml vs use the supplied tool.
>
> 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
>>
> [ ... ]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>