2 Replies Latest reply on Jan 17, 2006 4:12 AM by Alexander Hartner

    jboss 5 alpha - ejb3 - jndi works on Nov checkout... Does no

    JBoss User Newbie

      I have a jboss5alpha that I checked out in Nov the following code works fine.
      Latest jbossAlpha5 checkout...
      Name Not Found Exception during injection lookup.

      (shortened for brevity)


      package org.test.ejb;
      ...
      @Stateless
      @Local (value=Test.class) // I have also tried @Remote here
      public class TestBean implements Serializable, Test {
      ...
      public void test() {
      System.out.println("testing...");
      }
      }


      package org.test.ejb;
      ...
      public interface Test {
      public void test();
      }


      package org.test.sar;
      ...
      @Service(objectName="test:service=TestService")
      @Management(value=org.test.TestService)
      public class TestServiceMBean implements TestService {

      //fyi...this has been changed to beanInterface() in latest ejb spec (Dec 05)
      @EJB(businessInterface=org.test.ejb.Test.class)
      Test t;

      public void testMyBean() {
      t.test();
      }

      }

      package org.test.sar;
      ...

      public void TestService {
      public void testMyBean();
      }

      On the JMX Console, I made a call on JNDIView Service.list() and Test or TestBean should show up but it does not. Almost as if it is not being registered in the jndi for the latest jboss 5 checkout... Is this a bug or operator head air space.... I have checked the log and I don't get any other exception.

      Again, this works in the November cvs check out.

      Thanks for any help...