OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

[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]
Sent: Thursday, October 04, 2007 5:29 AM
To: Michael Rowley; sca-j@lists.oasis-open.org
Cc: Matthew Shinn
Subject: ISSUE LOGGED: JAVA-5: EJB remove method on EJBHome

 

http://www.osoa.org/jira/browse/JAVA-5

 


Von: Michael Rowley [mailto:mrowley@bea.com]
Gesendet: Dienstag, 2. Oktober 2007 22:57
An: sca-j@lists.oasis-open.org
Cc: Matthew Shinn
Betreff: [sca-j] NEW ISSUE: EJB remove method on EJBHome

 

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]