title: How to log the transactionid (Hibernate 3.3.1, Oracle)?
body: <p>Is it possible to log the low-level transactionid (I'm debugging something and this would be helpful to have in the log)?</p>
  
  <p>The method to get that value is <a href="http://download.oracle.com/javase/6/docs/api/javax/transaction/xa/Xid.html#getGlobalTransactionId%28%29" rel="nofollow">http://download.oracle.com/javase/6/docs/api/javax/transaction/xa/Xid.html#getGlobalTransactionId%28%29</a> but am not sure how to get the appropriate implementation (the javadoc points to an interface).</p>
  
  <p>I've tried enabling TRACE logging for org.hibernate but no luck.</p>
  
  <p>Thanks for any ideas.</p>
  
  <p>EDIT: forgot to mention: running inside JBoss 5.1</p>