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 API Support » same process act as client/server possible?

Post new topic  Reply to topic
 same process act as client/server possible? « View previous topic :: View next topic » 
Author Message
girlinusa2006
PostPosted: Tue May 16, 2006 12:51 pm    Post subject: same process act as client/server possible? Reply with quote

Novice

Joined: 09 May 2006
Posts: 24

Hi,

I have this process which connects to a remote queue manager and writes to it and also reads its local queue manager for any messages.

But when i am compiling an runnign this program, I am just able to do only 1 of the things.

If i compile using -lmqic, I can just connect to remote queue maanager and write to remote queue. I cannot connect to my local queue manager.

If i compile using -lmqm, I cannot connect to remote queue manager. But I can connect to my local queue manager and read the queue.

What should I do, in order for the same process to do the above I have mentioned?? Connect to both remote queue manager and local queue manager. ( my MQ read object and write object are seperate)

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue May 16, 2006 12:56 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I don't think it's possible to have an application that makes a bindings connection AND a client connection in the same code. Particularly not a C program.

You can make client connections to as many queue managers as you want - although you should consider whether you are trying to emulate channel behavior if you are connecting to more than one queue manager at the same time. If you are doing work that is better done by channels (i.e., moving messages from one qmgr to another!), then just let the channels do the work.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed May 17, 2006 10:51 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Hmmmm. SupportPac MA01, q, does it:
Quote:
[-l Library name] e.g.mqm or mqic32

But that is a choice. I tend to agree that you can't connect to both at the same time.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
clindsey
PostPosted: Wed May 17, 2006 10:57 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Use dynamic linking rather than static links

For an example, go to http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html and look at ntloadmq.c or sunloadmq.c
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » same process act as client/server possible?
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.