Posted: Tue Oct 19, 2004 9:56 am Post subject: Help needed: custom java node and logging
Novice
Joined: 10 Feb 2004 Posts: 24
I am trying to write a custom Java Node.
I need to log some information into the Wbimb sys log.
I found the following Java plugin API's .
I am at a loss on how to use the API .
Can someone please point out some documentation with regards to that .
I see bits and pieces of information
1)It looks like I need a XPG4 message Catalog. I found a way to create the catalog.Where should I put it on my AIX Server?
2) What is the relation ship between the resourceBundleName and
Messagkey and inserts parameters that the APi's use to log information?
3) What is the relationship betwen the XPG4 message Catalog and resource bundlename and what the message catalog contains?
public static void logInformation(Object source,
String methodName,
String resourceBundleName,
String messageKey,
String traceText,
Object[] inserts) throws MbException
Writes an information message to the WMQI system log. The message has the following format: BIP4360I: Java plugin node information: [MessageSource:MessageKey] Full message with inserts resolved: traceText
Parameters
source: - The object generating the log message.
methodName - The name of the method generating the log message.
resourceBundleName - The resource bundle name.
messageKey - The key to the message in the ResourceBundle.
traceText - The text that is extra to the message indicated by the key.
inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
Throws
MbException
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