/** * * Invokes the resource's WS-RL Destroy operation. * */ public void run() { try { _resource.shutdown(); } catch (SoapFault fault) { // // If the resource destructor fails, there's not much // we can do - there is no caller to report back to, // so we just log the info // LoggingUtils.logError(_resource.getLog(), fault); } } }
private void processMessageListeners(NotificationMessage message) { Iterator i = getMessageListeners().iterator(); while (i.hasNext()) { NotificationMessageListener listener = (NotificationMessageListener)i.next(); try { if (listener.accepts(message)) listener.process(message); } catch (Throwable error) { LoggingUtils.logError(getLog(), error); } } }
private void processTopicListeners(NotificationMessage message) { QName topic = message.getTopic(); Iterator i = getTopicListeners(topic).iterator(); while (i.hasNext()) { NotificationMessageListener listener = (NotificationMessageListener)i.next(); try { // // don't call accepts() - we assume that all listeners // added for the topic want the message and require no // further analysis // listener.process(message); } catch (Throwable error) { LoggingUtils.logError(getLog(), error); } } }
LoggingUtils.logError(getLog(), fault);
/** * * {@inheritDoc} * <br><br> * This implementation iterates over the collection of resources in * the ResourceManager and destroys each one. If one destructor fails, * it is logged and we move on to the next resource. * * @see #getResourceManager() * */ public void shutdown() { try { getResourceManager().shutdown(); } catch (SoapFault error) { LoggingUtils.logError(getLog(), error); } _hasBeenShutdown = true; } }
public boolean accepts(NotificationMessage message) { // // evaluate the xpath over the resource's current ws-rp doc - if the // result is 'true', we publish the message // try { ResourcePropertyCollection props = _resource.getPropertyCollection(); Element wsrpDoc = props.getResourcePropertyDocument(); return XPathUtils.isMatch(wsrpDoc, _expression); } catch (Throwable error) { LoggingUtils.logError(_resource.getLog(), error); return false; } }
public void resourceRemoved(EndpointReference epr) { // // this call is synchronized, so if we're publishing, the // collection will not be updated until afterwards // boolean subExists = hasSubscription(epr); if (!subExists) return; removeSubscription(epr); NotificationProducerPersistence persistence = (NotificationProducerPersistence)getPersistence(); try { if (persistence != null) persistence.resourceRemoved(epr); } catch (SoapFault fault) { LoggingUtils.logError(getLog(), fault); } }
LoggingUtils.logError(router.getLog(), error);
LoggingUtils.logCall(log, method, parameters); LoggingUtils.logError(log, error);
LoggingUtils.logError(getLog(), fault);