Hi!
I know a BMT bean A can make use of EJBContext.getUserTransaction(). If this bean calls any CMT bean B then depending upon the transaction-attribute specified in DD the transaction from bean A will be passed to bean B.
Now suppose the client of bean B is not an
ejb(say a
servlet or swing) and wants to pass its trasaction to the CMT bean. Is this possible? Since client is not an EJB it will will not have UserTransaction reference. Which transaction object it should use. How this can be done?
Thanks
Prakash