ibatis and activemq in local transaction using the same database...

Discussion in 'Java' started by alex, Sep 1, 2008.

  1. alex

    alex Guest

    hi All,
    I need to use ibatis and activemq in a transaction like:

    try {
    sqlMapClient.startTransaction();

    sqlMapClient.delete("deleteUser", user); //

    jms.sendMessage(); // could anybody help with this one...

    sqlMapClient.commitTransaction();
    }
    catch (SQLException ex) {
    ex.printStackTrace();
    }
    finally{
    sqlMapClient.endTransaction();
    }

    I'm going to use same datasource for ibatis's SqlMapClient and
    activemq's JDBCPersistenceAdapter. can anybody tell me how to implement
    jms piece, so that it would be a part of this transaction...
    thanks.
     
    alex, Sep 1, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christian U. Ullenboom
    Replies:
    0
    Views:
    2,122
    Christian U. Ullenboom
    Apr 11, 2005
  2. Jesus M. Salvo Jr.
    Replies:
    2
    Views:
    4,305
    robert
    Feb 11, 2006
  3. Replies:
    1
    Views:
    1,525
    RedGrittyBrick
    Sep 21, 2007
  4. Michael Justin
    Replies:
    12
    Views:
    1,230
    Arne Vajhøj
    Nov 26, 2009
  5. Vencz Istv?n
    Replies:
    2
    Views:
    304
Loading...

Share This Page