1 Reply Latest reply on Apr 22, 2008 8:59 AM by Jonathan Halliday

    Using combination of CMT and BMT

    Debnath Mukherjee Newbie

      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