Examples of MessageDestination


Examples of org.apache.catalina.deploy.MessageDestination

     * is returned.
     */
    public MessageDestination[] findMessageDestinations() {

        synchronized (messageDestinations) {
            MessageDestination results[] =
                new MessageDestination[messageDestinations.size()];
            return (messageDestinations.values().toArray(results));
        }

    }
View Full Code Here

Examples of org.apache.catalina.deploy.MessageDestination

     * is returned.
     */
    public MessageDestination[] findMessageDestinations() {

        synchronized (messageDestinations) {
            MessageDestination results[] =
                new MessageDestination[messageDestinations.size()];
            return (messageDestinations.values().toArray(results));
        }

    }
View Full Code Here

Examples of org.apache.catalina.deploy.MessageDestination

     * is returned.
     */
    public MessageDestination[] findMessageDestinations() {

        synchronized (messageDestinations) {
            MessageDestination results[] =
                new MessageDestination[messageDestinations.size()];
            return ((MessageDestination[])
                    messageDestinations.values().toArray(results));
        }

View Full Code Here

Examples of org.apache.catalina.deploy.MessageDestination

     * is returned.
     */
    public MessageDestination[] findMessageDestinations() {

        synchronized (messageDestinations) {
            MessageDestination results[] =
                new MessageDestination[messageDestinations.size()];
            return ((MessageDestination[])
                    messageDestinations.values().toArray(results));
        }

View Full Code Here

Examples of org.apache.geronimo.jee.naming.MessageDestination

        namingPattern.setVersion("gbeanref-pattern-version");
        gbeanRef.getPattern().add(namingPattern);
        applicationClient.getGbeanRef().add(gbeanRef);

        // set the Message Destination
        MessageDestination messageDestination = namingFactory.createMessageDestination();
        messageDestination.setAdminObjectLink("messagedestination-adminobjectlink");
        messageDestination.setAdminObjectModule("messagedestination-adminobjectmodule");
        messageDestination.setMessageDestinationName("messagedestination-name");
        namingPattern = namingFactory.createPattern();
        namingPattern.setArtifactId("messagedestination-pattern-artifactid");
        namingPattern.setGroupId("messagedestination-pattern-groupid");
        namingPattern.setModule("messagedestination-pattern-module");
        namingPattern.setName("messagedestination-pattern-name");
        namingPattern.setVersion("messagedestination-pattern-version");
        messageDestination.setPattern(namingPattern);
        applicationClient.getMessageDestination().add(messageDestination);

        // set the Resource
        Resource resource = applicationClientFactory.createResource();
        resource.setInternalRar("resource-internalrar");
View Full Code Here

Examples of org.apache.geronimo.naming.deployment.jsr88.MessageDestination

            before.add(old[i]);
        }
        this.messageDestinations = messageDestinations;
        // Handle current or new messageDestinations
        for (int i = 0; i < messageDestinations.length; i++) {
            MessageDestination messageDestination = messageDestinations[i];
            //if(messageDestination.getMessageDestination() == null) {
            messageDestination.configure(getWebApp().addNewMessageDestination());
            //} else {
            //    before.remove(messageDestination);
            //}
        }
        // Handle removed or new messageDestinations
        for (Iterator it = before.iterator(); it.hasNext();) {
            MessageDestination adapter = (MessageDestination) it.next();
            GerMessageDestinationType all[] = getWebApp().getMessageDestinationArray();
            for (int i = 0; i < all.length; i++) {
                if(all[i] == adapter) {
                    getWebApp().removeMessageDestination(i);
                    break;
View Full Code Here

Examples of org.apache.geronimo.naming.deployment.jsr88.MessageDestination

        int numMessageDestinations = data.getMessageDestinations().size();
        if (numMessageDestinations > 0) {
            MessageDestination[] messageDestinations = new MessageDestination[numMessageDestinations];
            for (int i = 0; i < numMessageDestinations; i++) {
                messageDestinations[i] = new MessageDestination();
            }
            webApp.setMessageDestinations(messageDestinations);
            for (int i = 0; i < numMessageDestinations; i++) {
                MessageDestination messageDestination = messageDestinations[i];
                ReferenceData referenceData = (ReferenceData) data.getMessageDestinations().get(i);
                messageDestination.setMessageDestinationName(referenceData.getRefName());
                // messageDestination.setPattern(createPattern(referenceData.getRefLink()));
                messageDestination.setAdminObjectLink(createPattern(referenceData.getRefLink()).getName());
            }
        }

        int numResourceEnvRefs = data.getJmsDestinationRefs().size();
        if (numResourceEnvRefs > 0) {
View Full Code Here

Examples of org.apache.geronimo.naming.deployment.jsr88.MessageDestination

        int numMessageDestinations = data.getMessageDestinations().size();
        if (numMessageDestinations > 0) {
            MessageDestination[] messageDestinations = new MessageDestination[numMessageDestinations];
            for (int i = 0; i < numMessageDestinations; i++) {
                messageDestinations[i] = new MessageDestination();
            }
            webApp.setMessageDestinations(messageDestinations);
            for (int i = 0; i < numMessageDestinations; i++) {
                MessageDestination messageDestination = messageDestinations[i];
                ReferenceData referenceData = (ReferenceData) data.getMessageDestinations().get(i);
                messageDestination.setMessageDestinationName(referenceData.getRefName());
                // messageDestination.setPattern(createPattern(referenceData.getRefLink()));
                messageDestination.setAdminObjectLink(createPattern(referenceData.getRefLink()).getName());
            }
        }

        int numResourceEnvRefs = data.getJmsDestinationRefs().size();
        if (numResourceEnvRefs > 0) {
View Full Code Here

Examples of org.apache.geronimo.naming.deployment.jsr88.MessageDestination

        int numMessageDestinations = data.getMessageDestinations().size();
        if (numMessageDestinations > 0) {
            MessageDestination[] messageDestinations = new MessageDestination[numMessageDestinations];
            for (int i = 0; i < numMessageDestinations; i++) {
                messageDestinations[i] = new MessageDestination();
            }
            webApp.setMessageDestinations(messageDestinations);
            for (int i = 0; i < numMessageDestinations; i++) {
                MessageDestination messageDestination = messageDestinations[i];
                ReferenceData referenceData = (ReferenceData) data.getMessageDestinations().get(i);
                messageDestination.setMessageDestinationName(referenceData.getRefName());
                // messageDestination.setPattern(createPattern(referenceData.getRefLink()));
                messageDestination.setAdminObjectLink(createPattern(referenceData.getRefLink()).getName());
            }
        }

        int numResourceEnvRefs = data.getJmsDestinationRefs().size();
        if (numResourceEnvRefs > 0) {
View Full Code Here

Examples of org.apache.geronimo.naming.deployment.jsr88.MessageDestination

            before.add(old[i]);
        }
        this.messageDestinations = messageDestinations;
        // Handle current or new messageDestinations
        for (int i = 0; i < messageDestinations.length; i++) {
            MessageDestination messageDestination = messageDestinations[i];
            //if(messageDestination.getMessageDestination() == null) {
            messageDestination.configure(getWebApp().addNewMessageDestination());
            //} else {
            //    before.remove(messageDestination);
            //}
        }
        // Handle removed or new messageDestinations
        for (Iterator it = before.iterator(); it.hasNext();) {
            MessageDestination adapter = (MessageDestination) it.next();
            GerMessageDestinationType all[] = getWebApp().getMessageDestinationArray();
            for (int i = 0; i < all.length; i++) {
                if(all[i] == adapter) {
                    getWebApp().removeMessageDestination(i);
                    break;
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.