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 » MQIVP Source Code

Post new topic  Reply to topic
 MQIVP Source Code « View previous topic :: View next topic » 
Author Message
jcc267
PostPosted: Thu Jul 14, 2005 11:09 am    Post subject: MQIVP Source Code Reply with quote

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
View user's profile Send private message Send e-mail
wschutz
PostPosted: Thu Jul 14, 2005 11:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
bower5932
PostPosted: Thu Jul 14, 2005 11:50 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Go to:

http://www.developer.ibm.com/isv/tech/sampmq.html

and you'll find plenty of samples.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jcc267
PostPosted: Mon Jul 18, 2005 9:36 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bower5932
PostPosted: Mon Jul 18, 2005 9:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Go back to:

http://www.developer.ibm.com/isv/tech/sampmq.html

and check out the mqhash.java sample. It sets the environment in a hash table so that it can access a remote queue manager.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQIVP Source Code
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.