The ESB profile of WSO2 Enterprise Integrator (WSO2 EI) supports several inbound endpoints, but there can be scenarios that require functionality not provided by the existing inbound endpoints. For example, you might need an inbound endpoint to connect to a certain back-end server or vendor specific protocol.
To support such scenarios, you can write your own custom inbound endpoint by further extending the inbound endpoint behaviour. behavior for listening, polling, and event-based inbound endpoints.
Anchor | ||||
---|---|---|---|---|
|
...
Custom listening 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 injected | Yes | A valid sequence name | n/a | |
onError | Name of the fault sequence that should be invoked in case of failure | Yes | A valid fault sequence name | n/a |
inbound.behavior | The behaviour of the inbound endpoint | Yes | listening | n/a |
You can download the maven artifact used in the sample custom listening inbound endpoint configuration above from the Custom listening inbound endpoint sample.
You need to copy the built jar file to the <EI_HOME>/lib
directory and restart the ESB Profile of WSO2 EI to load the class.
...
Custom polling 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 |
You can download the maven artifact used in the sample custom polling inbound endpoint configuration above from from the Custom polling inbound endpoint sample.
You need to copy the built jar file to the <EI_HOME>/lib
directory and restart the ESB Profile of WSO2 EI to load the class.
...
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 injected | Yes | A valid sequence name | n/a | |
onError |
Name of the fault sequence that should be invoked in case of failure | Yes | A valid fault sequence name | n/a | |
inbound.behavior | The behaviour of the inbound endpoint | Yes | event-based | n/a |
You can download the maven artifact used in the sample custom event-based inbound endpoint configuration above from from the Custom event-based inbound endpoint sample .
You need to copy the built jar file to the <EI_HOME>/lib
directory and restart the ESB Profile of WSO2 EI to load the class.