Java API document for SOA developer
Hi All,
I have a SOA composite application. I need to notify any process failures via email to the support group. I am able to send a mediator instance failure via email. The challenge is to provide a meaningful content, so that it helps the support group. My current content is as below
MAIL CONTENT
Dear Administrator,
An ORTD Process instance has faulted.
======================================
Fault policy id: ORTDFaultPolicy
Fault type: mediator
Partnerlink: ODS_COMMENTS
Port type: null
Fault: FaultImpl:{
bindingType = null
componentInstanceId = mediator:2F0F4840ECD711E19F748DF93DD101B7
componentName = HandleRealTimeRequests
compositeDN = default/RealTimeService!3.0 compositeInstanceId = 60001 creationDate = 2012-08-23 14:01:19.231 ECID = 3212bd6148b741d8:1d074ac2:139519b67d0:-8000-0000000000000369
engineType = mediator
id = 2F3F0AD0ECD711E19F748DF93DD101B7
*message = {faultMessage=oracle.xml.parser.v2.XMLElement@211dc32e, mediatorErrorCode=oracle.xml.parser.v2.XMLElement@211dc915, faultCode=oracle.xml.parser.v2.XMLElement@211deac7}*
name = {http://schemas.oracle.com/mediator/faults}mediatorFault
recoverable = false
referenceName = null
serviceName = null
type = 0}
As highlighted in bold above, how do I parse the Java object received by calling
MediatorRecoveryContext ctx = (MediatorRecoveryContext)iFaultRecoveryContext;
msg.append("Fault: " + ctx.getFault().getMessage()); // This returns a Java object which might hold the key error content. How do I parse it to display to the support group.
Thanks