Examples of EZBJNDIResolverException


Examples of org.ow2.easybeans.resolver.api.EZBJNDIResolverException

    public String getEJBJNDIUniqueName(final String itf, final String beanName) throws EZBJNDIResolverException {
        List<EZBJNDIBeanData> dataList = getEJBJNDINames(itf, beanName);

        // Not found
        if (dataList == null || dataList.isEmpty()) {
            throw new EZBJNDIResolverException("No JNDI Name found for interface '" + itf + "' and bean name '" + beanName
                    + "'.");
        }

        // Too many entries !
        if (dataList.size() > 1) {
            throw new EZBJNDIResolverException("Found too many entries corresponding to the interface '" + itf
                    + "' and the bean name '" + beanName + "'. Found list = '" + dataList + "'.");
        }

        // Only one item, it's good
        return dataList.get(0).getName();
View Full Code Here

Examples of org.ow2.easybeans.resolver.api.EZBJNDIResolverException

    public String getMessageDestinationJNDIUniqueName(final String messageDestinationName) throws EZBJNDIResolverException {
        List<EZBJNDIData> dataList = getMessageDestinationJNDINames(messageDestinationName);

        // Not found
        if (dataList == null || dataList.isEmpty()) {
            throw new EZBJNDIResolverException("No JNDI Name found for message destination name '" + messageDestinationName
                    + "'.");
        }

        // Too many entries !
        if (dataList.size() > 1) {
            throw new EZBJNDIResolverException("Found too many entries corresponding  message destination name '"
                    + messageDestinationName + "'. Found list = '" + dataList + "'.");
        }

        // Only one item, it's good
        return dataList.get(0).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.