Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java API document for SOA developer

user5108636Aug 23 2012 — edited Aug 23 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2012
Added on Aug 23 2012
6 comments
3,209 views