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

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


        boolean notApplicable = false;
        boolean oneWarning = false;
       
        if(ejbJar!=null)
        {
            Ejb ejbs[] = ejbJar.getEnterpriseBeans().getEjb();
            Ejb testCase = null;
            for(int i=0;i<ejbs.length;i++)
            {
                if(ejbs[i].getEjbName().equals(descriptor.getName()))
                {
                    testCase = ejbs[i];
                    break;
                }
            }
           
            ejbName = testCase.getEjbName();
            EjbRef ejbRefs[] = testCase.getEjbRef();
            if(ejbRefs.length > 0)
            {
                for(int j=0;j<ejbRefs.length;j++)
                {
                    String refName = ejbRefs[j].getEjbRefName();
View Full Code Here


        SunEjbJar ejbJar = descriptor.getEjbBundleDescriptor().getIasEjbObject();
        String ejbName = null;
       
        if(ejbJar!=null)
        {
            Ejb testCase = getEjb(descriptor.getName(),ejbJar);
            ejbName = testCase.getEjbName();
            if(ejbName.length()==0)
            {
                result.failed(smh.getLocalString
                     (getClass().getName() + ".failed",
                      "failed [AS-EJB ejb] : ejb-name cannot not be empty. It should be a valid ejb-name as defined in ejb-jar.xml"));
View Full Code Here

    {
  Result result = getInitializedResult();
  ComponentNameConstructor compName = new ComponentNameConstructor(descriptor);

        SunEjbJar ejbJar = descriptor.getEjbBundleDescriptor().getIasEjbObject();
        Ejb testCase = null;
        boolean oneFailed = false;
       
        if(ejbJar!=null)
        {
            testCase = super.getEjb(descriptor.getName(),ejbJar);
           
            Principal principal = testCase.getPrincipal();
            if(principal == null)
            {
                result.notApplicable(smh.getLocalString(getClass().getName()+".notApplicable",
                    "NOT APPLICABLE [AS-EJB ejb] : principal element not defined"));
            }
View Full Code Here

TOP

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

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.