-
1. Re: JBoss 4.2.2.GA Hibernate configuration through JTA throw
madhuranjans Oct 21, 2008 10:05 AM (in response to madhuranjans)It seems that part of persistence.xml is not visiable. Here it is:
>persistence-unit name="Manager1" transaction-type="JTA"<
>provider<org.hibernate.ejb.HibernatePersistence>/provider<
>jta-data-source<java:/CRUISELIVE_DS>/jta-data-source<
>jar-file<hibernate-ejb3-orm.jar>/jar-file<
>class<com.thunder.gds.core.orm.hibernate.Account>/class<
>properties<
>property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/<
>property name="jboss.entity.manager.jndi.name" value="java:/Manager1"/<
>property name="jboss.entity.manager.factory.jndi.name" value="java:/Manager1Factory"/<
>property name="hibernate.show_sql" value="true"/<
>property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory"/<
>property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/<
>/properties<
>/persistence-unit< -
2. Re: JBoss 4.2.2.GA Hibernate configuration through JTA throw
taranis Jun 1, 2009 4:36 AM (in response to madhuranjans)I have the same problem, no data is written to DB although there's no exception. I had even debugged Hibernate source code, it turns out Hibernate thinks my class is Transient even i annaotated it with @Entity. I think this is the problem but haven't find a solution yet, have you?