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...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917421#3917421

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917421


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to