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 » Can an API exit write to the MQ error files

Post new topic  Reply to topic
 Can an API exit write to the MQ error files « View previous topic :: View next topic » 
Author Message
mqdogsbody
PostPosted: Tue Aug 03, 2010 8:22 am    Post subject: Can an API exit write to the MQ error files Reply with quote

Acolyte

Joined: 01 Jun 2010
Posts: 71

I think the subject says it all: it would be useful to be able to generate messages in AMQERR01.LOG from my API exit.
_________________
-- mqDB --
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Aug 03, 2010 9:32 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

While I believe it's possible, I'd leave WMQs internal files and file system untouched by your exit.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 03, 2010 10:03 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

To expand on bruce's response - There doesn't appear to be any API method of asking MQ to add information to the log files.

There doesn't even appear to be any set of AMQ*** numbers set aside for "user messages", in a manner akin to the set of BIP*** numbers set aside by Broker for user exceptions.

So, yes, you certainly can write code to add data to these files, but not through any mechanism that is supplied by MQ or supported.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Aug 03, 2010 4:29 pm    Post subject: Reply with quote

Jedi

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

mqjeff wrote:
...So, yes, you certainly can write code to add data to these files, but not through any mechanism that is supplied by MQ or supported.

MQ exits generally implement their own error logging mechanisms, to write their own log files, syslog, sysprint, windows events, etc.
_________________
Glenn
Back to top
View user's profile Send private message
mqdogsbody
PostPosted: Wed Aug 04, 2010 12:32 am    Post subject: Reply with quote

Acolyte

Joined: 01 Jun 2010
Posts: 71

mqjeff wrote:
not through any mechanism that is supplied by MQ or supported.
It's shame there's no such mechanism. Can I suggest...

gbaddeley wrote:
MQ exits generally implement their own error logging mechanisms, to write their own log files, syslog, sysprint, windows events, etc.
Yes, and we do too, but we have montoring already in place for the MQ error files and it just strikes me as nice if significant problems (in our case an unauthorized message) could be logged in the standard way.
_________________
-- mqDB --
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 04, 2010 1:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

mqdogsbody wrote:
mqjeff wrote:
not through any mechanism that is supplied by MQ or supported.
It's shame there's no such mechanism. Can I suggest...


I agree, it sounds like a useful thing to have. But my opinion doesn't matter...

There's an MQ requirements form...
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 » Can an API exit write to the MQ error files
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.