[jboss-user] [JCA/JBoss] - Re: EJB3 - XA datasource - Transactions - XAER_OUTSIDE

apill do-not-reply at jboss.com
Fri Jan 26 04:36:33 EST 2007


As requested I wrote a test that consisted of the following code...

Injected session:

  | @PersistenceContext(unitName="PicsEM")
  | Session session;
  | 

Method content:

  | try
  | {
  | 	Statement s = this.session.connection().createStatement();
  | 	String del = "DELETE FROM ZCOREINV.COUNTRY WHERE ZCOREINV.COUNTRY.ID = '158';";
  | 	s.execute(del);
  | 	this.session.close();
  | }
  | catch (HibernateException e)
  | {
  | 	e.printStackTrace();
  | }
  | catch (SQLException e)
  | {
  | 	e.printStackTrace();
  | }
  | 


The test failed in exactly the same way as before.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006725



More information about the jboss-user mailing list