/** * {@inheritDoc} */ public boolean uninstall(String componentId) throws PEtALSWebServiceException { if (this.log.isDebugEnabled()) { this.log.debug("Entering method : uninstall with params componentId = " + componentId); } return this.componentInstallationService.uninstall(componentId); } }
/** * {@inheritDoc} */ public boolean install(URL url) throws PEtALSWebServiceException { if (this.log.isDebugEnabled()) { this.log.debug("Entering method : install with params url = " + url); } return this.componentInstallationService.install(url); }
throws org.ow2.petals.jbi.messaging.registry.RegistryException { if (this.log.isDebugEnabled()) { this.log .debug("Entering method : getDescription with params serviceName, endpointName = "
if (this.log.isDebugEnabled()) { this.log.debug("Entering method : install with params componentId = " + componentId);
if (this.log.isDebugEnabled()) { this.log.debug("Entering method : deploy with params saId = " + saId);
/** * {@inheritDoc} */ public void removeAllLocalEndpoints() throws org.ow2.petals.jbi.messaging.registry.RegistryException { if (this.log.isDebugEnabled()) { this.log.debug("Entering method : removeAllLocalEndpoints"); } try { // delete all the entries from the local registry means that we // delete all under the local path. this.client.delete(this.getRootPath(), true); } catch (RegistryException e) { throw new org.ow2.petals.jbi.messaging.registry.RegistryException(e.getMessage()); } }
/** * {@inheritDoc} */ public boolean shutdown(String saId) throws PEtALSWebServiceException { if (this.log.isDebugEnabled()) { this.log.debug("Entering method : shutdown with params saId = " + saId); } boolean result = true; try { result = this.deploymentService.shutdown(saId); } catch (PetalsException e) { String message = "Can not shutdown the SA with ID " + saId; this.log.warning(message, e); throw new PEtALSWebServiceException(message + "(" + e.getMessage() + ")"); } return result; }
/** * {@inheritDoc} */ public boolean start(String saId) throws PEtALSWebServiceException { if (this.log.isDebugEnabled()) { this.log.debug("Entering method : start with params saId = " + saId); } boolean result = true; try { result = this.deploymentService.start(saId); } catch (PetalsException e) { String message = "Can not start the SA with ID " + saId; this.log.warning(message, e); throw new PEtALSWebServiceException(message + "(" + e.getMessage() + ")"); } return result; }
/** * {@inheritDoc} */ public boolean undeploy(String saId) throws PEtALSWebServiceException { if (this.log.isDebugEnabled()) { this.log.debug("Entering method : undeploy with params saId = " + saId); } boolean result = true; try { result = this.deploymentService.undeploy(saId); } catch (PetalsException e) { String message = "Can not undeploy the SA with ID " + saId; this.log.warning(message, e); throw new PEtALSWebServiceException(message + "(" + e.getMessage() + ")"); } return result; }
/** * {@inheritDoc} */ public boolean stop(String saId) throws PEtALSWebServiceException { if (this.log.isDebugEnabled()) { this.log.debug("Entering method : stop with params saId = " + saId); } boolean result = true; try { result = this.deploymentService.stop(saId); } catch (PetalsException e) { String message = "Can not stop the SA with ID " + saId; this.log.warning(message, e); throw new PEtALSWebServiceException(message + "(" + e.getMessage() + ")"); } return result; }
/** * FIXME ! {@inheritDoc} */ public void registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint) throws org.ow2.petals.jbi.messaging.registry.RegistryException { if (this.log.isDebugEnabled()) { this.log .debug("Entering method : registerExternalEndpoint with params externalEndpoint = " + externalEndpoint); } if (externalEndpoint == null) { throw new org.ow2.petals.jbi.messaging.registry.RegistryException( "Can not register a null external endpoint"); } if (externalEndpoint instanceof org.ow2.petals.jbi.messaging.endpoint.ServiceEndpoint) { this .registerEndpoint((org.ow2.petals.jbi.messaging.endpoint.ServiceEndpoint) externalEndpoint); } else { this.log.warning("Trying to register a bad external service endpoint"); throw new org.ow2.petals.jbi.messaging.registry.RegistryException( "Bad external service endpoint type"); } }
if (this.log.isDebugEnabled()) { this.log.debug("Service URL is " + url); this.log.debug("Service WSDL is " + wsdl);
public ServiceEndpoint[] getExternalEndpointsForInterface(QName interfaceName) throws org.ow2.petals.jbi.messaging.registry.RegistryException { if (this.log.isDebugEnabled()) { this.log .debug("Entering method : getExternalEndpointsForInterface with params interfaceName = "
public List<ServiceEndpoint> getInternalEndpoints() throws org.ow2.petals.jbi.messaging.registry.RegistryException { if (this.log.isDebugEnabled()) { this.log.debug("Entering method : getInternalEndpoints"); List<Endpoint> list = this.client.lookup(q, true); for (Endpoint endpoint : list) { if (this.log.isDebugEnabled()) { this.log.debug("Found internal endoint : " + endpoint);
public ServiceEndpoint[] getExternalEndpointsForService(QName serviceName) throws org.ow2.petals.jbi.messaging.registry.RegistryException { if (this.log.isDebugEnabled()) { this.log .debug("Entering method : getExternalEndpointsForService with params serviceName = "
public ServiceEndpoint[] getInternalEndpointsForService(QName serviceName, LinkType linktype) throws org.ow2.petals.jbi.messaging.registry.RegistryException { if (this.log.isDebugEnabled()) { this.log .debug("Entering method : getInternalEndpointsForService with params serviceName, linktype = "
if (this.log.isDebugEnabled()) { this.log.debug("Entering method : getExternalEndpoints");
/** * {@inheritDoc} */ public QName[] getInterfacesForEndpoint(ServiceEndpoint endpoint) { if (this.log.isDebugEnabled()) { this.log.debug("Entering method : getInterfacesForEndpoint with params endpoint = " + endpoint); } if (endpoint == null) { throw new NullArgumentException("endpoint"); } QName[] result = null; if (endpoint.getInterfaces() == null) { // try to get it from the registry... try { Endpoint e = this.client.get(this.getKey(endpoint), true); if ((e != null) && (e.getInterface() != null)) { result = endpoint.getInterfaces(); } } catch (RegistryException e) { e.printStackTrace(); } } return result; }
/** * {@inheritDoc} */ public Document getEndpointDescriptorForEndpoint(ServiceEndpoint endpoint) throws org.ow2.petals.jbi.messaging.registry.RegistryException { if (this.log.isDebugEnabled()) { this.log .debug("Entering method : getEndpointDescriptorForEndpoint with params endpoint = " + endpoint); } if (endpoint == null) { throw new org.ow2.petals.jbi.messaging.registry.RegistryException("Null endpoint"); } Document result = endpoint.getDescription(); if (result == null) { // try to get the endpoint from the registry try { Endpoint e = this.client.get(this.getKey(endpoint), true); if ((e != null) && (e.getDescription() != null)) { result = XMLUtil.createDocumentFromString(e.getDescription()); } } catch (RegistryException e) { throw new org.ow2.petals.jbi.messaging.registry.RegistryException(e.getMessage()); } } return result; }
@LifeCycle(on = LifeCycleType.STOP) protected void stop() throws Exception { if (this.log.isDebugEnabled()) { this.log.debug("Stopping...");