All Examples This Package
Class examples.t3client.StartupTest
java.lang.Object
|
+----examples.t3client.StartupTest
- public class StartupTest
- extends Object
- implements T3StartupDef
StartupTest is a simple example of the use of the T3StartupDef
interface for writing a startup class. Startup classes are specified
in the weblogic.properties file and are instantiated and executed
at the time the WebLogic Server starts up.
This simple example prints out the value of the logString argument
to the WebLogic log.
To run this example, first set the following properties
by adding them to the weblogic.properties file:
weblogic.system.startupClass.StartupTest=examples.t3client.StartupTest
weblogic.system.startupArgs.StartupTest=logString=SERVER STARTED
This example isn't run from the command line, but rather runs when
the WebLogic Server starts. Register this startup class in the
properties file and start your WebLogic Server. You'll see the
results in the log file.
- Author:
- Copyright (c) 1996-2000 by BEA Systems, Inc. All Rights Reserved.
-
StartupTest()
- Default constructor.
-
setServices(T3ServicesDef)
- Sets the services stub.
-
startup(String, Hashtable)
- The startup action belongs in this method.
StartupTest
public StartupTest()
- Default constructor. A default constructor is required of any
class that implements weblogic.common.T3StartupDef.
setServices
public void setServices(T3ServicesDef services)
- Sets the services stub. The services stub provides
runtime access to WebLogic services.
startup
public String startup(String name,
Hashtable args) throws Exception
- The startup action belongs in this method. The string
argument specifies the virtual name of this class by which it
is registered in the weblogic.properties file,
under the weblogic.system.startupClass property.
The hashtable argument is a set of name-value pairs that
are supplied to this method from the
weblogic.system.startupArgs property.
- Parameters:
- name - Virtual name under which this class is registered
- args - Set of name-value pairs of arguments for this method
- Throws: Exception
- if there is an error
All Examples This Package