I have a STATELESS session bean method with a "Requires" transaction
attribute, trying to create/use/remove a STATEFULL session object.  At the
end of the method in my STATELESS session I attempt to remove the STATEFULL
session, however, I get the javax.ejb.RemoveException thrown.

Section 7.6.4 of the ejb-2_0-pfd2-spec states that:

"If a session bean instance is participating in a transaction, it is an
error for a client to invoke the remove method..."

How can I then, make use of the STATEFULL session for the duration of the
transaction?

In this particular case, my STATEFULL session is acting like an iterator.
Thus I create it at the beginning of my method and remove it at the end of
my method.  The method is executing from a STATELESS session with "Required"
transaction attribute.

Thanks.
-AP_

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to