No. I did not realize that would be needed since it seems to work just fine when invoked
from session beans. I want to use the same, working infrastructure, but from a worker
thread.
That being said, this is my persistence.xml:
| <persistence-unit name="MyProject">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/MyProjectDatasource</jta-data-source>
| <properties>
| <property name="hibernate.dialect"
value="org.hibernate.dialect.MySQLDialect"/>
| <property name="hibernate.hbm2ddl.auto"
value="update"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="hibernate.format_sql"
value="true"/>
| <property name="jboss.entity.manager.factory.jndi.name"
value="java:/MyProjectEntityManagerFactory"/>
| </properties>
| </persistence-unit>
|
Thanks for your help in the wee hours of the morning!
-Raj
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153206#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...