Examples of PublisherRegistrationFailedFaultType


Examples of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

            RegisterPublisherResponse response = new RegisterPublisherResponse();
            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 {
View Full Code Here

Examples of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

        // 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 && (topic == null || topic.size() == 0)) {
            InvalidTopicExpressionFaultType fault = new InvalidTopicExpressionFaultType();
            throw new InvalidTopicExpressionFault(
View Full Code Here

Examples of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

            try {
                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.br_2.PublisherRegistrationFailedFaultType

            TopicNotSupportedFault {
        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.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

            RegisterPublisherResponse response = new RegisterPublisherResponse();
            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 {
View Full Code Here

Examples of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

            publishers.put(WSNHelper.getWSAAddress(publisher.getPublisherReference()), publisher);
            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();
View Full Code Here

Examples of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

        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(
View Full Code Here

Examples of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

            }
            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();
View Full Code Here

Examples of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

            }
            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();
View Full Code Here

Examples of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

            }
            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();
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.