Manual Expression Building for Accessing Headers for Filters and Assignments Manual Expression Building for Accessing Properties for Filters and Assignments

Creating Oracle Mediator Routing Rules 19-33 Figure 19–27 Sample Oracle Mediator Supporting Java Callout To make Java callout classes available: You must ensure that the Java callout class is available on the server. You can use any of the following methods for this: ■ Copy the Java class to the SCA-INFclasses folder. ■ Copy the JAR file containing the Java class to the SCA-INFlib folder. ■ Copy the JAR file containing the Java class to the DOMAIN_HOMElib folder. If you want to make the Java callout class available to multiple Oracle Mediators, copy the JAR file containing the Java class to the DOMAIN_HOMElib folder. To enter the Java class for the callout: You can either manually enter the Java class or select a class from the Class Browser. ■ To manually enter the name of the Java callout class, start typing the class name in the Callout To field, as shown in Figure 19–28 . The auto-completion feature of Oracle JDeveloper completes the address and the classes in the current project. Figure 19–28 Callout To Field 19-34 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite ■ To select from a list of available classes, click the Select Java Callout Class icon. The standard Oracle JDeveloper class browser appears, as shown in Figure 19–29 . Figure 19–29 Class Browser Dialog The class browser is filtered so it only displays classes that implement the oracle.tip.mediator.common.api.IjavaCallout interface. To set the payload root element when using a filter expression: If you have a Java callout in Oracle Mediator and use a filter expression in the same Oracle Mediator, you must set the root element for the payload, as shown in Example 19–19 . Example 19–19 Setting the Root Element for the Payload changexmldoc = XmlUtils.getXmlDocumentChangedDoc; String mykey = request; message.addPayloadmykey,changexmldoc.getDocumentElement; To enable domain value map and cross reference functions: To use domain value map functions or cross reference functions in a Java callout, you must add the soa-xpath-exts.jar file to the project and import the necessary Java classes into your code.

1. In the Oracle JDeveloper Projects Explorer, right-click the name of the project

containing the Java callout.

2. Select Project Properties.

The Project Properties dialog appears.

3. In the left panel, select Libraries and Classpath, as shown in

Figure 19–30 .