WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

Package examples.time

This package contains two applications that illustrate how to use timers in WebLogic Server.

See:
          Description

Class Summary
ClientTimer This class illustrates use of client-side timers.
ServerTimer This application connects to a WebLogic Server, and schedules a recurring trigger that executes on the server.
 

Package examples.time Description

This package contains two applications that illustrate how to use timers in WebLogic Server. One is a client-side application, and the other uses a server-side timer. In both cases the triggered action is carried out by WebLogic Server.

Perform the following steps in order to build and run the examples:

  1. Build the Example
  2. Run the Example

Build the Example

  1. Set up your development shell as described in Setting up your environment.

  2. Compile the ClientTimer.java file to your CLIENT_CLASSES directory, with a command like this one for Windows NT:
      $ javac -d %CLIENT_CLASSES% ClientTimer.java

  3. Compile the ServerTimer.java file to your SERVER_CLASSES directory, with a command like this one for Windows NT:
      $ javac -d %SERVER_CLASSES% ServerTimer.java

Run the Example

  1. Start the WebLogic Server in a new command shell.

  2. Run the examples from your development shell, with the URL of your WebLogic Server as an argument. For example:
      $ java examples.time.ClientTimer t3://localhost:7001
      $ java examples.time.ServerTimer t3://localhost:7001

The ClientTimer example prints results in your development shell. The ServerTimer example prints results in the WebLogic Server log output.

There's More...

Read the developer's guide for this API, Using WebLogic Time.


Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.