|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQIVP Source Code |
« View previous topic :: View next topic » |
Author |
Message
|
jcc267 |
Posted: Thu Jul 14, 2005 11:09 am Post subject: MQIVP Source Code |
|
|
Newbie
Joined: 28 Jun 2005 Posts: 2
|
I did a put and get from a local queue manager using the MQSample application provided in the Using Java manual. Then, I tried to do the same from a remote server by adding code that defined:
MQEnvironment.hostname
MQEnvironment.channel
I'm new to java and I can't get it to work. So, I figured it would really help to see the source code for the verification program MQIVP.Class, because it does everything I want it to do (connect, put, get, and disconnect) with my remote server.
I have been searching for the source code for MQIVP.class
Just wondering if anyone has tried this with luck in the past.
P.S. This is the error I receive when I run my code:
Unable to load message catalog - mqji
An MQSeries error occurred : Completion code 2 Reason code 2058 |
|
Back to top |
|
 |
wschutz |
Posted: Thu Jul 14, 2005 11:43 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I don't think the IVP source code is shipped....
In any case, 2058 means that you were able to connect to a queue manager, but the name you specified on the client side wasn't the name of the queue manager you connected to on the server. Check spelling , case of the qmgr name. _________________ -wayne |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Jul 14, 2005 11:50 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
jcc267 |
Posted: Mon Jul 18, 2005 9:36 am Post subject: |
|
|
Newbie
Joined: 28 Jun 2005 Posts: 2
|
Thanks for the posts : )
However, I'm sure that the qmanager was typed in correctly because it is the same qmanager I had tested in MQIVP. I did make sure to double-check my source code though.
The samples page provided will most likely be benificial once I find a way to access a remote qmanager using Java. Unfortunately, I still haven't found a way to do so and none of the samples do either. I'm trying to incorporate the name of the host and channel but the code isn't working.
According to the Using Java Manual, the verification application MQIVP.class can do the following:
a: Connect to, and disconnect from, the named queue manager.
b: Open, put, get and close the system default local queue
After asking for the host, port, channel and Qmanager, MQIVP does the above successfully with the remote qmanager I'm testing. So I'm assuming code that does the tasks similar to that of MQIVP would be very helpful. |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Jul 18, 2005 9:45 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
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
|
|
|
|