Package com.sun.enterprise.instance

Examples of com.sun.enterprise.instance.BaseManager


        // Get list of all wsdls and schema
        SDDocumentSource primaryWsdl = null;
        Collection docs = null;
        if(endpoint.getWebService().hasWsdlFile()) {
            BaseManager mgr;
            if(endpoint.getBundleDescriptor().getApplication().isVirtual()) {
                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.WEB);
            } else {
                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.APP);
            }
            String deployedDir =
                mgr.getLocation(endpoint.getBundleDescriptor().getApplication().getRegistrationName());
            File pkgedWsdl = null;
            if(deployedDir != null) {
                if(endpoint.getBundleDescriptor().getApplication().isVirtual()) {
                    pkgedWsdl = new File(deployedDir+File.separator+
                                endpoint.getWebService().getWsdlFileUri());
View Full Code Here


                    } else if((new File(next.getWsdlFileUri())).isAbsolute()) {
                        // Absolute WSDL file paths set as is
                        next.setWsdlFileUrl((new File(next.getWsdlFileUri())).toURL());
                    } else {
                        // Relative WSDL file paths prefixed with module dir
                        BaseManager mgr=null;
                        if(next.getBundleDescriptor().getApplication().isVirtual()) {
                            ModuleType mType = next.getBundleDescriptor().getModuleType();
                            if(mType.equals(ModuleType.WAR)) {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.WEB);
                            } else if(mType.equals(ModuleType.EAR)) {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.APP);
                            } else if(mType.equals(ModuleType.EJB)) {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.EJB);
                            } else if(mType.equals(ModuleType.CAR)) {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.CAR);
                            }
                            String deployedDir =
                                mgr.getLocation(next.getBundleDescriptor().getApplication().getRegistrationName());
                            if(deployedDir != null) {
                                File fileURL;
                                if(next.getBundleDescriptor().getApplication().isVirtual()) {
                                    fileURL = new File(deployedDir+File.separator+next.getWsdlFileUri());
                                } else {
View Full Code Here

                        // Get list of all wsdls and schema
                        SDDocumentSource primaryWsdl = null;
                        Collection docs = null;
                        if(endpoint.getWebService().hasWsdlFile()) {
                            BaseManager mgr;
                            if(endpoint.getBundleDescriptor().getApplication().isVirtual()) {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.EJB);
                            } else {
                                mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.APP);
                            }
                            mgr.refreshConfigContext(ApplicationServer.getServerContext().getConfigContext());
                            String deployedDir =
                                mgr.getLocation(endpoint.getBundleDescriptor().getApplication().getRegistrationName());
                            File pkgedWsdl = null;
                            if(deployedDir != null) {
                                if(endpoint.getBundleDescriptor().getApplication().isVirtual()) {
                                    pkgedWsdl = new File(deployedDir+File.separator+
                                                endpoint.getWebService().getWsdlFileUri());
View Full Code Here

            // Get list of all wsdls and schema
            SDDocumentSource primaryWsdl = null;
            Collection docs = null;
            if(endpoint.getWebService().hasWsdlFile()) {
                BaseManager mgr;
                if(bundledesc.getApplication().isVirtual()) {
                    mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.WEB);
                } else {
                    mgr = DeploymentServiceUtils.getInstanceManager(DeployableObjectType.APP);
                }
                String deployedDir =
                    mgr.getLocation(bundledesc.getApplication().getRegistrationName());
                File pkgedWsdl;
                if(deployedDir != null) {
                    if(bundledesc.getApplication().isVirtual()) {
                        pkgedWsdl = new File(deployedDir+File.separator+
                                    endpoint.getWebService().getWsdlFileUri());
View Full Code Here

                                         File moduleRootDirectory,
                                           File moduleScratchDirectory,
                                               ModuleType moduleType) {
        try {
            Application app = null;
            BaseManager emMgr =
               (BaseManager)PluggableDeploymentInfo.
                    getExtensionModuleDeployer(moduleType).getConfigManager();
            FileArchive archive = emMgr.openDDArchive(moduleName,
                                         moduleRootDirectory.getAbsolutePath());          

            WebArchivist webArchivist = new WebArchivist();
            app = ApplicationArchivist.openArchive(moduleName,
                                               webArchivist, archive, true);
            //if(!isSystemAdmin(moduleName) && !isSystem(moduleName)) {
                // we need to read persistence descriptors separately
                    // because they are read from appDir as oppsed to xmlDir.
            emMgr.readPersistenceDeploymentDescriptors(
                                     moduleRootDirectory.getAbsolutePath(),
                                                                app);
            //}
                
            app.setGeneratedXMLDirectory(
View Full Code Here

   */
  protected Application loadDescriptors() throws IASDeploymentException {


      // we will need this later     
      BaseManager manager = getManager();
      if (manager==null) {
    throw new IASDeploymentException(
      localStrings.getString(
      "enterprise.deployment.backend.no_manager_registered",
      request.getType() ));   
View Full Code Here

TOP

Related Classes of com.sun.enterprise.instance.BaseManager

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.