10.13. Configuring the UDP Gateway

Call the esbMessage.getBody().get() method from within your actions to retrieve the byte array payload from messages arriving via the UDP Gateway.
Here are the options for configuring the gateway:

Table 10.10. UDP Gateway Configuration

Property Description Comments
Host The hostname/ip to which to listen. Mandatory.
Port The port to which to listen. Mandatory.
handlerClass A concrete implemenation of org.jboss.soa.esb.listeners.gateway.mina.MessageHandler. Optional. Default is org.jboss.soa.esb.listeners.gateway.mina.DefaultMessageHandler.
is-gateway UDPGatewayListener can only act as a gateway. Mandatory.

Here is an example configuration:
<udp-listener 
   name="udp-listener" 
   host="localhost" 
   port="9999"
   handlerClass="org.jboss.soa.esb.listeners.gateway.mina.DefaultMessageHandler"
   is-gateway="true"
<udp-listener/>