I am confused in this part. The EJB 2.0 specs say that The local home interface allows a local client to do the following: � Create a new session object. � Remove a session object.
how is this possible? Session objects do not have primary keys that are accessible to clients, invoking the javax.ejb.EJBLocalHome.remove(Object primaryKey) method on a session results in the javax.ejb.RemoveException. So it local home interface can be used only for creating a new session object? Am I right?
The EJB 2.0 specification is full of minor internal consistencies. This one is on page 60, in section 6.4. It is just wrong; there is no usable remove method from the local home interface for session beans. I'm guessing there was a cut-and-paste error from remote interfaces. Section 6.4.2 on the same page, which elaborates on the remove process, correctly describes the remove operation through the component interface, and notes that javax.ejb.EJBLocalHome.remove(Object primaryKey) will result in a remove exception.
That is a really big piece of pie for such a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop