This documentation is for WSO2 Enterprise Integrator version 6.5.0 (latest in the 6.x.x family). View documentation for the latest release in the 7.x.x family.
WebSocket Transport - WSO2 Enterprise Integrator 6.5.0 - WSO2 Documentation

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

The WebSocket transport implementation of WSO2 Enterprise Integrator(WSO2 EI) is based on the WebSocket protocol, and consists of an Axis2 sender implementation for WebSockets and secure WebSockets. WebSocket is a protocol that provides full-duplex communication channels over a single TCP connection, and can be used by any client or server application. This transport supports bi-directional message mediation.

The ESB Profile of WSO2 Enterprise Integrator (WSO2 EI) provides WebSocket support also via the WebSocket TransportWebSocket Inbound Protocol and Secure WebSocket Inbound Protocol.

Enabling the transport

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

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

To enable the WebSocket transport sender

  • Edit the <EI_HOME>/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 <EI_HOME>/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