Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3681

EJB3.0 Session bean lookup

    XMLWordPrintable

Details

    • Task
    • Resolution: Obsolete
    • Major
    • No Release
    • JBossAS-4.0.4.CR2
    • EJB
    • None
    • Medium

    Description

      I get ejb not bound exception when i look up session bean

      sessoin bean jndi name is mentioned using annotation in hte code as

      @Stateless
      @RemoteBinding(jndiBinding="ejb/remote/FileDetails")

      the look up code is

      Properties env = new java.util.Properties();

      env.setProperty("java.naming.provider.url", "http://localhost:8080/invoker/JNDIFactory");
      env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
      env.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");

      InitialContext ctx = new InitialContext(env);
      FileDetailsClientBean filesession = (FileDetailsClientBean)ctx.lookup("ejb/remote/FileDetails");
      filesession.addFileDetails();

      Pls help me resolve this and let me know if the code is correct

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            MadanSri madan srinivas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: