Results 1 to 3 of 3

Thread: Transaction without a datasource ?

  1. #1
    Join Date
    Apr 2009
    Posts
    3

    Question Transaction without a datasource ?

    Hi,

    I am working on a java application, which do not have direct access to the datasource(Mainframe DB2) . But these jave programs do have access to third party connection Utilities(also written in java which interface with COBOL programs). That means to fetch the data or to update the data my application uses the third party utility pograms with the help of DAO's (partially).

    My application has ability to handle n-number of requests at a time, my question is, is it possible to start any transaction from my appication so that I can maintian consistency and integrity of the data? The third party utilities do not have much control on the transaction management.
    Does spring framework provides (JTA, AOP,,,) any feature to handle the above scenario ? Transaction can be created without a data connection ? Please help.
    Please let me know if I am not clear about the question.

    Thanks,
    Sri

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    The third party utilities do not have much control on the transaction management.
    Transaction can be created without a data connection ?
    Those two statements appear inconsistent (or at least confusing). On reflection the second is a question, so maybe the answer is "yes" but only if the resource supports transactions natively.

    Since this isn't a Batch question you might get more help over on the Data Access forum. I doubt there is anything anyone can do if you have non-transactional resources to make them transactional by magic. Note that Spring does not implement any transaction manager itself - just wraps existing standards and tools in a portable abstraction.
    Last edited by Dave Syer; Apr 9th, 2009 at 02:34 AM. Reason: clarify

  3. #3
    Join Date
    Apr 2009
    Posts
    3

    Default

    Hi Dave,

    just to clarify the above question,

    Transaction can be created without a data connection ?
    I asked this from my application point of view, because my app. does not have control over the datasource.
    Any way thanks for you reply. I put this thead in a wrong forum by mistake.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •