HornetQServerImpl.log.warn("Must specify an forwarding address for each divert. This one will not be deployed.");
return;
}
SimpleString sName = new SimpleString(config.getName());
if (postOffice.getBinding(sName) != null)
{
HornetQServerImpl.log.warn("Binding already exists with name " + sName + ", divert will not be deployed");
return;
}
SimpleString sAddress = new SimpleString(config.getAddress());
Transformer transformer = instantiateTransformer(config.getTransformerClassName());
Filter filter = FilterImpl.createFilter(config.getFilterString());
Divert divert = new DivertImpl(new SimpleString(config.getForwardingAddress()),
sName,
new SimpleString(config.getRoutingName()),
config.isExclusive(),
filter,
transformer,
postOffice,
storageManager);