Package org.apache.servicemix.wsn.jaxws

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


        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

                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

        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

            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

            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

    // 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

    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

        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

TOP

Related Classes of org.apache.servicemix.wsn.jaxws.PublisherRegistrationFailedFault

Copyright © 2018 www.massapicom. 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.