2 Replies Latest reply on Sep 27, 2005 12:01 PM by Mikael Berglund

    Problems with remote calls from one JBoss to another (4.0.2)

    Mikael Berglund Newbie

      Hello,

      i've tried to make a remote call from one JBoss instance to another. I guess this is related to this bug http://jira.jboss.com/jira/browse/JBAS-1442. I'm using the standard way of setting up the context:

      Properties properties = new Properties();
      properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      properties.put(Context.PROVIDER_URL, "jnp://otherserver:1099(");
      InitialContext ctx = new InitialContext(properties);
      

      This results in the following trace:
      java.rmi.ServerException: IOE; nested exception is:
       java.net.ConnectException: Connection refused: connect
       at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:118)
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
       at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
       at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
       at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
       at $Proxy1029.create(Unknown Source)
      

      Is it strange that a HTTP-invoker is created?
      I can connect to the port using telnet and on startup the server prints " [NamingService] Started jndi bootstrap jnpPort=1099".

      What do you suggest?