EJB to SEAM component (various projects and JBoss)

I have the following setup:

JBoss 4.2.3
 under this I:

 
-> 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 code snippet:

@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 ideas on how to solve this?

Thanks in advance.

}

+3
source share
1 answer

ComponentX EJB, @EJB . . ComponentX EJB, @Stateless @Statefull @Local @Remote, AS , ComponentX EJB , . ComponentX InitialContext # "beanA/remote" .

+2

Source: https://habr.com/ru/post/1720720/


All Articles