In HTTP world a single HttpServletRequest ties together execution of
multiple Servlets on the same http request.  It is similar to the way a
Transaction ties together multiple API calls to various EJB objects.  Like a
common thread, both HttpServletRequest and a Transaction "meander" through
various servlets or APIs respectively.

Is there a way to achieve something similar to
HttpServletRequest.getAttribute/setAttribute functionality in the EJB world
in relation to Transactions?

In other words, I would like to attach some values to existing transaction,
and be able to retrieve these values in other methods (executing inside of
the transaction boundry) without having to explicitly alter the interfaces
of the EJBs.

Thanks.
-AP_



Reply via email to