Hi,
I check whether you have set to drop-and-create the db schema in persitance.xml file. If you have set that, when the application is loading it will drop and re-create the data base tables. Then all your data will be lost.
Regards,
Lasitha
-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Friday, April 02, 2010 2:28 AM
To: users_at_glassfish.dev.java.net
Subject: Persistence with JTA
Hi everyone !
I'm doing a little application with jsf/ejb/glassfish/eclipseLink
I'm trying to persist some objects in my database but they are just staying the time of the session, when I restart glassfish they have dissapeared from the base
Before i used an EntityTransaction et with a persist() I did a begin and after my code a commit.
But if have an error that say that I can't une an EntityTransation with JPA.
So how can I persist an object in base with JTA ?? :/
[Message sent by forum member 'manta7']
http://forums.java.net/jive/thread.jspa?messageID=394953
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net
*******************************************************************************************************************************************************************
"The information contained in this email including in any attachment is confidential and is meant to be read only by the person to whom it is addressed. If you are not the intended recipient(s), you are prohibited from printing, forwarding, saving or copying this email. If you have received this e-mail in error, please immediately notify the sender and delete this e-mail and its attachments from your computer."
*******************************************************************************************************************************************************************