4 Replies Latest reply on Sep 29, 2006 4:27 AM by Ashish Manchanda

    Access Remote Jboss Topic from client

    Daniel Goodwin Newbie

      I am trying to use a client to access a topic on a remote machine running JBoss. The JBoss 3.2.4 system (linux) is not running on default ports but is using ports-01 configuration (something else is running on some of the default ports) so jndi is running on 1199 ..

      The client is using the jbossall-client.jar

      I get and exception of form Naming Exception javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]

      I have placed fuller exception trace below.

      It all works fine if I have them on same machine (Win2000).
      I have also tried a change I noticed elsewhere where I changed
      {jboss.bind.address} in uil2-service.xml to actual IP address without
      success (though I think this may be OK anyway in 3.2.4)

      App on Jboss (MDB) using same jndi work fine though obviously this is
      on the same machine - it post stats to the topic to be retrieved by a number of remote clients.

      I can telnet to the port and get some gibberish so It would appear to listening.


      Client on Win2000 with JDK 1.4
      Jboss 3.2.4 on Linux also running JDK 1.4

      InitialContext iniCtx = null;
      if (true){
       Properties properties = new Properties();
       properties.put Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
      properties.put(Context.PROVIDER_URL, "");
      iniCtx = new InitialContext(properties);
      System.out.println("Props :" + properties);
      // If using jndi.properties, then use below
      iniCtx = new InitialContext();
      topic = (Topic) iniCtx.lookup(topicName);
      System.out.println("Topic found " + topicName);
      Object tmp = iniCtx.lookup("UIL2ConnectionFactory");
      TopicConnectionFactory tcf = (TopicConnectionFactory) tmp;

       [java] Props :{java.naming.provider.url=, java.naming.factory
      .initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=o
       [java] NamingException javax.naming.CommunicationException [Root exception
      is java.rmi.NoSuchObjectException: no such object in table]
       [java] javax.naming.CommunicationException [Root exception is java.rmi.NoSu
      chObjectException: no such object in table]
       [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:64
       [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:50
       [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
       [java] at relayui.RelayIFListener$RelayListenerThread.setupPubSub(Relay
       [java] at relayui.RelayIFListener$RelayListenerThread.<init>(RelayIFLis
       [java] at relayui.RelayIFListener.run(RelayIFListener.java:94)
       [java] at java.lang.Thread.run(Thread.java:534)
       [java] Caused by: java.rmi.NoSuchObjectException: no such object in table
       [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
       [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
       [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
       [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
       [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:52
       [java] ... 6 more