During a particular transaction, I create a new statefull session bean.  At
the end of the function which is using the statefull session bean, I attempt
to call the remove() on the session bean.  This, however, throws an
exception stating that statefull session bean cannot be removed during a
transaction.

So, question then, is how do I delete a statefull session bean?

Suppose I have a method foo(), and it's using container demarcated
transaction management.  Inside of foo, I call on
StatefullSessionBeanHome.create(...).  Now, at the end of foo() I am done
with the statefull session bean.  If I just return from foo(), how will the
container know to remove the bean I have created?  Currently, in my
application, I don't do a delete, however, at the time I stop the server I
see a passivate being called for EVERY Statefull session bean that I have
created.

The EJB-SPEC indicates that statefull session beans should not be removed
during a transaction, but it does not allude as to what method should be
used to remove statefull session beans.

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