ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » how to use external transaction manager?

Post new topic  Reply to topic
 how to use external transaction manager? « View previous topic :: View next topic » 
Author Message
garonne
PostPosted: Mon Apr 03, 2006 1:08 am    Post subject: how to use external transaction manager? Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Apr 03, 2006 1:19 am    Post subject: Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Mon Apr 03, 2006 1:34 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Vitor wrote:
IBM knowledge base

I guess you mean the manuals : http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Apr 03, 2006 1:38 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mvic wrote:
Vitor wrote:
IBM knowledge base

I guess you mean the manuals : http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp


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
View user's profile Send private message
mvic
PostPosted: Mon Apr 03, 2006 1:40 am    Post subject: Re: how to use external transaction manager? Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

garonne wrote:
Can anyone please tell me how to use an external transaction manager to coordinate two-phase commit transactions in which WebSphere MQ participates.

There are 2 major sections in the manuals to review :
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzal.doc/usesync.htm
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/tsscen2.htm
Back to top
View user's profile Send private message
garonne
PostPosted: Wed Apr 05, 2006 6:36 am    Post subject: Re: how to use external transaction manager? Reply with quote

Acolyte

Joined: 26 Jan 2006
Posts: 59

mvic wrote:

There are 2 major sections in the manuals to review :
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzal.doc/usesync.htm
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/tsscen2.htm


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
View user's profile Send private message
mvic
PostPosted: Wed Apr 05, 2006 6:44 am    Post subject: Re: how to use external transaction manager? Reply with quote

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
View user's profile Send private message
garonne
PostPosted: Wed Apr 05, 2006 10:40 pm    Post subject: Re: how to use external transaction manager? Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Thu Apr 06, 2006 12:14 am    Post subject: Re: how to use external transaction manager? Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

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" . You'd need to check with your IBM account rep to be certain, but I think that the lists of supported environments at http://www.ibm.com/support/docview.wss?rs=171&uid=swg27006402 are authoritative.

If you're going to do this properly you'll need a copy of the XA specification ( http://www.opengroup.org/bookstore/catalog/c193.htm ) and the details of how MQ offers an XA resource manager interface ( Search the InfoCenter for MQRMIXASwitch, or try eg. http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzaf.doc/cfgxa.htm for client or http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/eeuow.htm for server )
Back to top
View user's profile Send private message
garonne
PostPosted: Wed Apr 12, 2006 1:25 am    Post subject: Re: how to use external transaction manager? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » how to use external transaction manager?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.