I added
 EntityTransaction tx1 = em.getTransaction();
           tx1.begin();
just after em.joinTransaction();
to see if I could force a jdbc transaction but got

java.lang.IllegalStateException: JTA EntityManager cannot access a transactions
        at 
org.hibernate.ejb.AbstractEntityManagerImpl.getTransaction(AbstractEntityManagerImpl.java:278)
        at 
org.jboss.ejb3.entity.ExtendedEntityManager.getTransaction(ExtendedEntityManager.java:174)
        at 
com.hazlorealidad.sgi.control.DocumentsBean.download(DocumentsBean.java:97)
....

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971968#3971968

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971968
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to