java - How to do XA transaction which includes JDBC and JMS transactions? -


i need xa transaction in javase jdbc , jms queues.

i have weblogic server lookup resources.

could me sample code?

i can't provide code, must keep these things in mind when doing two-phase commit jdbc , jms resources in weblogic...

jms general settings

  • configure jmsconnection factory use: weblogic.jms.xaconnectionfactory

more info: http://docs.oracle.com/cd/e13222_01/wls/docs103/consolehelp/pagehelp/jmsjmsconnectionjmsconnectionfactoryconfigtransactionparamstitle.html

jdbc general settings

  • configure jdbc connection pool use xa-compliant jdbc driver.

from code perspective, either control transaction mdb or spring bean transaction annotations; j2ee containers handle global commit/rollback.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -