This forum post may be of help to you, I had some similar issues. Depending on how you set your env or system variables, and what initial context factory you use, it may always attempt to use localhost:3700 (obviously not what you want).
http://forums.java.net/jive/thread.jspa?messageID=272823񂦷
Read through the post, about my last reply (as asherwin) describes in detail some of the behavior you are seeing, and some possible solutions/workarounds that may or may not be helpful depending on your situation and needs
Alex Sherwin
alex.sherwin_at_acadiasoft.com
-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Tuesday, August 05, 2008 10:53 AM
To: users_at_glassfish.dev.java.net
Subject: Problem in connecting to JMS Queue through remote client
I am facing problem in connecting to JMS Queue through remote client. It is failing while doing look up of the connection factory. I am able to send and receive messages on queue if I am running the client on the same m/c on which glassfish server is running. Can anybody help me on this issue.
Some of the logs of the error i am getting:-
Aug 5, 2008 9:07:21 AM com.sun.messaging.jms.ra.ResourceAdapter start
INFO: MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...
Aug 5, 2008 9:07:21 AM com.sun.messaging.jmq.jmsclient.ExceptionHandler throwConnectionException
WARNING: [C4003]: Error occurred on connection creation [PC1111:7676]. - cause: java.net.UnknownHostException: PC1111
Aug 5, 2008 9:08:01 AM com.sun.messaging.jms.ra.ResourceAdapter start
SEVERE: MQJMSRA_RA4001: start:Aborting:JMSException on createConnection=[C4003]: Error occurred on connection creation [PC1111:7676]. - cause: java.net.UnknownHostException: PC1111
....................................
com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [PC1111:7676]. - cause: java.net.UnknownHostException: PC1111
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.throwConnectionException(ExceptionHandler.java:274)
...................................
JNDI lookup failed: javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to start resource adapter : MQJMSRA_RA4001: start:Aborting:JMSException on createConnection=[C4003]: Error occurred on connection creation [PC1111:7676]. - cause: java.net.UnknownHostException: PC1111]
[Message sent by forum member 'amardeepsingh' (amardeepsingh)]
http://forums.java.net/jive/thread.jspa?messageID=291605
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net