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 » WebSphere Message Broker (ACE) Support » Generate Eventmessage from java plugin

Post new topic  Reply to topic
 Generate Eventmessage from java plugin « View previous topic :: View next topic » 
Author Message
Feysn
PostPosted: Thu Dec 01, 2005 7:49 am    Post subject: Generate Eventmessage from java plugin Reply with quote

Apprentice

Joined: 04 Jun 2004
Posts: 33
Location: Wilrijk

Hi,

I want to generate an event message in the eventlog. With the MBService object this is possible.


Code:

MbService.logError(String className,
                            String methodName,
                            String resourceBundleName,
                            String messageKey,
                            String traceText,
                            Object[] inserts) throws MbException


As you have a broker exception


Code:

...
catch(MbBrokerException mbbrkex)
   {
    MbService.logError("CheckQueuesNode", mbbrkex.getMethodName(), "BIPv500",mbbrkex.getMessageKey(),mbbrkex.getTraceText(),mbbrkex.getInserts());


Now my question comes

What if you do not have an exception array of inserts? How can you use then this function. Because you have to provide an array of inserts.

The className, MethodName,resourceBundleName,messageKey,traceText, you can specify with plain string.

Can anyone give an example of the Object[] inserts attribute for this function.


Thanks for the feedback.

feysn
Back to top
View user's profile Send private message Visit poster's website
wschutz
PostPosted: Thu Dec 01, 2005 8:02 am    Post subject: Reply with quote

Jedi Knight

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

If you don't have inserts[], just pass "null".
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Generate Eventmessage from java plugin
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.