1 Reply Latest reply on Oct 22, 2009 7:39 PM by Riccardo Serafin

    SEAM Access to external EJB3 without lookup.

    Diego Magalhaes Newbie
      Hey guys,

      I have the following setup:
      JBoss 4.2.3
      under that i have:


      -- Project A  (Wich is not SEAM 2.1.2GA based)
          EJBs:
             * beanA (JNDI = beanA/remote)
             * beanB (JNDI = beanB/remote)

      -- Project B  (SEAM based)
          EJBs / Components:
             * ComponentX
             * ComponentY
      On component X i have the current piece of code:

      @Scope(ScopeType.CONVERSATION)
      @Name("ComponentX")
      public class ComponentX implements java.io.Serializable {
      ...
      @EJB
      beanAInterface beanA;
      ....
      public foo(){
          beanA.bar();  // <--------- beanA is null, even with mapped name and etc, only works
                        //            if i direct lookup with Context().lookup("beanA/remote")
      }
      Any ideias on how to solve this?

      Thanks in advance.