Package com.sun.enterprise.deployment

Examples of com.sun.enterprise.deployment.BundleDescriptor


            // Get the module descriptor and
            // list of component names

            if (j2eeType.equals("EJBModule")) {
                BundleDescriptor bd = getDescrForStandAloneEjbModule(standAloneModuleName);
                modComponents = getValidatedObjectNames(
      getEjbModuleComponents((EjbBundleDescriptor)bd));
                return modComponents;
            } else if (j2eeType.equals("WebModule")) {
                BundleDescriptor bd = getDescrForStandAloneWebModule(standAloneModuleName);
                modComponents = getValidatedObjectNames(
                  getWebModuleComponents((WebBundleDescriptor)bd));
                return modComponents;
            } else if (j2eeType.equals("ResourceAdapterModule")) {
                BundleDescriptor bd = getDescrForStandAloneRarModule(standAloneModuleName);
                modComponents = getValidatedObjectNames(
                  getRarModuleComponents((ConnectorDescriptor)bd));
                return modComponents;
            } else if (j2eeType.equals("AppClientModule")) {
                BundleDescriptor bd = getDescrForStandAloneCarModule(standAloneModuleName);
                modComponents = getValidatedObjectNames(getCarModuleComponents(bd));
                return modComponents;
            } else if (j2eeType.equals("J2EEApplication")) {
                Application ad = getDescrForApplication(standAloneModuleName);
                modComponents = getValidatedObjectNames(getApplicationComponents(ad));
View Full Code Here


      }

            // Get the bundle descriptor for the given module
            // and determine its' type

            BundleDescriptor bd = null;
            ModuleType modType = null;
            java.util.Set bds = appD.getBundleDescriptors();
            for(Iterator it=bds.iterator(); it.hasNext(); ) {
                bd = (BundleDescriptor)it.next();
                if ((bd.getModuleDescriptor().getArchiveUri()).equals(modName) ||
                     bd.getModuleID().equals(modName) ||
         bd.getName().equals(modName)) {
                        modType = bd.getModuleType();
      break;
                }
            }

            // invoke approprite module to list components
View Full Code Here

    ManagementObjectManager mom = Switch.getSwitch().getManagementObjectManager();
                String applicationName = ad.getRegistrationName();
                String j2eeType = null;

    java.util.Set bds = null;
    BundleDescriptor bd = null;

    // Determine number of modules and initialize the String array
                int i = 0;
    sArr = new String [ ad.getApplicationClientDescriptors().size() +
            ad.getEjbBundleDescriptors().size() +
            ad.getRarDescriptors().size() +
            ad.getWebBundleDescriptors().size() ];

    // App client modules
    bds = ad.getApplicationClientDescriptors();
    for(Iterator it=bds.iterator(); it.hasNext(); ) {
      bd = (BundleDescriptor) it.next();
      sArr[i] = ("j2eeType=AppClientModule" + "," +
           "name=" + bd.getModuleDescriptor().getArchiveUri() + "," +
           "J2EEApplication=" + applicationName);
      i++;
    }

    // Ejb modules
    bds = ad.getEjbBundleDescriptors();
    for(Iterator it=bds.iterator(); it.hasNext(); ) {
      bd = (BundleDescriptor) it.next();
      sArr[i] = ("j2eeType=EJBModule" + "," +
           "name=" + bd.getModuleDescriptor().getArchiveUri() + "," +
           "J2EEApplication=" + applicationName);
      i++;
    }

    // Connector modules
    bds = ad.getRarDescriptors();
    for(Iterator it=bds.iterator(); it.hasNext(); ) {
      bd = (BundleDescriptor) it.next();
      sArr[i] = ("j2eeType=ResourceAdapterModule" + "," +
           "name=" + bd.getModuleDescriptor().getArchiveUri() + "," +
           "J2EEApplication=" + applicationName);
      i++;
    }

    // Web modules
    bds = ad.getWebBundleDescriptors();
    for(Iterator it=bds.iterator(); it.hasNext(); ) {
      bd = (BundleDescriptor) it.next();
      sArr[i] = ("j2eeType=WebModule" + "," +
           "name=" + bd.getModuleDescriptor().getArchiveUri() + "," +
           "J2EEApplication=" + applicationName);
      i++;
    }

View Full Code Here

        if ( wse != null) {
            ep = wse.getEndpointName();
        }
        //wse.resolveComponentLink();

        BundleDescriptor bundle = wse.getBundleDescriptor();
        Application app = bundle.getApplication();

        String fqn = 
        WebServiceMgrBackEnd.getManager().getFullyQualifiedName(
           app.getRegistrationName() ,
           bundle.getModuleDescriptor().getArchiveUri(),
           bundle.getModuleDescriptor().isStandalone(), ep);

        if (FilterRegistry.getInstance().isManaged(fqn) == false) {
            return null;
        }
        String mId = null;
View Full Code Here

        com.sun.enterprise.deployment.WebServiceEndpoint wse=ep.getDescriptor();
        String epName = null;
        if (wse != null) {
            epName = wse.getEndpointName();
        }
        BundleDescriptor bundle = wse.getBundleDescriptor();
        Application app = bundle.getApplication();
       
        String fqn = getFullyQualifiedName( app.getRegistrationName() ,
                bundle.getModuleDescriptor().getArchiveUri(),
                app.isVirtual(), epName);
        return fqn;
    }
View Full Code Here

                } else if (dr.isApplication()) {
                    List ejb = new ArrayList();
                    Set ejbBundles = rootDD.getEjbBundleDescriptors();

                    for (Iterator iter=ejbBundles.iterator(); iter.hasNext();) {
                        BundleDescriptor bd = (BundleDescriptor) iter.next();
                        WebServicesDescriptor wsDD = bd.getWebServices();
                        if (wsDD.hasWebServices()) {

                            // ejb bundle has web services
                            ejb.add(bd.getModuleDescriptor().getArchiveUri());
                        }
                    }

                    List web = new ArrayList();
                    Set webBundles = rootDD.getWebBundleDescriptors();
                    for (Iterator iter=webBundles.iterator(); iter.hasNext();) {
                        BundleDescriptor bd = (BundleDescriptor) iter.next();
                        WebServicesDescriptor wsDD = bd.getWebServices();
                        if (wsDD.hasWebServices()) {

                            // web bundle has web services
                            web.add(bd.getModuleDescriptor().getArchiveUri());
                        }
                    }

                    if ( (!ejb.isEmpty()) || (!web.isEmpty()) ) {
                        mgr.addJ2eeApplication(dr.getName(), ejb, web);
View Full Code Here

        /**
         * Set sbd in the ModuleDescriptor so that
         * application.getModules().next() returns the newly created
         * SipModule instead of WebModule.
         */
        BundleDescriptor prev = sbd.getModuleDescriptor().getDescriptor();
        sbd.getModuleDescriptor().setDescriptor(sbd);
        super.runVerifier();
        sbd.getModuleDescriptor().setDescriptor(prev);
    }
View Full Code Here

        /*
         *Return the developer-specified context root, if there is one.
         */
        String result = null;

        BundleDescriptor bd = moduleDescr.getDescriptor();
        if (bd instanceof ApplicationClientDescriptor) {
            ApplicationClientDescriptor acd = (ApplicationClientDescriptor) bd;
            JavaWebStartAccessDescriptor jwsAD = acd.getJavaWebStartAccessDescriptor();
            if (jwsAD != null) {
                result = jwsAD.getContextRoot();
View Full Code Here

         */
        for (Iterator it = app.getModulesByType(ModuleType.CAR); it.hasNext();) {
            Object o = it.next();
            if (o instanceof ModuleDescriptor) {
                ModuleDescriptor moduleDescriptor = (ModuleDescriptor) o;
                BundleDescriptor bd = moduleDescriptor.getDescriptor();
                if (bd instanceof ApplicationClientDescriptor) {
                    ApplicationClientDescriptor appclientDescriptor = (ApplicationClientDescriptor) bd;
                    JavaWebStartAccessDescriptor jwsAD = appclientDescriptor.getJavaWebStartAccessDescriptor();
                    if (jwsAD == null || jwsAD.isEligible()) {
                        mds.add(moduleDescriptor);
                    }
                } else {
                    if (logger != null) {
                        logger.warning("During app/app client loading, expected bundleDescriptor for app client module to be of type ApplicationClientDescriptor but it is " + bd.getClass().getName() + "; ignoring it and continuing");
                    }
                }
            } else {
                if (logger != null) {
                    logger.warning("During app/app client loading, expected descriptor of type ModuleDescriptor but found " + o.getClass().getName() + " instead; ignoring it and continuing");
View Full Code Here

            //or in the system classpath.
            String moduleID = getDescriptor().getApplication().getModuleID();
            Class endpointClass = null;
            ClassLoader loader = null;
            try {
    BundleDescriptor moduleDesc =
      getDescriptor().getEjbBundleDescriptor();
    loader = moduleDesc.getClassLoader();
            }catch(Exception e){
              logger.log(Level.WARNING, "endpointfactory.loader_not_found",e);
            }

            if (loader == null) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.BundleDescriptor

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.