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 » MQ Client with multiple network interfaces

Post new topic  Reply to topic
 MQ Client with multiple network interfaces « View previous topic :: View next topic » 
Author Message
briconaut
PostPosted: Wed May 24, 2006 7:55 am    Post subject: MQ Client with multiple network interfaces Reply with quote

Newbie

Joined: 24 May 2006
Posts: 8
Location: Germany - Frankfurt am Main

Hi,
I'm writing a small MQ Client application using C on a Solaris machine with a MQ 5.3 client installation. This machine has several network interfaces. The MQ-Server I'm trying to connect to is only reachable through one specific interface (ie 'ping <ip of server>' fails, but 'ping -i <specific interface> <ip of server>' works fine). How can I pass the interface (or the ip it's bound to) to the MQCONNX call? I've had a look at the manual for the C API but didn't find a way to do this.

Are there other solutions to this problem?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 24, 2006 8:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Just specify the specific IP address as the "hostname".
So your connection name would be "ip address(port number)" and not "machine name(port number)".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
briconaut
PostPosted: Wed May 24, 2006 8:10 am    Post subject: Reply with quote

Newbie

Joined: 24 May 2006
Posts: 8
Location: Germany - Frankfurt am Main

Thank you for your quick reaction.

Isn't the ip-address in the channel name the ip-address of the host? I need to specify the ip-address (or the interface) of the client, similar to way the 'ping' command gets passed the interface to reach the server through (see my original post).
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed May 24, 2006 8:26 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

you want LOCLADDR, either in a client channel definition or passed on a mqconnx (via MQCD)
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
briconaut
PostPosted: Fri May 26, 2006 4:48 am    Post subject: Reply with quote

Newbie

Joined: 24 May 2006
Posts: 8
Location: Germany - Frankfurt am Main

wschutz wrote:
you want LOCLADDR, either in a client channel definition or passed on a mqconnx (via MQCD)


Thank's to your hint I've finally found it: it's the 'LocalAddress' element of the 'MQCD' structure. Until now I've been working with 'WebSphere MQ Application programming reference 6.0' (aka 'csqzak10.pdf'). This document doesn't include a description of the 'LocalAddress' element of 'MQCD' (and some other elements too). Can you recommend a better document?

Regards.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri May 26, 2006 12:30 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

The "document" that has them all, the Info Center:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
mvic
PostPosted: Fri May 26, 2006 12:45 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

briconaut wrote:
Can you recommend a better document?

I've always looked in the Intercommunication manual for details on the MQCD. Try http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzae.doc/csqzae10326.htm (you have to search down the page for LocalAddress).
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 » MQ Client with multiple network interfaces
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.