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

A

alex

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,187
Latest member
RosaDemko

Latest Threads

Top