1 Reply Latest reply on Sep 2, 2005 11:11 AM by german balbastro

    Remote JMS over a VPN

    german balbastro Newbie

      I have configured a Topic in a Jboss 402 server.
      Then i configured ahother server to connect remote to that topic.
      In a LAN, it works fine.
      Now, i can't connect those servers with a VPN.
      I don't know if is possible to do that using the same configuration.

      The jms-ds.xml in the lan enviroment is:


      articuloJMSProvider
      org.jboss.jms.jndi.JNDIProviderAdapter

      XAConnectionFactory

      XAConnectionFactory


      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jnp.interfaces
      java.naming.provider.url=serverJms:1099



      The VPN is configurerd like that:
      localhost Port: 65199 - serverJms Port:1099

      The jms-ds.xml in the VPN enviroment is the same, but change de Properties:


      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jnp.interfaces
      java.naming.provider.url=localhost:65199


      What i have wrong?
      Thanks!!

        • 1. Re: Remote JMS over a VPN
          german balbastro Newbie

          the full log in the client is:

          2005-09-02 11:56:12,146 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provider
          2005-09-02 11:56:12,146 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
          2005-09-02 11:56:12,146 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: java:/articuloJMSProvider
          2005-09-02 11:56:12,146 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: org.jboss.jms.jndi.JNDIProviderAdapter@ac576f
          2005-09-02 11:56:12,146 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] context: javax.naming.InitialContext@5d9d90
          2005-09-02 11:56:12,146 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] jndiSuffix: articuloRemoto
          2005-09-02 11:56:12,146 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Got destination type Topic for ArticuloMDBRemotoDurable
          2005-09-02 11:56:55,052 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected:
          javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 10.0.99.26; nested exception is:
          java.net.ConnectException: Connection timed out: connect]
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
          at javax.naming.InitialContext.lookup(InitialContext.java:347)
          at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:695)
          at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:922)
          at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvoker.java:1492)
          at java.lang.Thread.run(Thread.java:534)
          Caused by: java.rmi.ConnectException: Connection refused to host: 10.0.99.26; nested exception is:
          java.net.ConnectException: Connection timed out: connect
          at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
          at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
          at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
          at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
          at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
          ... 6 more
          Caused by: java.net.ConnectException: Connection timed out: connect
          at java.net.PlainSocketImpl.socketConnect(Native Method)
          at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
          at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
          at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
          at java.net.Socket.connect(Socket.java:452)
          at java.net.Socket.connect(Socket.java:402)
          at java.net.Socket.(Socket.java:309)
          at java.net.Socket.(Socket.java:124)
          at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
          at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
          at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
          ... 11 more
          2005-09-02 11:56:55,161 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnected to JMS provider
          2005-09-02 11:56:55,177 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] innerStop
          2005-09-02 11:56:55,177 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] destroyService
          2005-09-02 11:56:55,177 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Waiting for reconnect internal 10000 ms