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 » User Exits » Remote queue name

Post new topic  Reply to topic
 Remote queue name « View previous topic :: View next topic » 
Author Message
jj.unlimit
PostPosted: Wed Sep 24, 2008 2:11 am    Post subject: Remote queue name Reply with quote

Novice

Joined: 17 Sep 2008
Posts: 12

I have read the IBM help on "Channel-exit calls and data structures" .
Couldnt find that any info in the data structure has the remote queue name.

Currently, as discussed on the previous thread, im working on a receiver exit program. However tehre is no variable thats indicating that it is pointing to the remote queue name.

Anyone has any idea how to get the remote queue name for my exit program?


Thanks in adv!
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Sep 24, 2008 9:12 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

Look in the MQXQH structure in the message data.
_________________
Glenn
Back to top
View user's profile Send private message
jj.unlimit
PostPosted: Thu Sep 25, 2008 2:31 am    Post subject: Reply with quote

Novice

Joined: 17 Sep 2008
Posts: 12

I found the value in MQXQH structure.
when i print it out... its some invalid values like heart and diamonds

PMQXQH pMQXQH;
pMQXQH = (PMQXQH) AgentBuffer;

if(pMQXQH != NULL_POINTER){
int i;
char tmp [sizeof(pMQXQH->RemoteQName)];
memcpy (tmp,pMQXQH->RemoteQName, sizeof
(pMQXQH->RemoteQName) ) ;
strtok(tmp, " ");

fprintf(fp, "%s\n",tmp);
}

is it somewhere wrg.

using the same method, i try to get out the msgid from the msgdesc, in the end i also getting the wrg values...
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 » User Exits » Remote queue name
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.