Package org.jboss.system.server

Examples of org.jboss.system.server.ServerConfig


            if (serverDataDir != null) {
               
                dataDir = new File(serverDataDir);
            }
            else {
                final ServerConfig serverConfig = (ServerConfig) MBeanProxyExt.create(ServerConfig.class, ServerConfigImplMBean.OBJECT_NAME);
                dataDir = serverConfig.getServerDataDir() ;
            }
           
            if (schemas != null)
            {
                initialiseSchemas(dataDir) ;
View Full Code Here


            if (serverDataDir != null) {
                dataDir = new File(serverDataDir);
            }
            else
            {
                final ServerConfig serverConfig = (ServerConfig) MBeanProxyExt.create(ServerConfig.class, ServerConfigImplMBean.OBJECT_NAME);
                dataDir = serverConfig.getServerDataDir() ;
            }
            final File schemaDir = new File(dataDir, SOAP_UI_SCHEMA_DIRECTORY) ;
            if (schemaDir.exists())
            {
                deleteFiles(schemaDir) ;
View Full Code Here

  
    File getDataDir()
    {
        if (datadir == null)
        {
            final ServerConfig serverConfig = (ServerConfig) MBeanProxyExt.create(ServerConfig.class, ServerConfigImplMBean.OBJECT_NAME);
            return serverConfig.getServerDataDir();
        }
        return new File(datadir);
    }
View Full Code Here

        try {
          ClassLoader loader = Thread.currentThread().getContextClassLoader();
          URL url = loader.getResource("repository.xml");
          URI uri = new URI(url.toString());
          File repositoryConfig = new File(uri);
          ServerConfig config = ServerConfigLocator.locate();
          File dataDir = config.getServerDataDir();
          File repositoryFolder = new File(dataDir, "repository");
          repository = initRepository(repositoryConfig, repositoryFolder);
        } catch (URISyntaxException e) {
          throw new RepositoryException(e);
        }
View Full Code Here

    File getDataDir()
    {
        if (datadir == null)
        {
            final ServerConfig serverConfig = (ServerConfig) MBeanProxyExt.create(ServerConfig.class, ServerConfigImplMBean.OBJECT_NAME);
            return serverConfig.getServerDataDir();
        }
        return new File(datadir);
    }
View Full Code Here

/* 340 */             warName = warName.substring(4, warName.length() - 2);
/*     */           else
/* 342 */             warName = warName.substring(4, warName.length());
/*     */         }
/* 344 */         URL warURL = new URL(warName);
/* 345 */         ServerConfig config = ServerConfigLocator.locate();
/* 346 */         String prefix = warURL.getFile();
/* 347 */         int lastSlash = prefix.lastIndexOf('/');
/* 348 */         if (lastSlash > 0)
/* 349 */           prefix = prefix.substring(lastSlash + 1);
/* 350 */         int dotWar = prefix.lastIndexOf(".war");
/* 351 */         if (dotWar > 0) {
/* 352 */           prefix = prefix.substring(0, dotWar);
/*     */         }
/* 354 */         File expWarFile = File.createTempFile(prefix, "-exp.war", config.getServerTempDeployDir());
/* 355 */         expWarFile.delete();
/* 356 */         if (!expWarFile.mkdir())
/* 357 */           throw new DeploymentException("Was unable to mkdir: " + expWarFile);
/* 358 */         this.log.debug("Unpacking war to: " + expWarFile);
/* 359 */         VirtualFile root = unit.getRoot();
View Full Code Here

/*      */   }
/*      */
/*      */   protected void createService()
/*      */     throws Exception
/*      */   {
/*  504 */     ServerConfig config = ServerConfigLocator.locate();
/*      */
/*  506 */     File basedir = config.getServerTempDir();
/*      */
/*  508 */     this.tempDir = new File(basedir, "deploy");
/*      */
/*  510 */     Files.delete(this.tempDir);
/*      */
View Full Code Here

/*     */   {
/* 432 */     super.startService();
/*     */
/* 435 */     this.serviceController = ((ServiceControllerMBean)MBeanProxyExt.create(ServiceControllerMBean.class, ServiceControllerMBean.OBJECT_NAME, this.server));
/*     */
/* 440 */     ServerConfig config = ServerConfigLocator.locate();
/* 441 */     this.dataDir = config.getServerDataDir();
/* 442 */     this.serverHomeURL = config.getServerHomeURL();
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   protected void createService()
/*     */     throws Exception
/*     */   {
/* 106 */     ServerConfig config = ServerConfigLocator.locate();
/* 107 */     this.tempNativeDir = config.getServerNativeDir();
/* 108 */     this.tempDeployDir = config.getServerTempDeployDir();
/* 109 */     this.loadNative = ServerConfigUtil.isLoadNative();
/*     */
/* 112 */     this.mainDeployer = ((MainDeployerMBean)MBeanProxyExt.create(MainDeployerMBean.class, MainDeployerMBean.OBJECT_NAME, this.server));
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public ObjectName preRegister(MBeanServer server, ObjectName name)
/*     */     throws Exception
/*     */   {
/* 689 */     ServerConfig serverConfig = ServerConfigLocator.locate();
/* 690 */     this.serverHome = serverConfig.getServerHomeDir();
/* 691 */     this.serverHomeURL = serverConfig.getServerHomeURL();
/*     */
/* 693 */     return super.preRegister(server, name);
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.system.server.ServerConfig

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.