Ejb reference


EJB programming & troubleshooting: Ejb reference

  1. Ejb reference (2 messages)

      How to pass a ejb reference to another EJB.


    Threaded Messages (2)

  2. Ejb reference[ Go to top ]

    If both are local then you could pass as argument. But I wouldn't do that because if I wanted to expose any one of that bean as remote (later stage) then I will have to change the signature, which is not really a good idea. (but its doable).

    Why dont we think of creating a VO and pass it as such, unless you have some specific and good reason to pass ejb itself.
  3. Ejb reference[ Go to top ]

    I dont know if this helps or not but.. u can lookup for the reference of one EJB in another using JNDI.