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 Installation/Configuration Support » C start up program

Post new topic  Reply to topic
 C start up program « View previous topic :: View next topic » 
Author Message
tom.amenta
PostPosted: Mon Dec 17, 2001 8:46 am    Post subject: Reply with quote

Newbie

Joined: 16 Dec 2001
Posts: 3
Location: Severna Park, MD

I have a C program taken from a sample which
jsut attempts a MQCONN. I always get error
2058. I have tried executing AMQSPUTC and it works perfectly. Apparently something is wrong in link, setup or environment. WHat is wrong. THe server saeems to be working fine because I can use the MQSeries Explorer
to write to the queues.
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Mon Dec 17, 2001 11:20 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Is the program on the same machine as the queue manager? Make sure that you are linking with the correct MQ library. There are two - one for direct server connection where the program and the server are co-located on the same machine and one library for client access.
Back to top
View user's profile Send private message
tom.amenta
PostPosted: Mon Dec 17, 2001 11:48 am    Post subject: Reply with quote

Newbie

Joined: 16 Dec 2001
Posts: 3
Location: Severna Park, MD

I have checked the link library and I think it is correct but maybe not.
I am running on NT with a client and server on the same machine.
I have used libraries imqb23vn and inqs23vn
Back to top
View user's profile Send private message Send e-mail
tom.amenta
PostPosted: Mon Dec 17, 2001 11:49 am    Post subject: Reply with quote

Newbie

Joined: 16 Dec 2001
Posts: 3
Location: Severna Park, MD

that shoud read -
imqb23vn and imqs23vn
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Mon Dec 17, 2001 1:00 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

The imqs23vn says you are linking the program for connection with server libraries and hence the queue manager must be on the same machine. If the queue manager were remote, you would link with the imqc23vn library.

In your application, where do you specify the name of the queue manager to which you wish to connect? Can you post the source?
Back to top
View user's profile Send private message
bduncan
PostPosted: Mon Dec 17, 2001 6:57 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

A few questions.
1) When you use amqsputc which you say works fine, are you supplying the queue manager name when running it from the command line?
2) Is the queue manager you are attempting to connect to the default queue manager for this machine? In other words, if it is the default queue manager, you should be able to issue an MQCONN without having to supply the queue manager name.
3) If the queue manager is not the default queue manager, or you are passing the name of the queue manager to your application, or you hardcoded the queue manager name in your application, have you checked to make sure the case is the same? Case-sensitivity is an issue when connecting to queue managers or opening queues via MQI.


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » C start up program
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.