This documentation is for WSO2 Enterprise Service Bus version 5.0.0. For the latest ESB, view the latest WSO2 Enterprise Integrator documentation.

All docs This doc
||
Skip to end of metadata
Go to start of metadata

The WSO2 ESB WebSocket transport implementation is based on the WebSocket protocol, and consists of an Axis2 sender implementation for WebSockets and secure WebSockets. This transport supports bidirectional message mediation.

Enabling the transport

The following transport sender class should be included in the ESB configuration to enable the WebSocket transport.

  • org.wso2.carbon.websocket.transport.WebsocketTransportSender

To enable the WebSocket transport sender

  • Edit the <ESB_HOME>/repository/conf/axis2/axis2.xml file and uncomment the following WebSocket sender configuration:

    <transportSender name="ws" class="org.wso2.carbon.websocket.transport.WebsocketTransportSender">
          <parameter name="ws.outflow.dispatch.sequence" locked="false">outflowDispatchSeq</parameter>
          <parameter name="ws.outflow.dispatch.fault.sequence" locked="false">outflowFaultSeq</parameter>       
    </transportSender>

To enable the secure WebSocket transport sender

  • Edit the <ESB_HOME>/repository/conf/axis2/axis2.xml file and uncomment the following secure WebSocket sender configuration:

    <transportSender name="wss" class="org.wso2.carbon.websocket.transport.WebsocketTransportSender">
          <parameter name="ws.outflow.dispatch.sequence" locked="false">outflowDispatchSeq</parameter>
          <parameter name="ws.outflow.dispatch.fault.sequence" locked="false">outflowFaultSeq</parameter>
          <parameter name="ws.trust.store" locked="false">
                <ws.trust.store.location>repository/resources/security/client-truststore.jks</ws.trust.store.location>
                <ws.trust.store.Password>wso2carbon</ws.trust.store.Password>
          </parameter>
    </transportSender>

 

  • No labels