You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

MINA Component

The mina: component is a transport for working with Apache MINA

URI format

mina:tcp://hostname[:port]
mina:udp://hostname[:port]
mina:multicast://hostname[:port]

From Camel 1.3 onwards you can specify a codec in the Registry using the codec option. If you are using TCP and no codec is specified then the textline flag is used to determine if text line based codec or object serialization should be used instead.

For UDP/Multicast if no codec is specified the default uses a basic ByteBuffer based codec.

Multicast has a shorthand notation mcast.

Options

Name

Default Value

Description

codec

null

As of 1.3 or later you can refer to a named ProtocolCodecFactory instance in your Registry such as your Spring ApplicationContext which is then used for the marshalling

textline

null

Only used for TCP. If no codec is specified then you can use this flag in 1.3 or later to indicate a text line based codec; if not specified or the value is false then Object Serialization is assumed over TCP.

sync

false

As of 1.3 or later you can configure the exchange pattern to be either InOnly (default) or InOut. Setting sync=true means a synchronous exchange (InOut), where the client can read the response from MINA (The exchange out message). Note: The sync option is only supported for the TCP protocol.

  • No labels