@Override
public Producer createProducer() throws Exception {
SjmsProducer producer = null;
if (getExchangePattern().equals(ExchangePattern.InOnly)) {
producer = new InOnlyProducer(this);
} else {
producer = new InOutProducer(this);
}
return producer;
}