Examples of PublisherRegistrationFailedFault


Examples of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

            response.setPublisherRegistrationReference(createEndpointReference(publisher.getAddress()));
            success = true;
            return response;
        } catch (EndpointRegistrationException e) {
            PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
            throw new PublisherRegistrationFailedFault("Unable to register new endpoint", fault, e);
        } finally {
            if (!success && publisher != null) {
                publishers.remove(publisher.getAddress());
                try {
                    publisher.destroy();
View Full Code Here

Examples of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

        demand = registerPublisherRequest.isDemand() != null ? registerPublisherRequest.isDemand().booleanValue()
                : false;
        // Check all parameters
        if (publisherReference == null) {
            PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
            throw new PublisherRegistrationFailedFault("Invalid PublisherReference: null", fault);
        }
        if (demand && (topic == null || topic.size() == 0)) {
            InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
            throw new InvalidTopicExpressionFault(
                    "Must specify at least one topic for demand-based publishing", fault);
View Full Code Here

Examples of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

                advisory = new ConsumerEventSource(connection, jmsTopic);
                advisory.setConsumerListener(this);
                advisory.start();
            } catch (Exception e) {
                PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
                throw new PublisherRegistrationFailedFault("Error starting demand-based publisher", fault, e);
            }
        }
    }
View Full Code Here

Examples of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

        super.validatePublisher(registerPublisherRequest);
        String[] parts = split(publisherReference.getAddress().getValue());
        endpoint = getContext().getEndpoint(new QName(parts[0], parts[1]), parts[2]);
        if (endpoint == null) {
            PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
            throw new PublisherRegistrationFailedFault("Unable to resolve consumer reference endpoint", fault);
        }
    }
View Full Code Here

Examples of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

            response.setPublisherRegistrationReference(createEndpointReference(publisher.getAddress()));
            success = true;
            return response;
        } catch (EndpointRegistrationException e) {
            PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
            throw new PublisherRegistrationFailedFault("Unable to register new endpoint", fault, e);
        } finally {
            if (!success && publisher != null) {
                publishers.remove(publisher.getAddress());
                try {
                    publisher.destroy();
View Full Code Here

Examples of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

            response.setPublisherRegistrationReference(createEndpointReference(publisher.getAddress()));
            success = true;
            return response;
        } catch (EndpointRegistrationException e) {
            PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
            throw new PublisherRegistrationFailedFault("Unable to register new endpoint", fault, e);
        } finally {
            if (!success && publisher != null) {
                publishers.remove(publisher.getAddress());
                try {
                    publisher.destroy();
View Full Code Here

Examples of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

    // Check demand based
    demand = registerPublisherRequest.isDemand() != null ? registerPublisherRequest.isDemand().booleanValue() : false;
    // Check all parameters
    if (publisherReference == null) {
      PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
      throw new PublisherRegistrationFailedFault("Invalid PublisherReference: null", fault);
    }
    if (demand) {
      if (topic == null || topic.size() == 0) {
        InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
        throw new InvalidTopicExpressionFault("Must specify at least one topic for demand-based publishing", fault);
View Full Code Here

Examples of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

    super.validatePublisher(registerPublisherRequest);
    String[] parts = split(publisherReference.getAddress().getValue());
    endpoint = getContext().getEndpoint(new QName(parts[0], parts[1]), parts[2]);
    if (endpoint == null) {
      PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
      throw new PublisherRegistrationFailedFault("Unable to resolve consumer reference endpoint", fault);
    }
  }
View Full Code Here

Examples of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

        advisory = new ConsumerEventSource(connection, jmsTopic);
        advisory.setConsumerListener(this);
        advisory.start();
      } catch (Exception e) {
        PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
        throw new PublisherRegistrationFailedFault("Error starting demand-based publisher", fault, e);
      }
    }
  }
View Full Code Here

Examples of org.oasis_open.docs.wsn.brw_2.PublisherRegistrationFailedFault

            success = true;
            return response;
        } catch (EndpointRegistrationException e) {
            LOGGER.log(Level.WARNING, "Unable to register new endpoint", e);
            PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
            throw new PublisherRegistrationFailedFault("Unable to register new endpoint", fault, e);
        } finally {
            if (!success && publisher != null) {
                try {
                    publisher.destroy();
                } catch (ResourceNotDestroyedFault e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.