Author |
Message
|
briconaut |
Posted: Wed May 24, 2006 7:55 am Post subject: MQ Client with multiple network interfaces |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed May 24, 2006 8:03 am Post subject: |
|
|
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 |
|
 |
briconaut |
Posted: Wed May 24, 2006 8:10 am Post subject: |
|
|
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 |
|
 |
wschutz |
Posted: Wed May 24, 2006 8:26 am Post subject: |
|
|
 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 |
|
 |
briconaut |
Posted: Fri May 26, 2006 4:48 am Post subject: |
|
|
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 |
|
 |
PeterPotkay |
Posted: Fri May 26, 2006 12:30 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
mvic |
Posted: Fri May 26, 2006 12:45 pm Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
|