1 Reply Latest reply on Oct 5, 2006 6:52 PM by Ravi K

    How Can I get Seesion bean using embedded ejb

    Sirajul Muneer Newbie

      Hi all,

      I am trying to lookup my seesion bean using context.lookup
      Code is like this
      Context ctx=getInitalContext()

      static InitialContext getInitialContext() throws Exception
      Hashtable props = getInitialContextProperties();
      return new InitialContext(props);
      private static Hashtable getInitialContextProperties()
      Hashtable props = new Hashtable();
      props.put("java.naming.factory.initial", "org.jnp.interfaces.LocalOnlyContextFactory");
      props.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
      return props;

      Error is cant bind

      Is it need any more additional information to be add about Session bean in xml files?

      Please help me