WebLogic Event Server Reference

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

XSD Schema Reference for WebLogic Event Server Files

This section contains information on the following subjects:


Component Configuration XSD Schemas

The following XSD schema files describe the structure of the XML files you use to configure WebLogic Event Server components, such as the complex event processors and adapters. The wlevs_application_config.xsd schema imports the wlevs_base_config.xsd schema..

Example of a Component Configuration File

The following example shows the component configuration file for the HelloWorld sample application:

<?xml version="1.0" encoding="UTF-8"?>
<rule id="helloworldRule"><![CDATA[ select * from HelloWorldEvent retain 1 event ]]></rule>
<message>HelloWorld - the current time is:</message>
  <stream monitoring="true" >


EPN Assembly XSD Schema

You use the EPN assembly file to declare the components that make up your WebLogic Event Server application and how they are connected to each other, or in other words, the event processing network. The EPN assembly file is an extension of the standard Spring context file. You also use the file to register the Java classes that implement the adapter and POJO components of your application, register the event types that you use throughout your application and EPL rules, and reference in your environment the WebLogic Event Server-specific services.

See spring-wlevs.xsd for the full XSD Schema.

Example of a EPN Assembly File

The following XML file shows the EPN assembly file for the HelloWorld example:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    <!-- First, create and register the adapter (and factory) that generates hello world messages -->
<osgi:service interface="com.bea.wlevs.ede.api.AdapterFactory">
<prop key="type">hellomsgs</prop>
<bean class="com.bea.wlevs.adapter.example.helloworld.HelloWorldAdapterFactory" />
<wlevs:event-type type-name="HelloWorldEvent">
    <!-- Assemble EPN (event processing network) -->
    <!-- The adapter id is used by the configuration system, so needs to be well-known -->
    <wlevs:adapter id="helloworldAdapter" provider="hellomsgs" manageable="true">
<!-- This property is also configure by dynamic config -->
<wlevs:instance-property name="message" value="HelloWorld - the current time is:"/>
    <!-- The processor id is used by the configuration system, so needs to be well-known -->
    <wlevs:processor id="helloworldProcessor" manageable="true" />
    <wlevs:stream id="helloworldInstream" manageable="true">
<wlevs:listener ref="helloworldProcessor"/>
<wlevs:source ref="helloworldAdapter"/>
    <!-- Manageable is so that we can monitor the event throughput -->
    <wlevs:stream id="helloworldOutstream" manageable="true">
<!-- Create business object -->
<bean class="com.bea.wlevs.example.helloworld.HelloWorldBean"/>
<wlevs:source ref="helloworldProcessor"/>


Deployment XSD Schema

The deployment file for WebLogic Event Server is called deployments.xml and is located in the DOMAIN_DIR directory, where DOMAIN_DIR refers to the main domain directory. This XML file lists the OSGi bundles that have been deployed to the server.

See deployment..xsd for the full XSD Schema.

Example of a Deployment XML File

The following example shows the deployments.xml file for the sample FX domain:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  <wlevs:deployment id="fxApp" state="start" location="file:applications/fx/com.bea.wlevs.example.fx_2.0.0.0.jar"/>

  Back to Top       Previous  Next