}
public void addChild(SortedMap<String, WSRPConsumer> consumers, WSRPConsumer consumer, UnmarshallingContext nav, String nsURI,
String localName)
{
ProducerInfo info = consumer.getProducerInfo();
if (DEBUG)
{
System.out.println("adding consumer " + info.getId() + " to deployment - localName: " + localName);
}
String id = consumer.getProducerId();
consumers.put(id, consumer);
log.info("Added consumer for producer '" + id + "' from xml configuration.");
// update the producer info once the whole information is known
try
{
consumerRegistry.updateProducerInfo(info);
}
catch (Exception e)
{
// if we couldn't update the info, remove it from the list of service to be activated
consumers.remove(id);
log.info("Couldn't update the ProducerInfo for Consumer '" + info.getId() + "'", e);
}
}