|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
java code to MQ |
« View previous topic :: View next topic » |
Author |
Message
|
abd.wsu |
Posted: Fri Feb 13, 2015 10:00 am Post subject: java code to MQ |
|
|
Acolyte
Joined: 12 Sep 2012 Posts: 65
|
Hello,
I m sorry i have to ask a really silly question. I haven't done a lot of MQ developing. Now, I have a .java file, basically java code with all the connection factory settings etc. in windows.
How should i use this to connect/test and send some messgaes across to my queue manager in linux?
Really sorry if this sounds silly but i just needed a jump nudging me in the right direction.
Thanks in advance. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Fri Feb 13, 2015 11:07 am Post subject: Re: java code to MQ |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
abd.wsu wrote: |
I have a .java file, basically java code with all the connection factory settings etc. in windows. |
I'm not sure what you mean by that but values like queue manager name, channel name, hostname/IP and port # should be in a Java property file that your Java application reads.
Please do not hardcode values in your in your Java program.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
Vitor |
Posted: Fri Feb 13, 2015 11:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
It's odd at best; I wouldn't go to "silly".....
Given that you have all the connection factory settings, set them to your linux queue manager and away you go. You might need SVRCONN, security & queues defined on the linux end if that's not already in place. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|