users@glassfish.java.net

JMS Exception on Cluster

From: Mauricio Ferreyra <mauriff_at_gmail.com>
Date: Mon, 29 Jul 2013 15:32:45 -0300

Hi all,
I'm creating a cluster that contains application with JMS.

I've create the resources:

${ASADMIN_HOME} create-jms-resource --target gfCluster --restype
javax.jms.QueueConnectionFactory --description "connection factory for
process plugin project" --property jdni_name=jms/QueueConnectionFactory
jms/QueueConnectionFactory;
${ASADMIN_HOME} create-jms-resource --target gfCluster --restype
javax.jms.Queue --property Name=PluginMetricsQueue jms/PluginMetricsQueue;

And I have this snip of code

connection = connectionFactory.createConnection();
session = connection.createSession(false,Session.AUTO_ACKNOWLEDGE);

When the session is created I got:

SEVERE: Exception occurred, reason: {}
com.sun.messaging.jms.JMSException: MQRA:CA:createSession failed-Only one
JMS Session allowed when managed connection is involved in a transaction
 at
com.sun.messaging.jms.ra.ConnectionAdapter.createSession(ConnectionAdapter.java:338)


Can you help me?

Thanks in advance,
Mauricio