0 Replies Latest reply on Apr 19, 2006 4:09 AM by tamri

    JBOSS EJB3 Context

    tamri

      I have EJB3 project, deployed with jboss-4.0.4.CR2 , his projects .jar file is in jboss_home/server/default/deploy catalog. and I have a client java file where I call ejb's remote inteface
      Hashtable properties = new Hashtable();
      properties.put("java.naming.factory.initial",
      "org.jnp.interfaces.NamingContextFactory");
      properties.put("java.naming.factory.url.pkgs",
      "=org.jboss.naming:org.jnp.interfaces");
      properties.put("java.naming.provider.url", "localhost:1099");
      Context context = new InitialContext(properties);

      SessionEJBRemote obj=(SessionEJBRemote)context.lookup(SessionEJBRemote.class.getSimpleName() + "/remote");
      obj.calculate(1,2,3d,5d);