Author |
Message
|
garonne |
Posted: Mon Apr 03, 2006 1:08 am Post subject: how to use external transaction manager? |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
Can anyone please tell me how to use an external transaction manager to coordinate two-phase commit transactions in which WebSphere MQ participates.
Thanks alot. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 03, 2006 1:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
I'd start by typing "two phase commit" into the search tool at the top of this forum. It's a popular topic and you'll find a wealth of discussion.
After that, the IBM knowledge base is your friend for all things MQ (and also has a search function).
Lastly, have a go. Experimentation is the father of learning - though I accept it can be the mother of all blunders!
If you've got a specific issue or question after that, come back & I'm sure you'll find an answer. As a wise man has as a signature: "MQSeries.net helps those who help themselves". _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mvic |
Posted: Mon Apr 03, 2006 1:34 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 03, 2006 1:38 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Sorry, came over all Microsoft....
I shall purge myself that the sin be cleansed. But they've been making me work on it. I keep asking for proper system, like Unix or mainframe, but they won't let me. They won't. I'm trapped and it's affecting me....
Apologies again for my error and any confusion caused. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mvic |
Posted: Mon Apr 03, 2006 1:40 am Post subject: Re: how to use external transaction manager? |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
garonne |
Posted: Wed Apr 05, 2006 6:36 am Post subject: Re: how to use external transaction manager? |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
Thank for your answer, I have read all the document relative to the links that you give me.
According to these document, I have to configure my TransactionManager in order that it can know XA switch file of WebSphere MQ.
But I have found this document from the Internet
http://www.topsecurity.dk/examples/servlet/View?id=2253
It's a guide to connect WebLogic to WebSphere MQ and to make the MDB work in the transactional mode. Following this guide, I found that I don't have to configure the TransactionManager of WebLogic.
So can you explain me more clearly? |
|
Back to top |
|
 |
mvic |
Posted: Wed Apr 05, 2006 6:44 am Post subject: Re: how to use external transaction manager? |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
garonne wrote: |
So can you explain me more clearly? |
First please provide a description of the system you want to build. What is it expected to do, and what software are you thinking of installing? Thanks |
|
Back to top |
|
 |
garonne |
Posted: Wed Apr 05, 2006 10:40 pm Post subject: Re: how to use external transaction manager? |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
mvic wrote: |
First please provide a description of the system you want to build. What is it expected to do, and what software are you thinking of installing? Thanks |
Infact, my project is to build a resource adapter for application server contact admin to connect to WebSphere MQ.
This resource adapter work well with the MDBs in the non-transactional mode. But when the transactional mode of the MDBs is set to "Required", each time the publisher send the message to the topic (in the non-transactional mode), the XATopicSession run but the onMessage method of the MDB can not be started, the MDB can not received message and there is no exception.
According to the document of contact admin, its transaction manager is JOTM and this one supports 2 phase commit.
So, I suppose that contact admin transaction manager or WebSphere MQ need some configuration in order that they can work together to coordinate the transaction. |
|
Back to top |
|
 |
mvic |
Posted: Thu Apr 06, 2006 12:14 am Post subject: Re: how to use external transaction manager? |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
garonne |
Posted: Wed Apr 12, 2006 1:25 am Post subject: Re: how to use external transaction manager? |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
mvic wrote: |
garonne wrote: |
So, I suppose that contact admin transaction manager or WebSphere MQ need some configuration in order that they can work together to coordinate the transaction. |
I've not used contact admin myself, so can't comment in detail. Also, since there's no mention of this software combination in the MQ manuals, I think the combination would be (in those dreaded words) "unsupported" |
Thanks for your answer,
But according to this https://genericjmsra.dev.java.net/docs/websphere-mq-integration-guide/webspheremq_integration_guide.html
WebSphere MQ can work in transactional mode with Sun Application Server (the one I didn't see in the support list of WS MQ from the link you give me)
Moreover, the XA switch structure of WebSphere MQ is stored in a .dll file, which is not for a J2EE Application Server.
It's likely that my resource adapter is not well designed.  |
|
Back to top |
|
 |
|