Package org.exoplatform.container.monitor.jvm

Examples of org.exoplatform.container.monitor.jvm.J2EEServerInfo


   public PortalContainer getPortalContainer(final String name)
   {
      PortalContainer pcontainer = getComponentInstance(name, PortalContainer.class);
      if (pcontainer == null)
      {
         J2EEServerInfo senv = getServerEnvironment();
         if ("standalone".equals(senv.getServerName()) || "test".equals(senv.getServerName()))
         {
            try
            {
               MockServletContext scontext = new MockServletContext(name);
               pcontainer = new PortalContainer(this, scontext);
View Full Code Here


   {
      // (1) set by setConfigurationURL or setConfigurationPath
      // or
      if (configurationURL == null)
      {
         J2EEServerInfo env = new J2EEServerInfo();
        
         // (2) exo-configuration.xml in AS (standalone) home directory
         configurationURL = (new File(env.getServerHome() + "/exo-configuration.xml")).toURI().toURL();

         // (3) AS_HOME/conf/exo-conf (JBossAS usecase)
         if (!fileExists(configurationURL))
         {
            configurationURL =
               (new File(env.getExoConfigurationDirectory() + "/exo-configuration.xml")).toURI().toURL();
         }
        
         // (4) conf/exo-configuration.xml in war/ear(?)
         if (!fileExists(configurationURL) && configClassLoader != null)
         {
View Full Code Here

    */
   private static final Log LOG = ExoLogger.getLogger("org.exoplatform.container.management.ManageableContainer");

   private static MBeanServer findMBeanServer()
   {
      J2EEServerInfo serverenv_ = new J2EEServerInfo();
      return serverenv_.getMBeanServer();
   }
View Full Code Here

   public PortalContainer getPortalContainer(String name)
   {
      PortalContainer pcontainer = (PortalContainer)this.getComponentInstance(name);
      if (pcontainer == null)
      {
         J2EEServerInfo senv = getServerEnvironment();
         if ("standalone".equals(senv.getServerName()) || "test".equals(senv.getServerName()))
         {
            try
            {
               MockServletContext scontext = new MockServletContext(name);
               pcontainer = new PortalContainer(this, scontext);
View Full Code Here

    }
  }
 
   public boolean logout() throws LoginException
   {
      org.exoplatform.container.monitor.jvm.J2EEServerInfo info = new J2EEServerInfo();
      MBeanServer jbossServer = info.getMBeanServer();

      //
      if (jbossServer != null)
      {
         try
View Full Code Here

   public PortalContainer getPortalContainer(final String name)
   {
      PortalContainer pcontainer = (PortalContainer)this.getComponentInstance(name);
      if (pcontainer == null)
      {
         J2EEServerInfo senv = getServerEnvironment();
         if ("standalone".equals(senv.getServerName()) || "test".equals(senv.getServerName()))
         {
            try
            {
               MockServletContext scontext = new MockServletContext(name);
               pcontainer = new PortalContainer(this, scontext);
View Full Code Here

    */
   private static final Log LOG = ExoLogger.getLogger("exo.kernel.container.ManageableContainer");

   private static MBeanServer findMBeanServer()
   {
      J2EEServerInfo serverenv_ = new J2EEServerInfo();
      return serverenv_.getMBeanServer();
   }
View Full Code Here

   /**
    * Method returns a path to the file containing the encryption key
    */
   private String getKeyFilePath(){
       J2EEServerInfo info = new J2EEServerInfo();
       String confPath = info.getExoConfigurationDirectory();
       File keyFile = null;
      
       if (confPath != null) {
          File confDir = new File(confPath);
          if (confDir != null && confDir.exists() && confDir.isDirectory()) {
View Full Code Here

      throws ContainerConfigException
   {
      super(s, expressions);

      //
      J2EEServerInfo info = new J2EEServerInfo();

      //
      String confPath = info.getExoConfigurationDirectory();

      File keyFile = null;
      if (confPath != null)
      {
         File confDir = new File(confPath);
View Full Code Here

   public PortalContainer getPortalContainer(final String name)
   {
      PortalContainer pcontainer = getComponentInstance(name, PortalContainer.class);
      if (pcontainer == null)
      {
         J2EEServerInfo senv = getServerEnvironment();
         if ("standalone".equals(senv.getServerName()) || "test".equals(senv.getServerName()))
         {
            try
            {
               MockServletContext scontext = new MockServletContext(name);
               pcontainer = new PortalContainer(this, scontext);
View Full Code Here

TOP

Related Classes of org.exoplatform.container.monitor.jvm.J2EEServerInfo

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.