12 Replies Latest reply on Jun 12, 2007 3:33 PM by Roman

    Urgent Help needed..Strange behavior with java client access

    Sureshbabu Thyvalappil Newbie

      I'm using JBOSS 4.0.5GA with ejb3. I am running into weird behavior when running java client from remote machine. If I run it from the same machine where the jboss server is running, no problem. So here is the behavior I'm noticing.
      FOr the jndi lookup of ejb, it is connecting the remote server and gets a reference to the ejb. But when I call a method on the ejb reference, it is trying to call a method on the local machine( I mean the same machine where the client is running).
      Sounds very weird to me. Any help is appreciated from EJB3 experts.
      I upgraded to EJB3 RC9 patch1, but same behavior.
      Here is the client code ..

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

      InitialContext ctx = new InitialContext(p);
      IReportService report = (IReportService) ctx.lookup(

      System.out.println("Got the ejb remote reference = "+report);


      ReportJob reportJob = new ReportJob();
      System.out.println("B4 report.submitRequest..");

      System.out.println("After report.submitRequest..");
      catch (Exception e)