Firewall configuration between JMS client and JMS broker
My JMS client can not connect to JMS server if
there is a firewall between them. Anyone has
any idea? Do I need special configuration?
(Note: If there is no firewall between, everything is fine).
Here is my environment:
=================================
I installedMQ3.5 (Build 340-R) on Windows 2000 Server, and use the default port 7676.
There is a firewall configured between my JMS server
and JMS client ( client also run from a windows 2000
machine).
the firewall configuration as:
93 3944 ACCEPTtcp -- eth0*172.25.238.139172.17.2.36tcp dpt:7676
75 4800 ACCEPTtcp -- vlan01 *172.17.2.36 172.25.238.139tcp spt:7676
00 ACCEPTtcp -- eth0*172.25.238.139172.17.2.36tcp dpt:443
00 ACCEPTtcp -- vlan01 *172.17.2.36 172.2.238.139tcp spt:443
(note: 172.25.238.139 is my JMS client, and
172.27.2.36 is my JMS server).
My client did the following JMS initialization:
try
{
Hashtable objEnvironment = new Hashtable();
objEnvironment.put (Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
objEnvironment.put (Context.PROVIDER_URL,objectStoreURL);
i_jndiContext = new InitialContext(objEnvironment);
i_topicConnectionFactory = (TopicConnectionFactory) i_jndiContext.lookup("TopicConnectionFactory");
i_topicConnection = i_topicConnectionFactory.createTopicConnection();
i_topicSession = i_topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
i_topicConnection.start();
}
.....
When I run my JMS client, I got the following error:
strURL: <file:///c:/JMS/object_store>
init(): JMS Exception occurred: javax.jms.JMSException: [C4003]: Error occurred
on connection creation. - caught java.net.ConnectException

