> 1. Verify your app: right-click on the project and select "Verify
> Project".
No failures.
>
> 2. Avoid editing persistence.xml by hand. Editing @transaction-type
> without changing the data source invites trouble.
Yes, I agree.
>
> 3. Download the tutorial and look at the order application[1].
Still looking for a simple application, this requires lot of background.
I found:
http://javahowto.blogspot.com/2006/07/helloworld-with-jpa-toplink-and-mysql.html
and looking for something like this using NetBeans/GlassFish.
-Arun
>
> [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
>
--
Technology Evangelist
Web Technologies and Standards
Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta