6 Deployment Schema

This chapter provides a reference to the elements of the deployment.xsd schema. The deployment.xsd schema is behind the XML with which you configure Oracle Event Processing application deployment.

This chapter includes the following sections:

6.1 Deployment Elements and Hierarchy

Oracle Event Processing provides a number of application assembly elements that you use in the EPN assembly file of your application to register event types, declare the components of the event processing network and specify how they are linked together. The EPN assembly file is an extension to the standard Spring context file.

The Oracle Event Processing component configuration elements are organized into the following hierarchy:

beans
    Standard Spring and OSGi elements such as bean, osgi-service, and so on.

6.2 wlevs:deployment

Use this element to declare an adapter component to the Spring application context. This element has no child elements and the following attributes.

Table 6-1 Attributes of the wlevs:deployment Deployment Element

Attribute Description Data Type Required?

id

Unique identifier for this deployed application.

String

Yes.

depends-on

The names of the beans that this deployment bean depends on being initialized. The bean factory will guarantee that these beans get initialized before this bean.

String

No.

location

URL that specifies the location of the bundle that is to be deployed. If a relative URL is specified then the location is relative the DOMAIN_DIR domain directory.

For example:

location="file:applications/simpleApp/simpleApp.jar"

Specifies that the bundle simpleApp.jar, located in the DOMAIN_DIR/applications/simpleApp directory, is to be deployed to Oracle Event Processing server.

String

No.

state

Specifies the state that the bundle should be in once it is deployed to the Oracle Event Processing server. The value of this attribute must be one of the following:

  • start: Install and start the bundle so that it immediately begins taking client requests.

  • install: Install the bundle, but do not start it.

  • update: Update an existing bundle.

Default value: start.

TState

No.

type

Specifies the type of a bundle. The value of this attribute must be one of the following:

  • library: This is a library bundle.

  • application: This is an Oracle Event Processing application.

Default value: application.

TBundleType

No

group-name

Specifies the name of the cluster group to which the application is deployed.

String

No

start-level

 

int

No

apply-parameters

Specifies if application parameters related to an application meta-type resource should be applied. The default behavior is to instantiate only once the first time the application is deployed.

TapplyParams

No

6.2.1 Example

This is how to use the wlevs:deployment element in the deployment file:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:wlevs="http://www.bea.com/ns/wlevs/deployment" xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.bea.com/ns/wlevs/deployment
    http://www.bea.com/ns/wlevs/deployment/deployment.xsd">
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
</bean>
<wlevs:deployment 
    id="fx" 
    state="start"
    location="file:${wlevs.domain.home}/applications/fx/com.bea.wlevs.example.fx_11.1.0.0.jar"/>
</beans>