/**
* Creates a new InOnly exchange for the given service, interface and/or operation (any of which can be null).
*/
public InOnly createInOnlyExchange(QName service, QName interfaceName, QName operation) throws MessagingException {
DeliveryChannel channel = getDeliveryChannel();
MessageExchangeFactory factory = null;
if (service != null) {
factory = channel.createExchangeFactoryForService(service);
}
else if (interfaceName != null) {
factory = channel.createExchangeFactory(interfaceName);
}
else {
factory = getExchangeFactory();
}
InOnly outExchange = factory.createInOnlyExchange();
if (service != null) {
outExchange.setService(service);
}
if (interfaceName != null) {
outExchange.setInterfaceName(interfaceName);