1 Reply Latest reply on Mar 16, 2006 4:04 PM by Scott Stark

    Injecting EJB into MBean

    julianhall Newbie

      I've been having some issues trying to inject an EJB into an MBean. My injected EJB is null.
      ex. EJB:

      public interface Example{
      public class ExampleBean implements Example{

      and here is my MBean:
      public interface FooMBean {
       public void bar() throws Exception;
      public class Foo implements FooMBean {
       private Example ex;
       public void bar() throws Exception {
       ex.someMethod(); //ex allways null

      I'm fine when its another ejb, but having issue with an MBean. I'm also ok when looking the EJB up via JNDI in the MBean, but would like to get this working.