* Message processor
*/
public void modifyMessageProcessor(String xml) throws AxisFault {
try {
OMElement msElem = createElement(xml);
MessageProcessor messageProcessor =
MessageProcessorFactory.createMessageProcessor(msElem);
if (messageProcessor != null && messageProcessor.getName() != null) {
SynapseConfiguration synapseConfiguration = getSynapseConfiguration();
MessageProcessor removedProcessor =
synapseConfiguration.removeMessageProcessor(messageProcessor.getName());
if (removedProcessor != null) {
removedProcessor.destroy();
}
messageProcessor.init(getSynapseEnvironment());
String fileName = ServiceBusUtils.generateFileName(messageProcessor.getName());
messageProcessor.setFileName(fileName);
synapseConfiguration.addMessageProcessor(messageProcessor.getName(),