Amit Ajmani [
http://community.jboss.org/people/amitajmani1] created the discussion
"JBoss5.1.0 + JPA = Object not persists"
To view the discussion, visit:
http://community.jboss.org/message/629956#629956
--------------------------------------------------------------
here is my persistent.xml:
<persistence-unit name="jpa_ora" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:OraDS</jta-data-source>
<mapping-file>META-INF/orm.xml</mapping-file>
<class>ca.teranet.rts.model.User</class>
<class>ca.teranet.rts.dao.UserSession</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.dialect"
value="org.hibernate.dialect.Oracle10gDialect" />
<property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.JBossTransactionManagerLookup" />
</properties>
</persistence-unit>
and i am using TransactionManagement.Container in my Stateless EJB. I have put the
hibernate-jpa-2.0-final.jar in server/default/lib folder.
The problem is :
Whenever i invoke a method to persist an object, sometimes it works well and save it into
DB and sometimes it wont, just increases the hibernate_sequence value and and comes out
silently without even throwing an exception but does not fire an insert query .
But when i run the same application over JBoss6.0 it works perfectly.
Any clue on this ........
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/629956#629956]
Start a new discussion in Beginner's Corner at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]