See this thread on the JMS Dev Forum:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=102050
I notice JMSMessageServiceFactoryImpl looks up JmsXA and casts to XAConnectionFactory
I am having problems testing this out right now, but I seem to remember this sort of thing in the past.