Hi
I have a unique problem. I want to upload a file and write
a record to the database. Additionally, the file upload occurs
in the web tier and the database write in the ejb tier. The
order of operations is : 1) database write, 2) file upload
I want to ensure transactional semantics for these operations.
The ejb tier uses CMT. Can I use BMT in the web tier and
call the CMT-based ejb method ? Will the transaction manager
allow this ? Will it rollback the database write if the file-upload
in the web tier fails ?
Please let me know your thoughts.
Thanks,
Debnath
> Can I use BMT in the web tier
There are no EJBs in the web tier, so that statement makes no sense. Begin a tx in the web tier, call the EJB in the scope of that tx, setRollbackOnly or explicitly roll it back if the upload fails.