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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -