Package com.sun.enterprise.tools.common.dd.ejb

Examples of com.sun.enterprise.tools.common.dd.ejb.CmpResource


        descriptor.getEjbBundleDescriptor().setTestsDone(getClass().getName());
       
        if(ejbJar!=null)
        {
            EnterpriseBeans entBean = ejbJar.getEnterpriseBeans();
            CmpResource cmpResource = entBean.getCmpResource();
            if(cmpResource!=null)
            {
                String jndiName = cmpResource.getJndiName();
                if(jndiName.length()==0)
                {
                    result.failed(smh.getLocalString(getClass().getName()+".failed",
                        "FAILED [AS-EJB cmp-resource] : jndi-name cannot be an empty string"));
                    oneFailed=true;//4698046
                }
                else
                {
                    if(jndiName.startsWith("jdbc/")|| jndiName.startsWith("jdo/"))
                        result.passed(smh.getLocalString(getClass().getName()+".passed",
                            "PASSED [AS-EJB cmp-resource] : jndi-name is {0}",new Object[]{jndiName}));
                    else{
                        result.warning(smh.getLocalString(getClass().getName()+".warning",
                            "WARNING [AS-EJB cmp-resource] : The jndi-name  is {0}, the preferred jndi-name should start with  jdbc/ or jdo/"
                            , new Object[]{jndiName}));
                            oneWarning=true;//4698046
                    }   
                }
               
                DefaultResourcePrincipal defPrincipal = cmpResource.getDefaultResourcePrincipal();
                if(defPrincipal!=null)
                {
                    String name = defPrincipal.getName();
                    if(name.length()==0)
                    {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.tools.common.dd.ejb.CmpResource

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.