Explicitly setting the listener port

TJ Greenier <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Hi all,

I am wondering if there is a way to set the port number that the message 
listener listens on in a pub/sub setup. I am currently running openJMS 
0.7.6.1 <http://0.7.6.1> and using the http connector. Everything runs fine 
when I am running with in my local area network. When I try to run my JMS 
server and Tomcat server behind a firewall, I can receive the request, but I 
cannot publish the messages to the clients because they are running outside 
the firewall. In debugging the issue it seems that the destination client 
all listen on different port numbers, which seem to be randomly selected. Am 
I right in this assumption? What I want to do is force all client listeners 
to listen on a specified port, so that I can enable this port on my switch. 
Does anybody have an example of specifying the port to listen on. The error 
I am seeing states the JMS is unable to find host on myIP and port (where 
the port changes randomly as I re-run my test client).

Thank you for your time in advance.

T.J. Greenier
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.