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: 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]