how to call entity bean from a entity bean

Discussions

EJB programming & troubleshooting: how to call entity bean from a entity bean

  1. how to call entity bean from a entity bean (2 messages)

    i m begginer to ejb, can i call entity bean from another entity bean or session bean from entity bean.
  2. hi

    u can call an entity bean from another bean through the ejbreferences set to the bean from the caller entity bean. U have to take care that u provide the reference in the descriptor for the calling entity bean from the caller bean. This is the same case with the session beans too.
  3. The same way you call them from a client. The only diff is that you don't need to provide initialization parameters for JNDI. Just instanciate a default initial context.