0 Replies Latest reply on Feb 2, 2004 6:17 PM by kar488

    Cannot connect to a remote JBoss server running EJB's

    kar488

      I am trying to connect to a remote JBoss3.2.3 server running EJB's.

      When I use the web browser to view the servers jmx-console I can see the beans are deployed and they are running...

      I tried using the following properties

      Properties p = new Properties();
      p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
      p.put(Context.PROVIDER_URL, "jnp://216.203.25.94:1099");
      p.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");


      And it threw me
      javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
       at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1115)
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1192)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
       at javax.naming.InitialContext.lookup(InitialContext.java:347)
       at com.titan.cabin.client.Client_1.main(Client_1.java:17)
      Caused by: java.net.SocketTimeoutException: Receive timed out
       at java.net.PlainDatagramSocketImpl.receive(Native Method)
       at java.net.DatagramSocket.receive(DatagramSocket.java:711)
       at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1093)
       ... 5 more
      


      I searched in google and it mentioned that the only way it would work was set it as VM parameters when running the client so I have also tried
      -Djava.naming.provider.url=jnp://216.203.25.94:1099 -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

      No luck whatsoever...Any ideas?