Oracle Weblogic Server (MOSC)

MOSC Banner

Implementation of MediatorRecoveryContext

edited Mar 7, 2012 1:10AM in Oracle Weblogic Server (MOSC) 1 commentAnswered
 

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center