users@glassfish.java.net

Problem with REMOTE JMS in the clustering mode

From: <glassfish_at_javadesktop.org>
Date: Thu, 24 Jan 2008 15:24:47 PST

I am trying to run my application under the GF V2 clustering mode. First I created a cluster (node agent) with 2 instances (on the same machine) and deployed the application on the cluster target. After a lot of trial and error, finally both instances came up properly.
But I am using the TopLink Essentail JPA, and there is no cache synchronization. So my next step is trying to set up the JMS cache coordinate with TopLink (I alos have problem to set up the JSM TopLinkTopic with the TopLink Session, but that is a different qustion).
I then tried to set the JMS in REMOTE mode by downloading the openMQ 4.1 and run it as a standalone broker. In both server and cluster configuration I set the JMS type to REMOTE. The application under the server target came up just fine and bound to the JMS remotely. How ever the cluster instances won't even start up now due to some error with the JMS.
Please help, here is the error log:

[#|2008-01-24T14:30:49.722-0800|INFO|sun-appserver9.1|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;|JMS Service Connection URL is :mq://j2hqeng122.j2global.com:7676/,mq://j2hqeng122.j2global.com:7676/|#]

[#|2008-01-24T14:30:49.737-0800|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...|#]

[#|2008-01-24T14:30:49.847-0800|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_LB1101: Looking for Broker Running at:localhost:7676|#]

[#|2008-01-24T14:30:49.987-0800|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_LB1101: Detected Broker Running at:localhost:7676|#]

[#|2008-01-24T14:30:50.300-0800|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_LB1101: Detected Broker VAR directory=C:\Sun\MessageQueue\mq\var|#]

[#|2008-01-24T14:30:50.300-0800|SEVERE|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;_RequestID=86f70a01-2b06-4733-84fe-97d134a7dff7;|MQJMSRA_LB4001: start:Broker running at:localhost:7676 has a different var directory of:C:\Sun\MessageQueue\mq\var:Failing ra.start()|#]

[#|2008-01-24T14:30:50.300-0800|SEVERE|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;_RequestID=86f70a01-2b06-4733-84fe-97d134a7dff7;|MQJMSRA_RA4001: start:Aborting:Exception starting LOCAL broker=MQJMSRA_LB4001: start:Broker running at:localhost:7676 has a different var directory of:C:\Sun\MessageQueue\mq\var:Failing ra.start()|#]

[#|2008-01-24T14:30:50.300-0800|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=86f70a01-2b06-4733-84fe-97d134a7dff7;|java.lang.Exception: MQJMSRA_LB4001: start:Broker running at:localhost:7676 has a different var directory of:C:\Sun\MessageQueue\mq\var:Failing ra.start()
        at com.sun.messaging.jms.ra.LocalBrokerRunner.start(LocalBrokerRunner.java:302)
        at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:447)
        at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:135)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:131)
        at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:248)
        at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:107)
        at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:300)
        at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:445)
        at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:225)
        at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:428)
        at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
|#]
[Message sent by forum member 'evanyang168' (evanyang168)]

http://forums.java.net/jive/thread.jspa?messageID=255689