Re: how to make client cross the firewall on tcp connector?

Tim Anderson <[email protected]> Tue, 19 Sep 2006 07:41:44 +1000
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Have you configured your firewall to enable connections through port 5000?

杜娟 wrote:
> hi all
>    
>   I an using openjms-0.7.7-alpha-1 
>   I have a remote client behind a firewall/router that I am trying to listen to messages.
>   I used http connector but it's so slowly,so i want to change to use tcp connector ,and i get error as follow
>  
>  javax.jms.JMSException: Failed to connect to URI=tcp://218.30.254.80:5000/
>         at org.exolab.jms.client.net.JMSExceptionAdapter.adapt(JMSExceptionAdapter.java:79)
>         at org.exolab.jms.server.net.RemoteServerConnection__Proxy.getConnectionId(RemoteServerConnection__Proxy.java:89)
>         at org.exolab.jms.client.net.JmsConnectionStubImpl.getConnectionId(JmsConnectionStubImpl.java:131)
>         at org.exolab.jms.client.JmsConnection.<init>(JmsConnection.java:176)
>         at org.exolab.jms.client.JmsTopicConnection.<init>(JmsTopicConnection.java:81)
>         at org.exolab.jms.client.JmsConnectionFactory.createTopicConnection(JmsConnectionFactory.java:353)
>         at org.exolab.jms.client.JmsConnectionFactory.createTopicConnection(JmsConnectionFactory.java:335)
>
>  my openjms.xml is 
> <ServerConfiguration host="219.142.80.35" embeddedJNDI="true" />
>   
>   <Connectors>
>     <Connector scheme="rmi">
>       <ConnectionFactories>
>         <QueueConnectionFactory name="JmsQueueConnectionFactory" />
>         <TopicConnectionFactory name="JmsTopicConnectionFactory" />
>       </ConnectionFactories>
>     </Connector>
>     <Connector scheme="tcp">
>       <ConnectionFactories>
>         <ConnectionFactory name="TCPConnectionFactory"/>
>       </ConnectionFactories>
>     </Connector>
>   </Connectors>
>
>   <TcpConfiguration port="5000" internalHost="218.30.254.80" jndiPort="5000" adminPort="5000" bindAll="true" />
>
>
>   any one can give some advice?thank you very much!
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
openjms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openjms-user