Introduction : We have MessageLogger in Tracing palette. Message Logger writes a copy of the message to a database for future retrieval or audit. You can also create your own custom message log. All or part of the SMO can be written.
Message Logger contains one input, one output and one fail terminal. All message terminal have the same message type.
Properties :
Root : Xpath expression defining portion of SMO to log. Xpath expression can identify any element or portion of the SMO.
default : /body
Transaction mode : It contains two options :: same,new
Same : Commit database update with in the flow transaction (or) Log the massage to the same file
New : Commit database update immediately using a new transaction. (or) Log the massage to the new file for each message.
default : Same
Logging Type : It contains two options :: Database, Custom
Database : Log the message in the database by using Data source name
Custom : Log the message in fileby using Handler,Formatter,Filter options which are not applicable those are ignorable at runtime. The file is created in temporary folder : D:\DOCUME~1\user\LOCALS~1\Temp with the file name : MessageLog
default : Database
Data source name : JNDI name of data-source identifying the database.
default : jdbc/mediation/messageLog
Handler, Formatter, Filter : these options are used for custom logging type. implementation classes are defined by java logging API's. default implementation types are availabe by default. handler is required and formatter and filter is optional.
Literal : {0} to {5} representing following :
{0} Time Stamp : Indicates when the message is logged.
{1} Message ID : Message id from SMO.
{2} Mediation Name : The name of the message logger primitive that logged in the message.
{3} Module Name : The name of the mediation module containing the message logger.
{4} Message : The message specified in the root property
{5} Version : The version of the SMO
Message Logger contains one input, one output and one fail terminal. All message terminal have the same message type.
Properties :
Root : Xpath expression defining portion of SMO to log. Xpath expression can identify any element or portion of the SMO.
default : /body
Transaction mode : It contains two options :: same,new
Same : Commit database update with in the flow transaction (or) Log the massage to the same file
New : Commit database update immediately using a new transaction. (or) Log the massage to the new file for each message.
default : Same
Logging Type : It contains two options :: Database, Custom
Database : Log the message in the database by using Data source name
Custom : Log the message in fileby using Handler,Formatter,Filter options which are not applicable those are ignorable at runtime. The file is created in temporary folder : D:\DOCUME~1\user\LOCALS~1\Temp with the file name : MessageLog
default : Database
Data source name : JNDI name of data-source identifying the database.
default : jdbc/mediation/messageLog
Handler, Formatter, Filter : these options are used for custom logging type. implementation classes are defined by java logging API's. default implementation types are availabe by default. handler is required and formatter and filter is optional.
Literal : {0} to {5} representing following :
{0} Time Stamp : Indicates when the message is logged.
{1} Message ID : Message id from SMO.
{2} Mediation Name : The name of the message logger primitive that logged in the message.
{3} Module Name : The name of the mediation module containing the message logger.
{4} Message : The message specified in the root property
{5} Version : The version of the SMO
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.