[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [sca-j] ISSUE 5 - EJB remove method on EJBHome
Subject line shortened. From: Barack,
Ron [mailto:ron.barack@sap.com] http://www.osoa.org/jira/browse/JAVA-5 Von:
Michael Rowley [mailto:mrowley@bea.com] TARGET: EJB Session Binding
Specification section 2.3.1 (section number from 1.0 version of the spec) DESCRIPTION: In the discussion of the Ejb 2.x
client view in section 2.3.1 it says: “When the SCA
conversation with a stateful session bean ends, for example as a result of a
call to ServiceReference.endSession(), the associated session object will be
removed by calling the EJB Home remove() method.” Shouldn’t this really be a
call to the remove method on the EJBObject instead of the EJBHome? The
EJBHome interface has the following two remove methods: Public void
remove(javax.ejb.Handle handle); Public void remove(Object
primaryKey); The second remove method would be
illegal to invoke on a session bean home. The first remove method implies
a prior call to EJBObject.getHandle(). Further, the EJBLocalHome
interface only has the remove method that takes the primary key. PROPOSAL: The remove method on the EJBObject
or EJBLocalObject interface should be used to remove the EJB. |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]