Custom Inbound Endpoint Properties¶
Given below are the properties that should be configured when you define a custom inbound endpoint.
<inboundEndpoint xmlns="http://ws.apache.org/ns/synapse" name="custom_listener" sequence="request" onError="fault"
class="org.wso2.carbon.inbound.custom.listening.SampleListeningEP" suspend="false">
<parameters>
<parameter name="sequential">true</parameter>
<parameter name="inbound.behavior">listening</parameter>
<parameter name="coordination">true</parameter>
</parameters>
</inboundEndpoint><inboundEndpoint xmlns="http://ws.apache.org/ns/synapse" name="class" sequence="request" onError="fault"
class="org.wso2.carbon.inbound.custom.poll.SamplePollingClient" suspend="false">
<parameters>
<parameter name="sequential">true</parameter>
<parameter name="interval">2000</parameter>
<parameter name="coordination">true</parameter>
</parameters>
</inboundEndpoint><inboundEndpoint xmlns="http://ws.apache.org/ns/synapse" name="custom_waiting" sequence="request" onError="fault"
class="org.wso2.carbon.inbound.custom.wait.SampleWaitingClient" suspend="false">
<parameters>
<parameter name="sequential">true</parameter>
<parameter name="inbound.behavior">eventBased</parameter>
<parameter name="coordination">true</parameter>
</parameters>
</inboundEndpoint>|
Property Name |
Description |
|---|---|
| class | Name of the custom class implementation. Specify a valid class name. |
| sequence | Name of the sequence message that should be injected. Specify a valid sequence name. |
| onError | Name of the fault sequence that should be invoked in case of failure. Specify a valid sequence name. |
| inbound.behavior |
The behaviour of the inbound endpoint. Specify listening, polling, or event-based.
|