How do you manage if there is only one MCF class to create a Queue/Topic/unified CF but if I want to create and bind a TopicConnectionFactory? This seems not to be possible.
A further issue is that I don't get it done to enlist an MDB in an XA transaction before onMessage is called. The MDB receives a message and sends a reply through the same RA (via the MCF) and should do that in the same XA tx. My ejb-jar.xml has this attribute set:
<transaction-type>Container</transaction-type>
But I'm not sure how to force to start an XA tx before onMessage is called. Currently the received message is non-transacted and the outgoing message is XA.