0 Replies Latest reply on Jan 17, 2006 6:19 AM by Sujesh KC

    accessing ejb running on jboss

    Sujesh KC Newbie

      I have deployed a stateless bean in Jboss named TesterBean.
      When i try to access the same using a servlet i get an error saying "test not bound". My client code is some thing like this

      InitialContext ic = new InitialContext();
      Object o = ic.lookup("test/Tester");
      TesterHome home = (TesterHome)
      javax.rmi.PortableRemoteObject.narrow (o, TesterHome.class);

      Tester test = home.create();
      out.println( test.returnMessage( "helllo" ) );

      I have put jndi properties in a folder and bundled along with the servlet to a war file...pls help