|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XA with dockerized Websphere MQ |
« View previous topic :: View next topic » |
Author |
Message
|
yashgt |
Posted: Mon May 23, 2016 10:00 pm Post subject: XA with dockerized Websphere MQ |
|
|
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 |
|
 |
hughson |
Posted: Tue May 24, 2016 1:59 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 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 |
|
 |
yashgt |
Posted: Tue May 24, 2016 2:44 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Tue May 24, 2016 4:06 am Post subject: |
|
|
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 |
|
 |
hughson |
Posted: Tue May 24, 2016 4:18 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|