BEA Logo BEA WebLogic Server Release 6.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

   Using WebLogic Events (Deprecated):   Previous Topic   |   Next Topic   |   Contents   

 

Contents

 

1. Overview of WebLogic Events

WebLogic Event architecture

The Topic Tree

Structure of the Topic Tree

An example of a structured tree

Registering interest in an event

How the Topic Tree is populated

How a client registers interest in an Event Topic

How a client unregisters interest in an Event

Processing an event

How the Topic Tree is traversed

How each EventRegistration is processed

How events are evaluated by an EventRegistration

How the action process works

More about parameters

2. WebLogic Events Objects and Their Classes

Evaluate and Action objects

The EvaluateDef and ActionDef interfaces

Methods you will implement

EventTopic objects

EventRegistration objects

EventMessage objects

ParamSet and ParamValue objects

Using ParamSets Efficiently

Implementing with WebLogic Events

Writing the Evaluate class

Step 1. Importing packages

Step 2. The registerInit() method

Step 3. The evaluate() method

Code for the EvaluateStocks (evaluate) class

Writing the Action class

Step 1. Importing packages

Step 2. The registerInit() method

Step 3. The action() method

Code for the MailStockInfo (action) class

Registering interest in an event

Step 1. Importing packages

Step 2. Checking the command-line arguments

Step 3. Processing the command-line arguments

Step 4. Obtaining the EventServices factory

Step 5. Creating and submitting the registration

Code for the Register class

Sending events to the WebLogic Server

Step 1. Importing packages

Step 2. Checking the command-line arguments

Step 3. Processing the command-line arguments

Step 4. Submitting events

Code for the SendEvents class

Using client-side notification

Setting up ACLs for WebLogic Events in the WebLogic Realm

 

Back to Top