|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Generate Eventmessage from java plugin |
« View previous topic :: View next topic » |
Author |
Message
|
Feysn |
Posted: Thu Dec 01, 2005 7:49 am Post subject: Generate Eventmessage from java plugin |
|
|
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 |
|
 |
wschutz |
Posted: Thu Dec 01, 2005 8:02 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
If you don't have inserts[], just pass "null". _________________ -wayne |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|