I am doing some framework based work with JTA. I have a requirement where I need to access the java.sql.Connection object(s) associated with a javax. transaction.UserTransaction. I looked into the JBoss code and found that the TxCapsule class has a conatiner of XAResources through which I would be able to access what I require. However there's no getter for that container (maybe I am trying to get it easy!)
So can someone tell me how do get access to the Connection objects relevant to a UserTransaction?
Just for information, I am using the JNDI lookup for getting the UserTransaction.