Examples of MessageDestinationType


Examples of org.apache.geronimo.xbeans.javaee6.MessageDestinationType

            }
            if (mergeContext.containsAttribute(createMessageDestinationConfiguredInWebFragmentXMLKey(messageDestinationName))) {
                MergeItem mergeItem = (MergeItem) mergeContext.getAttribute(createMessageDestinationConfiguredInWebFragmentXMLKey(messageDestinationName));
                throw new DeploymentException(WebDeploymentMessageUtils.createDuplicateJNDIRefMessage("message-destination", messageDestinationName, mergeItem.getBelongedURL(), mergeContext.getCurrentJarUrl()));
            } else {
                MessageDestinationType newMessageDestination = (MessageDestinationType) webApp.addNewMessageDestination().set(messageDestination);
                mergeContext.setAttribute(createMessageDestinationConfiguredInWebFragmentXMLKey(messageDestinationName), new MergeItem(newMessageDestination, mergeContext.getCurrentJarUrl(),
                        ElementSource.WEB_FRAGMENT));
            }
        }
    }
View Full Code Here

Examples of org.apache.geronimo.xml.ns.naming_1.MessageDestinationType

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

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

            messageDest = (MessageDestinationType)eObject;
            msgPattern = (PatternType)getEFactory().create(PatternType.class);
            messageDest.setPattern(msgPattern);

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

        // NOTE!! this replaces the call to processEAttributes (page);
        messageDest =(MessageDestinationType) 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

Examples of org.apache.geronimo.xml.ns.naming_1.MessageDestinationType

    public ITableLabelProvider getLabelProvider() {
        return new LabelProvider() {
            @Override
            public String getColumnText(Object element, int columnIndex) {
                if (MessageDestinationType.class.isInstance(element)) {
                  MessageDestinationType msgDest = (MessageDestinationType) 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
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.