Package org.jboss.bootstrap.api.as.config

Examples of org.jboss.bootstrap.api.as.config.JBossASServerConfig


      server = JBossASServer.class.cast(ServerFactory.createServer(DEFAULT_AS_SERVER_IMPL_CLASS_NAME, loadingCl));

      // Get out the default configuration
      // This cast to object first is to workaround the JDK Bug: http://bugs.sun.com/view_bug.do?bug_id=6548436
      final Object jdk6Bug6548436Hack = (Object) server.getConfiguration();
      JBossASServerConfig config = (JBossASServerConfig) jdk6Bug6548436Hack;

      // Set JBOSS_HOME and properties
      config.properties(props).jbossHome(jbossHome);

      // Make a shutdown hook
      SecurityActions.addShutdownHook(new ShutdownHook(server, loadingCl));

      try
View Full Code Here


    * and registered to the jboss MBeanServer
    */
   private LibraryManager()
   {
      // discover if there is a local server library dir
      JBossASServerConfig config = ServerConfigLocator.locate();
      URL serverLibURL = config.getServerLibLocation();
     
      if (serverLibURL != null && serverLibURL.getProtocol().startsWith("file"))
      {
         this.serverLibDir = new File(serverLibURL.getFile());
         try
         {
           this.serverTmpDir = new File(config.getServerTempLocation().toURI());
         }
         catch (final URISyntaxException urise)
         {
           throw new RuntimeException("Error in initialization", urise);
         }
View Full Code Here

    * (no jmx tag needed from superinterface)
    * @exception Exception if an error occurs
    */
   protected void createService() throws Exception
   {
      JBossASServerConfig config = ServerConfigLocator.locate();
      // Get the temp directory location
      File basedir = new File(config.getServerTempLocation().toURI());
      // Set the local copy temp dir to tmp/deploy
      tempDir = new File(basedir, "deploy");
      // Delete any existing content
      Files.delete(tempDir);
      // Make sure the directory exists
View Full Code Here

      String bindAddress = System.getProperty("embedded.bind.address", "localhost");
     
      Thread.currentThread().setContextClassLoader(loader);

      JBossASEmbeddedServer server = JBossASEmbeddedServerFactory.createServer(loader);
      JBossASServerConfig config = server.getConfiguration();
      config.jbossHome(jbossHome);
      config.serverName(serverName);
      config.bindAddress(bindAddress);
      try
      {
         server.start();

         InitialContext context = new InitialContext();
View Full Code Here

         throw new ClassCastException("Specified server implementation class, " + implClassName
               + " must be assignable to " + expectedType.getName());
      }

      // Set a default config
      final JBossASServerConfig config = JBossASServerConfigFactory.createServerConfig(cl);
      asServer.setConfiguration(config);

      // Return
      return asServer;
   }
View Full Code Here

         throw new ClassCastException("Specified server implementation class, " + implClassName
               + " must be assignable to " + targetClass.getName());
      }

      // Set a default config
      final JBossASServerConfig config = JBossASServerConfigFactory.createServerConfig(cl);
      asServer.setConfiguration(config);

      // Return
      return asServer;
   }
View Full Code Here

    * @return The same server instance passed in, with a set config
    */
   private static JBossASServer applyDefaultConfiguration(final JBossASServer server, final ClassLoader cl)
   {
      // Set a default config
      final JBossASServerConfig config = JBossASServerConfigFactory.createServerConfig(cl);
      server.setConfiguration(config);
      return server;
   }
View Full Code Here

TOP

Related Classes of org.jboss.bootstrap.api.as.config.JBossASServerConfig

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.