Details
Description
To easily bind a connection factory that is aware of the containers transaction manager(tm) the use of javax.naming ObjectFactory comes in handy.
This allows the connection factory to create instances from a jndi lookup.
Having the tm resolved from jndi at runtime makes sense to avoid wiring dependencies.
Having the XAPooledConnectionFactory implement the ee type Queue and Topic connection factory interfaces makes such a factory useable.