All Examples This Package
java.lang.Object | +----examples.t3client.StartupQuery
This example requres a Cloudscape database instance. You'll need to register this class as a startup class in your weblogic.properties file, as detailed in the description of the startup() method.
weblogic.system.startupClass.doquery=examples.t3client.StartupQuery
weblogic.system.startupArgs.doquery=\
query=select * from emp,\
db=jdbc:weblogic:pool:demoPool
where "db" is the URL of your database pool that contains a table that you include in the arg "query".
public StartupQuery()
public String startup(String name,
Hashtable args) throws Exception
weblogic.system.startupClass.doquery=examples.t3client.StartupQuery
weblogic.system.startupArgs.doquery=\
query=select * from emp,\
db=jdbc:weblogic:pool:demoPool
where "db" is the URL of your database pool that contains a table that you include in the arg "query".
When startup is invoked as a result of these two lines, the "name" argument will be "doquery" (from the left-hand of the property), and the args hashtable will contain the name-value pair "query", "select * from emp".
public void setServices(T3ServicesDef services)
The setServices() method is called to pass to the T3Servlet the handle of an object that can be used to access WebLogic services. This makes another reference to the services object so it can be used later.
public void declareParams(ParamSet ps) throws ParamSetException
The declareParams() method is called to specify the parameters that this T3Servlet will accept. WebLogic calls this method when the server-side object is instantiated.
public void execute(ParamSet ps) throws Exception
The execute() method is called when the client requests the invocation of this servlet. the ParamSet contains the arguments for the execute() method.
All Examples This Package