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 » Multiphase Commit » XA with dockerized Websphere MQ

Post new topic  Reply to topic
 XA with dockerized Websphere MQ « View previous topic :: View next topic » 
Author Message
yashgt
PostPosted: Mon May 23, 2016 10:00 pm    Post subject: XA with dockerized Websphere MQ Reply with quote

Apprentice

Joined: 11 Nov 2014
Posts: 38

Hi,

If XA is used as a XA Transaction Manager using Java MQ classes, not JTA, the Java application and the WMQ, both need to reside on the same host machine. I have been told this is because shared memory is used as Inter Process Communication mechanism.

If we use deploy WMQ in a docker container and keep our Java application in another docker container, both on the same host, will we be able to use the WMQ as a XA coordinator?

Will we have to use certain special configuration of the container to get it working?

Regards,
Yash
Back to top
View user's profile Send private message
hughson
PostPosted: Tue May 24, 2016 1:59 am    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

I don't know the answer to your question as I'm not familiar enough with Docker. So let me ask you this. Do you use a channel, hostname and port number to connect your Java application to the queue manager? If the answer is yes, then your can't use the queue manager as the XA coordinator.

Cheers
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
yashgt
PostPosted: Tue May 24, 2016 2:44 am    Post subject: Reply with quote

Apprentice

Joined: 11 Nov 2014
Posts: 38

So far in a non-docker world, we have been using MQEnvironment object and setting the host, port and channel to connect to QM. And XA has been working smoothly. The host is however, the same IP address as the machine where the program is running.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 24, 2016 4:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I don't think you can share memory into and out of a Docker container.

If you can, it will be through some option when you do the docker run command.

What this means is, unless you can find the right docker run option, you must run your application inside the container. And not outside or in another container on the same machine.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
hughson
PostPosted: Tue May 24, 2016 4:18 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

yashgt wrote:
So far in a non-docker world, we have been using MQEnvironment object and setting the host, port and channel to connect to QM. And XA has been working smoothly.
What is your XA Co-ordinator in this case?
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Multiphase Commit » XA with dockerized Websphere MQ
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.