Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is there a way to pass a target server as a property to a java callout?

Not applicable

I want to be able to pass a target server host and port as properties to a java callout policy. Is there a way to accomplish this?

I'm thinking some usage like:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<JavaCallout async="false" continueOnError="false" enabled="true" name="Java-Callout-1">
    <DisplayName>Java Callout-1</DisplayName>
    <Properties>
        <Property name="host" ref="target_server_host"/>
    </Properties>
    <ClassName>com.myorg.callouts.MyCallout</ClassName>
    <ResourceURL>java://my-callouts.jar</ResourceURL>
</JavaCallout>
1 6 659
6 REPLIES 6