Package org.apache.geronimo.jee.naming

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


        ejbRelation.getEjbRelationshipRole().add(ejbRelationshipRole);
        relationships.getEjbRelation().add(ejbRelation);
        openEjbJar.setRelationships(relationships);

        // 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);
        openEjbJar.getMessageDestination().add(messageDestination);

        // set the Service
        Gbean gbean = deploymentFactory.createGbean();
        gbean.setClazz("gbean-class");
View Full Code Here

        namingPattern.setVersion("ejbref-pattern-version");
        ejbRef.setPattern(namingPattern);
        webApp.getEjbRef().add(ejbRef);
       
        // 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);
        webApp.getMessageDestination().add(messageDestination);

        // set the Resource Env Ref
        ResourceEnvRef resourceEnvRef = namingFactory.createResourceEnvRef();
        resourceEnvRef.setAdminObjectLink("resourceenvref-adminobjectlink");
View Full Code Here

    }
   
    public boolean performFinish() {
        AbstractTableWizardPage page = (AbstractTableWizardPage) getPages()[0];
        Pattern msgPattern;
        MessageDestination messageDest;

        if (eObject == null) {
            eObject = getEFactory().create(MessageDestination.class);
            JAXBElement plan = section.getPlan();

            messageDest = (MessageDestination)eObject;
            msgPattern = (Pattern)getEFactory().create(Pattern.class);
            messageDest.setPattern(msgPattern);

            List msgDestList = JAXBModelUtils.getMessageDestinations(plan);
            if (msgDestList == null) {
                msgDestList = (List)getEFactory().create(MessageDestination.class);
            }
            msgDestList.add(eObject);
        }

        // NOTE!! this replaces the call to processEAttributes (page);
        messageDest =(MessageDestination) eObject;
        msgPattern = messageDest.getPattern();
        for (int i = 0; i < 8; i++) {
            String value = page.getTextEntry(i).getText();
            String attribute = getTableColumnEAttributes()[i];
            if (i < 3)
        try {
View Full Code Here

    public ITableLabelProvider getLabelProvider() {
        return new LabelProvider() {
            @Override
            public String getColumnText(Object element, int columnIndex) {
                if (MessageDestination.class.isInstance(element)) {
                    MessageDestination msgDest = (MessageDestination) element;
                    switch (columnIndex) {
                    case 0:
                        return msgDest.getMessageDestinationName();
                    case 1:
                        return msgDest.getAdminObjectModule();
                    case 2:
                        return msgDest.getAdminObjectLink();
                    case 3:
                        return msgDest.getPattern().getGroupId();
                    case 4:
                        return msgDest.getPattern().getArtifactId();
                    case 5:
                        return msgDest.getPattern().getVersion();
                    case 6:
                        return msgDest.getPattern().getModule();
                    case 7:
                        return msgDest.getPattern().getName();
                    }
                }
                return null;
            }
        };
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jee.naming.MessageDestination

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.