From a -service.xml we are calling an MBean which is responsible for getting a connectionfactory in the beginning of the application. The factory we were getting was XAConnectionFactory.
This approach worked in JBoss 4.0.0RC1. We are having problems on JBoss 4.0.1. Error says "XAConnectionFactory not bound".