if you want to deploy an MDB in GlassFish that will receive messages from a destination in WebLogic JMS server then you have to create the connector resources (connection factory, admin object.. HSActionsTopic and ChartsConnectionFactory in your code sample) using a Resource Adapter. The resource adapter has to be deployed and configured to connect to the WebLogic JMS server. You could use the resource adapter that WebLogic provides or a generic jms resource adaptor like Generic JMS RA (genericjmsra.dev.java.net).
[Message sent by forum member 'rampsarathy' (rampsarathy)]
http://forums.java.net/jive/thread.jspa?messageID=324691