Class OneShotChannelAdaptor

java.lang.Object
org.jpos.q2.QBeanSupport
org.jpos.q2.iso.OneShotChannelAdaptor
All Implemented Interfaces:
Configurable, Channel, OneShotChannelAdaptorMBean, QBean, QBeanSupportMBean, QPersist

OneShotChannelAdaptor connects and disconnects a channel for every message exchange.

Example qbean:

<client class="org.jpos.q2.iso.OneShotChannelAdaptor" logger="Q2" name="channel-adaptor">
<channel ...
...
...
</channel>
<max-connections>5</max-connections>
<max-connect-attempts>15</max-connect-attempts>
<in>send</in>
<out>receive</out>
</client>