The UDP gateway

The UDP gateway is an asynchronous gateway which can process messages received over the UDP protocol, a connectionless protocol based on top of IP, and is based on the Apache MINA project.

The gateway is configured through the <udp-listener> element and supports the following attributes:

  • Host: for specifying the name of the local network interface
  • Port: the port number through which the communication will occur
  • handlerClass: the name of an optional handler class used to adapt the incoming MINA events onto the bus

The default behavior of the gateway is to consume the incoming UDP packet and create an ESB message with its payload being a byte array containing the bytes which represent the incoming packet.

A typical configuration for this gateway is shown:

<udp-listener name="Chapter6UDPListener" host="localhost"
              port="9999"/>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.107.241