use of org.jgroups.ReceiverAdapter in project camel by apache.
the class JGroupsProducerTest method doPreSetup.
// Fixture setup
@Override
protected void doPreSetup() throws Exception {
super.doPreSetup();
channel = new JChannel();
channel.setReceiver(new ReceiverAdapter() {
@Override
public void receive(Message msg) {
messageReceived = msg.getObject();
}
});
channel.connect(CLUSTER_NAME);
}
Aggregations