Examples of JActivationConfigProperty


Examples of org.ow2.util.ee.metadata.ejbjar.impl.struct.JActivationConfigProperty

        // MappedName ? use it as destination
        String mappedName = messageDrivenBean.getJCommonBean().getMappedName();
        if (mappedName != null && !"".equals(mappedName)) {
            messageDrivenBean.getJMessageDriven().getActivationConfigProperties().add(
                    new JActivationConfigProperty("destination", mappedName));
        }

        messageDrivenInfo.setActivationConfigProperties(messageDrivenBean.getJMessageDriven()
                .getActivationConfigProperties());
        mdbMessageEndPointFactory.setMessageDrivenInfo(messageDrivenInfo);
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.impl.struct.JActivationConfigProperty

                        messageDestinationLink);
            } catch (EZBJNDIResolverException e) {
                throw new FactoryException("Unable to resolve message destination link '" + messageDestinationLink
                        + "' for bean '" + getBeanInfo().getName() + "'.", e);
            }
            properties.add(new JActivationConfigProperty("destination", jndiName));
            logger.info("Message destination link ''{0}'' resolved to ''{1}'' for bean ''{2}''", messageDestinationLink,
                    jndiName, getBeanInfo().getName());
        }

        // Check that there is a destination-type, if not, add the default
        boolean destinationFound = false;
        boolean destinationTypeFound = false;
        for (ActivationConfigProperty property : properties) {
            if (DESTINATION_TYPE_PROPERTY.equals(property.propertyName())) {
                destinationTypeFound = true;
            }
            if (DESTINATION_PROPERTY.equals(property.propertyName())) {
                destinationFound = true;
            }
        }
        if (!destinationTypeFound && destinationFound) {
            ActivationConfigProperty jActivationConfigProperty = new JActivationConfigProperty(DESTINATION_TYPE_PROPERTY,
                    DEFAULT_DESTINATION_TYPE);
            properties.add(jActivationConfigProperty);
            logger.warn("No ''{0}'' property found in the activation config, adding default value ''{1}'' for bean ''{2}''",
                    DESTINATION_TYPE_PROPERTY, DEFAULT_DESTINATION_TYPE, getBeanInfo().getName());
        }
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.