I'm currently using HFE as study-aid, and my understanding of the methods available to the local client (p154) do not include a way of removing a session bean via the local home interface.
However, running throught the
EJB 2.0 spec (section 6.4, page 60), I came across the following:
The local home interface allows a local client to do the following:
- create a new session object
- remove a session object
I thought that the only remove method in the EJBLocalHome interface was remove (Object primaryKey) and only valid for Entity beans.
If this is the case, how can bullet two above from the EJB 2.0 spec be true?
I can only assume that 'allows' in this sense means that the EJBLocalHome 'allows' you to get an EJBLocalObject which, in turn, 'allows' you to remove the session. The local home interface in this manner is indirectly allowing you to remove the session object.
To my mind the EJBLocalHome interface doesn't allow you to remove the session, it's the EJBLocalObject interface that does.
Anyone agree, or am I missing something?
Roger Yates
[ August 31, 2004: Message edited by: Roger Yates ]