public void destroy() { logger.debug("Destroying Servlet"); // Ensure all transports are closed for (Iterator iterator = xfire.getTransportManager().getTransports().iterator(); iterator.hasNext(); ) { Transport transport = (Transport) iterator.next(); transport.dispose(); } super.destroy(); }
protected Service getService(XFire xfire, String uri) throws XFireException { if (null == xfire) { logger.warn("No XFire instance in context, unable to determine service"); return null; } int i = uri.indexOf("//"); if (i == -1) { throw new XFireException("Malformed service URI"); } String name = uri.substring(i + 2); Service service = xfire.getServiceRegistry().getService(name); if (null == service) { // TODO this should be an exception... logger.warn("Unable to locate '" + name + "' in ServiceRegistry"); } return service; }