Versions Compared

Key

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

...

Code Block
languagehtml/xml
<inboundEndpoint name="HttpListenerEP" protocol="http" suspend="false" sequence="TestIn" onError="fault" >
    <p:parameters xmlns:p="http://ws.apache.org/ns/synapse">
        <p:parameter  name="inbound.http.port">8081</p:parameter>
    </p:parameters>
</inboundEndpoint>

HTTP inbound endpoint parameters

Parameter                                                      Description                                                      Required                                                               
inbound.http.port

The port on which the endpoint listener should be started.

Yes

...

For a sample that demonstrates how an HTTP inbound endpoint can act as a dynamic http listener, see    Sample 902: HTTP Inbound Endpoint Sample

Worker pool configuration parameters

By default inbound endpoints share the PassThrough transport worker pool to handle incoming requests. If you need a separate worker pool for the inbound endpoint, you need to configure the following parameters:

...

Code Block
languagehtml/xml
<inboundEndpoint name="HttpListenerEP" protocol="http" suspend="false" sequence="TestIn" onError="fault" >
    <p:parameters xmlns:p="http://ws.apache.org/ns/synapse">
        <p:parameter  name="inbound.http.port">8081</p:parameter>
        <p:parameter  name="api.dispatching.enabled">false</p:parameter> 
        <p:parameter name="inbound.thread.group.id">Pass_Through Inbound worker Pool</p:parameter>
        <p:parameter name="inbound.worker.pool.size.max">500</p:parameter>
        <p:parameter name="inbound.thread.id">PassThroughInboundWorkerPool</p:parameter>
        <p:parameter name="inbound.worker.pool.queue.length">-1</p:parameter>
        <p:parameter name="inbound.worker.pool.size.core">400</p:parameter>
        <p:parameter name="inbound.worker.thread.keep.alive.sec">60</p:parameter>
    </p:parameters>
 </inboundEndpoint>

Inbound endpoint parameter for proxy services

If a proxy service is to be exposed only via inbound endpoints, the following service parameter has to be set in the proxy configuration.

...