Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.cactus.integration.ant.container.weblogic
Class WebLogic7xContainer  view WebLogic7xContainer download WebLogic7xContainer.java

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.cactus.integration.ant.container.AbstractContainer
          extended byorg.apache.cactus.integration.ant.container.AbstractJavaContainer
              extended byorg.apache.cactus.integration.ant.container.weblogic.WebLogic7xContainer
All Implemented Interfaces:
org.apache.cactus.integration.ant.container.Container

public class WebLogic7xContainer
extends org.apache.cactus.integration.ant.container.AbstractJavaContainer

Special container support for the Bea WebLogic 7.x application server. TODO: this doesn't work for me on JDK 1.3.1 and WL 7.0 SP2

Version:
$Id: WebLogic7xContainer.java,v 1.17 2005/01/29 15:49:18 vmassol Exp $

Field Summary
private  java.io.File beaHome
          The Bea home directory.
private  java.io.File configXml
          A user-specific config.xml WebLogic configuration file.
private  java.io.File dir
          The WebLogic 7.x installation directory.
private  int port
          The port to which the container should be bound.
private  java.io.File tmpDir
          The temporary directory from which the container will be started.
 
Fields inherited from class org.apache.cactus.integration.ant.container.AbstractJavaContainer
 
Fields inherited from class org.apache.cactus.integration.ant.container.AbstractContainer
RESOURCE_PATH
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
WebLogic7xContainer()
           
 
Method Summary
 java.lang.String getName()
          Returns a displayable name of the container for logging purposes.
 int getPort()
          Returns the port to which the container should listen.
 void init()
          The default implementation does nothing.
private  void prepare(java.lang.String theDirName)
          Prepares a temporary installation of the container and deploys the web-application.
 void setBeaHome(java.io.File theBeaHome)
          Sets the Bea home directory.
 void setConfigXml(java.io.File theConfigXml)
          Sets the configuration file to use for the test installation of WebLogic.
 void setDir(java.io.File theDir)
          Sets the WebLogic 7.x installation directory.
 void setPort(int thePort)
          Sets the port to which the container should listen.
 void setTmpDir(java.io.File theTmpDir)
          Sets the temporary installation directory.
 void shutDown()
          Subclasses must implement this method to perform the actual task of shutting down the container.
 void startUp()
          Subclasses must implement this method to perform the actual task of starting up the container.
 
Methods inherited from class org.apache.cactus.integration.ant.container.AbstractJavaContainer
addToolsJarToClasspath, createJavaForShutDown, createJavaForStartUp, createSysProperty, createSysProperty, createSysProperty, getJVMArgs, getToolsJar, setAppend, setJVMArgs, setOutput
 
Methods inherited from class org.apache.cactus.integration.ant.container.AbstractContainer
cleanTempDirectory, createAntTask, createDirectory, createExclude, createFilterChain, getBaseURL, getContainerClasspath, getDeployableFile, getExcludePatterns, getLog, getProtocol, getServer, getStartUpWait, getSystemProperties, getTestContext, getToDir, isEnabled, isExcluded, setAntTaskFactory, setContainerClasspath, setDeployableFile, setIf, setLog, setProtocol, setServer, setStartUpWait, setSystemProperties, setToDir, setUnless, setupTempDirectory
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beaHome

private java.io.File beaHome
The Bea home directory.


dir

private java.io.File dir
The WebLogic 7.x installation directory. For example: "c:\bea\weblogic700".


port

private int port
The port to which the container should be bound.


configXml

private java.io.File configXml
A user-specific config.xml WebLogic configuration file. If this variable is not set, the default configuration file from the JAR resources will be used.


tmpDir

private java.io.File tmpDir
The temporary directory from which the container will be started.

Constructor Detail

WebLogic7xContainer

public WebLogic7xContainer()
Method Detail

setBeaHome

public final void setBeaHome(java.io.File theBeaHome)
Sets the Bea home directory.


setDir

public final void setDir(java.io.File theDir)
Sets the WebLogic 7.x installation directory.


setPort

public final void setPort(int thePort)
Sets the port to which the container should listen.


setConfigXml

public final void setConfigXml(java.io.File theConfigXml)
Sets the configuration file to use for the test installation of WebLogic.


setTmpDir

public final void setTmpDir(java.io.File theTmpDir)
Sets the temporary installation directory.


getName

public final java.lang.String getName()
Description copied from interface: org.apache.cactus.integration.ant.container.Container
Returns a displayable name of the container for logging purposes.


getPort

public final int getPort()
Returns the port to which the container should listen.


init

public final void init()
Description copied from class: org.apache.cactus.integration.ant.container.AbstractContainer
The default implementation does nothing.


startUp

public final void startUp()
Description copied from interface: org.apache.cactus.integration.ant.container.Container
Subclasses must implement this method to perform the actual task of starting up the container.


shutDown

public final void shutDown()
Description copied from interface: org.apache.cactus.integration.ant.container.Container
Subclasses must implement this method to perform the actual task of shutting down the container.


prepare

private void prepare(java.lang.String theDirName)
              throws java.io.IOException
Prepares a temporary installation of the container and deploys the web-application.