PoCAT Documentation Get Started

Channel Bindings

A binding maps a messagebus URI to a channel name.

Last updated: 2026-10-20 Section: Configuration

A binding names a messagebus URI and the channel that receives it. The Servit subscribes to that channel in service.xml.

What a binding matches

PieceFileExample
Endpointcontexts/messagebus/endpointsendpoint1 on exchange kiosk.payment
URIdeploy.xml source or destmessagebus://endpoint1/com/kiosk/${param:kiosk_id}/...
Channelservice.xml and deploy channel-namepayment-requested
Parameterschannel message-paramkiosk_id, payment_id, order_id
<inbound group="checkout"
         source="messagebus://endpoint1/com/kiosk/${param:kiosk_id}/payment/${param:payment_id}/requested">
  <channel-name>payment-requested</channel-name>
</inbound>
<outbound dest="messagebus://endpoint1/com/kiosk/${param:kiosk_id}/payment/${param:payment_id}/accepted">
  <channel-name>payment-accepted</channel-name>
</outbound>

Change a binding

  1. Add <inbound> and <outbound> in config/services/<node>/deploy/<service>.xml.
  2. Use the same <channel-name> on the Servit in service.xml.
  3. Put every ${param:name} value on the message before publish.
  4. Replace the deploy file and start the node again with bin/launch.sh.