getEJBObject

Discussions

EJB programming & troubleshooting: getEJBObject

  1. getEJBObject (1 messages)

    Hello,

    What will getEJBObject () and getEJBHome () return in EJB class itself? Say, I call these two methods of a business method of an entity bean, what would I get back?
    Is it remote reference of EJBObject? If it is so, how is it possible to get a remote reference of EJBObject at the serve side?

    Thanks in advance.
    Soumen Ghosh

    Threaded Messages (1)

  2. getEJBObject[ Go to top ]

    getEJBObject will return the remote reference of the bean. The remote interface that you create for the bean extends EJBObject...and the app server vendor generated code will know how to get the reference of the said bean. Look at the JavaDoc of these methods or refer to Richard Mohnson-Haefel's Enterprise JavaBean book.