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 » user context on a message exit during receive()

Post new topic  Reply to topic
 user context on a message exit during receive() « View previous topic :: View next topic » 
Author Message
HenriqueS
PostPosted: Fri Nov 16, 2007 12:21 pm    Post subject: user context on a message exit during receive() Reply with quote

Master

Joined: 22 Sep 2006
Posts: 235

Hello,

I have a message exit that checks on which kind of channel is called. If it is a sender channel, it performs some operations on the message flowing out. If it is a receiver channel, it performs some other operations.

Funny thing is that to make it sure everything is fine I write a log file to check it later...using regular C functions as fopen() and fprintf()...

If the exit is called over a sender channel (when sending messages), the file is written into /var/mqm .

If the exit is called over a receiver channel (when receiving messages), the file is written into /home/mqm

Any idea why?
_________________
HenriqueS
Certified Websphere MQ 6.0 System Administrator
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Nov 16, 2007 12:36 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

chinit vs runmqlsr.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Nov 16, 2007 7:37 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
Location: London, ON Canada

Hi,

I'm guessing the exits are on 2 different servers. Basically, the mqm account has a different 'home' directory on each server. You can verify this by doing:
Code:
grep mqm /etc/passwd

Why don't you explicitly write to a particular path and file.
i.e.
/var/mqm/exits/myexit.log

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » User Exits » user context on a message exit during receive()
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.