in spec p.352, it's said that for an entity bean, the transaction attributes must be specified, for the methods defined in the component interface and all the direct and indirect superinterfaces of the component interface, exluding some methods, and including by example remove() from EJBObject.
My question is the following: how we do to declare it in the DD, under the name of ejbRemove()? And what about the EJBHome's remove(Object PK) and remove(Handle handle) ? We declare them also under the name of ejbRemove() in the DD?
I think that if any element <method-intf> is specified, as in following extract:
then all of the methods EJBLocalHome.remove(Object PK), EJBHome.remove(Object PK) and EJBHome.remove(Handle h), EJBObject.remove() and EJBLocalObject.remove() will be assigned a transaction attribute Required, because without any method-int element specified, the transaction attribute applies to all the methods remove() (including overloaded ones).
SCJP 1.4, SCWCD, SCBCD, IBM XML, IBM Websphere 285, IBM Websphere 287
Sorry, I misunderstood your original question and gave wrong reply: element <method-intf> is used within <method-permission> element, not for <container-transaction> element.
I don't if we should use "remove" or "ejbRemove" for <method-name> element in <container-transaction>, but I don't think we need differentiate it from Home interface or component interface, becasue all removes go to a ejbRemove in bean class.
Who knows which method name ("remove" or "ejbRemove") should be used in <container-transaction> element?