You only need to return one XAResource and it shouldn't be one from the pool.
Go back a few years and read the discussions between Bill and myself about this.
There are complications, especially relating to security.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210797#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...