Implementation of MediatorRecoveryContext
Hi ,
I'm implementing the Fault handling framework for mediator faults in which mediator faults will be caught by fault policies and java class will be referred to proces this error.
Below is the implementation :
public class FaultHandler implements IFaultRecoveryJavaClass{
public String handleFault(IFaultRecoveryContext ifc) {
MediatorRecoveryContext mrc = (MediatorRecoveryContext)ifc;
//Mrc object holds the details of the fault
//mrc.getFault().getMessage() is Hash map converted to an object.
HashMap hashMap= (HashMap) mrc.getFault().getMessage();
interfaceKey3= hashMap.get("faultMessage").toString;
// This is where the problem starts
// on doing this I get oracle.xml.parser.v2.XMLElement@5e61db4 which means that I’m not able to convert this XML Element to String