1 Reply Latest reply on Jan 9, 2006 11:51 AM by Alexis Hassler

    Stateless Session Bean and EJBObject.remove method

    Ramesh Raghavan Newbie

      I have a stateless session bean. Inside this bean, I have multiple ejb methods that the client app can invoke. The client invokes my ejb methods by doing a
      i) JNDI lookup of the EJB
      ii) EJBHome.create
      iii) invoke the ejb method on the remote
      The client does not call the EJBObject.remove() method explicitely. I have a couple of questions:

      1) Should my client explicitely call the EJBObject.remove() method as a (iv)th step above.

      2) Can my client do the steps (i) and (ii) above once in the initialize() part of my client class and use the remote object through out the class instead of doing all the above 3 steps everytime?

      It is not very clear from looking at the EJB 2.0 spec to me.