Results 1 to 2 of 2

Thread: iBatis SqlMaps, Websphere and transactions

  1. #1
    Join Date
    Oct 2004
    Location
    Sydney, Australia
    Posts
    46

    Default iBatis SqlMaps, Websphere and transactions

    Just wondering if anyone has had experienced this problem. I'm using Spring, iBatis and Websphere 4 and am trying to utilise the lazy loading capabilities of SqlMaps. When I set it up without any transaction manager, I get the following exception when accessing a member of the lazily-loaded collection:

    Error lazy loading result. Cause: com.ibm.ejs.cm.exception.WorkRolledbackException: Outstanding work on this connection which was not comitted or rolledback by the user has been rolledback.

    The thread here suggests that setting the 'transactionManager' configuration property in the SqlMaps configuration file to 'JTA' will solve the problem. However, this configuration property also requires a datasource to be set - something which I don't need to do since I'm using Spring. I cannot set the 'transactionManager' property along.

    Has anyone come across this before and found a solution?


    Geoff

  2. #2
    Join Date
    Oct 2004
    Location
    Sydney, Australia
    Posts
    46

    Default

    Never mind. I've kinda figured it out.

    Geoff

Similar Threads

  1. Replies: 0
    Last Post: Aug 18th, 2005, 11:41 AM
  2. Replies: 4
    Last Post: Jan 14th, 2005, 12:13 PM

Posting Permissions

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