BEA Systems, Inc.

Interface T3StartupDef

Deprecated. register a class with main() method or use application lifecycle listeners.

public interface T3StartupDef

T3StartupDef defines the interface for user-written startup objects.

A class that implements this interface and is registered in WebLogic's config.xml file will be automatically launched when the WebLogic Server starts up, and its startup method will be called. For more information on registering a startup class, check the Administrators' guide document, "Starting and Stopping WebLogic Servers."

Any class that implements this interface must have a public default constructor. For example, class "foo" must have a contstructor like:

     public foo() {

Method Summary
 void setServices(T3ServicesDef services)
 String startup(String name, Hashtable ht)

Method Detail


String startup(String name,
               Hashtable ht)
               throws Exception

The startup method is called by the WebLogic Server when your object is launched. Its arguments are supplied by the registration in WebLogic's config.xml file. The "name" argument is the virtual_name for the startupClass property, and the "hashtable" argument is made up of the name-value pairs supplied with the startupArgs property. The String returned by the startup() method is sent to the log file.

name - Virtual name by which the class is registered as a startupClass in the config.xml file
ht - A Hashtable that is made up of the name-value pairs supplied from the startupArgs property
String that is sent to the log file
Exception - if there is an error


void setServices(T3ServicesDef services)

Sets the services stub for the T3StartupDef object. The StartupDef can use the services reference to obtain access to services in the WebLogic Server. This method is invoked by the WebLogic Server prior to the startup() method.

Documentation is available at
Copyright 2006 BEA Systems Inc.