users@glassfish.java.net

Re: JMS behind firewall does not work :/

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Mon, 27 Aug 2007 08:42:40 +0200

Can anyone, please, refer to that JMS+fiewall problem?


2007/8/23, Witold Szczerba <pljosh.mail_at_gmail.com>:
> Hi there,
> I have a dramatic situation here. Application I write, is running on
> Glassfish v2b45 with clients running inside Application Client
> Container (ACC) - a Swing application.
> Few days ago, in my company, we added JMS, so users can send text
> messages to each other using TopicConnectionFactory and Topic.
> Everything was OK when we were testing application in our company, but
> today we had to show new version to our customer.
> He connected as usual, but now he cannot launch application.
> This is very strange, it seems that our application does not work for
> computers behind a firewall anymore.
> Here is what happens on a remote computers, when ACC tries to start:
> -----------------------
> Java Web Start 1.6.0
> Using JRE version 1.6.0 Java HotSpot(TM) Server VM
> User home directory = /home/sop
> ----------------------------------------------------
> /// CUT ///
> ----------------------------------------------------
> Aug 23, 2007 3:39:14 PM
> com.sun.enterprise.appclient.MainWithModuleSupport prepareSecurity
> INFO: Security Manager is ON.
> Aug 23, 2007 3:39:14 PM
> com.sun.enterprise.appclient.MainWithModuleSupport
> setTargetServerProperties
> INFO: ACC001:Using ClientContainer file: [/tmp/sunacc9877.xml].
> Aug 23, 2007 3:39:14 PM
> com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
> INFO: ACC014: ORB host name: [biuro.ibpolsoft.pl]
> Aug 23, 2007 3:39:14 PM
> com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
> INFO: ACC013: ORB port number: [3700]
> Aug 23, 2007 3:39:21 PM com.sun.messaging.jms.ra.ResourceAdapter start
> INFO: MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...
> ================================================================================
> Sun Java(tm) System Message Queue 4.1
> Sun Microsystems, Inc.
> Version: 4.1 (Build 29-i)
> Compile: Fri Apr 20 18:24:10 PDT 2007
>
> Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
> SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
>
> This product includes code licensed from RSA Data Security.
> ================================================================================
>
> Aug 23, 2007 3:39:22 PM
> com.sun.messaging.jmq.jmsclient.ExceptionHandler
> throwConnectionException
> WARNING: [C4003]: Error occurred on connection creation
> [xx.xx.xx.xx:32778]. - cause: java.net.ConnectException: Connection
> refused
> Aug 23, 2007 3:39:27 PM
> com.sun.messaging.jmq.jmsclient.ExceptionHandler
> throwConnectionException
> WARNING: [C4003]: Error occurred on connection creation
> [xx.xx.xx.xx:32778]. - cause: java.net.ConnectException: Connection
> refused
>
> ...and it keeps writing those "WARNING: [C4003]: .........."
> --------------------------------------
>
> Every port numbers in my domain instance are Glassfish's default.
> The port # 32778 is different each time the Glassfish is restarted!
>
> Can someone, please, explain me what is happening?
>
> p.s.
> I have just opened that randomly requested port on my firewall and now
> application works, but it will stop after restarting server. Maybe
> some setting is missing in my Glasfish? (as I said, I did not change
> any port number, everything is default).
>