You need a "message bridge"
e.g. an mdb that receives from jbossmq and sends it to glassfish in the same XA transaction.
I mean to say that I am looking for sending a JMS msg from a normal Java class running on JBoss(4.2.3) server to Glassfish Queue. Is there any adapter/configuration that needs to be done on JBoss to communicate with Glassfish Queue?
Read the FAQ about remote jms, except change the jndi config to
point at your Glassfish server.