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 » General Discussion » 2058 while running MQPutFile on MQ Client

Post new topic  Reply to topic
 2058 while running MQPutFile on MQ Client « View previous topic :: View next topic » 
Author Message
Om
PostPosted: Mon Jun 21, 2004 7:37 am    Post subject: 2058 while running MQPutFile on MQ Client Reply with quote

Novice

Joined: 11 Aug 2003
Posts: 12

Hi,

I have recently installed MQ Client on a Solaris box. I have never worked on MQ Clients before.
When I run MQPutFile on client it error out (2058) while MQPutFile runs
successfully on MQ Sever box. amqsputc succeeds on MQ Client.

So if QMGR is queue manager on server and TESTQ is queue name.
java MQPutFile TESTQ QMGR filename succeeds on MQ Server.
java MQPutFile TESTQ QMGR filename fails on MQ Client (2058).
amqsputc succeeds on MQ Client. MQSERVER environment is setup correctly on client.
What I am doing wrong?? Please help.
Thanks
_________________
-Om
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Jun 21, 2004 8:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

If you are using java then MQSERVER variable will not be used
You have to use MQEnvironment in your java class.

Look at this thread for a sample of mqclientput

http://www.mqseries.net/phpBB2/viewtopic.php?t=14645&highlight=mqclientput
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RogerLacroix
PostPosted: Mon Jun 21, 2004 8:16 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

What is MQPutFile? A user written application?

In case you don't know, Java applications do NOT use the MQSERVER environment variable or the Client Channel Table file for getting the connection information to connect to a queue mqnqger.

You need to set the MQEnvironment class in your Java application. i.e.
Code:
MQEnvironment.hostname = '127.0.0.1';
MQEnvironment.channel  = 'SYSTEM.DEF.SVRCONN';
MQEnvironment.port     = 1414;

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
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 » General Discussion » 2058 while running MQPutFile on MQ Client
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.