Contents for Using WebLogic Server Events

 

 

Overview of WebLogic Events

WebLogic Event architecture

Registering interest in an event

Processing an event

 

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