Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You need to copy the built jar file to the <ESB_HOME>/repository/components/lib directory and restart the ESB to load the class.

Anchor
CustomEventBased
CustomEventBased
Custom

...

event-based inbound endpoint

Following is a sample custom busy waiting event-based inbound endpoint configuration:

Code Block
languagexml
<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">busy-waiting<>eventBased</parameter>
      <parameter name="coordination">true</parameter>
   </parameters>
</inboundEndpoint>

In addition to the parameters provided in the above sample configuration, you can provide other required parameters based on the busy waiting event-based behaviour you need to implement.

Custom

...

event-based inbound endpoint parameters

Parameter Name

Description

Required

Possible Values

Default Value

class

Name of the custom class implementation

Yes

A valid class name

n/a

sequence

 

Name of the sequence message that should be injectedYesA valid sequence namen/a
onError

 

Name of the fault sequence that should be invoked in case of failureYes

A valid fault sequence name

n/a
inbound.behavior

The behaviour of the inbound endpoint

Yes busy event-waitingbasedn/a

You can download the maven artifact used in the sample custom busy waiting event-based inbound endpoint configuration above from Custom busy waiting event-based inbound endpoint sample .

...