You can also use Oracle Event Processing Visualizer. Visualizer is a browser-based tool that enables you to administer Oracle Event Processing servers and domains, and to view, develop, configure and monitor aspects of Oracle Event Processing applications and security. See Oracle Fusion Middleware Using Visualizer for Oracle Event Processing.
This chapter includes the following sections:
See also Oracle Fusion Middleware Java API Reference for Oracle Event Processing for information about the Oracle Event Processing APIs described in this guide.
An Oracle Event Processing server consists of logically related resources and services to which you deploy Oracle Event Processing applications. Services include:
Network I/O: Server and client Internet Protocol (IP) port access, IPv4 and IPv6 support, and a variety of blocking and non-blocking network I/O providers.
Security: Security services such as SSL, password stores, and authentication and authorization providers.
Jetty: HTTP publish-subscribe server: To enable web clients to subscribe to channels and publish asynchronous messages to these channels over HTTP
Java Management Extensions (JMX): Programmatic access to Oracle Event Processing server and application behavior.
JDBC data sources: To access relational databases to store events for event record and playback, to access a table as an event source for Oracle CQL queries.
HTTP publish-subscribe server: To push event messages to subscribed clients such as the Oracle Event Processing Visualizer and your own Web 2.0 applications.
Logging: To monitor and troubleshoot server and application operation.
An Oracle Event Processing domain is the management unit of a set of one or more servers. There are two types of domain:
Standalone-server domain: A domain that contains a single server. This is the type of domain that is created by default by the Configuration Wizard and is the starting point for a multiserver domain. See Standalone-Server Domains.
Multiserver domain: A domain that contains two or more servers that share the same multicast address, multicast port, domain, and security provider. The multicast address, multicast port, and domain are configured in the config.xml
file for each server in the domain. You can create server groups within a multiserver domain and deploy applications to each server in the specified server group. The servers within a multiserver domain can be located on the same computer or on separate computers.
Figure 1-1 shows a state diagram for the Oracle Event Processing server life cycle. In this diagram, the state names (STARTING
, RUNNING
, and SHUTTING_DOWN
) correspond to the ServerRuntimeMBean
.getState
method return values. These states are specific to Oracle Event Processing. They are not OSGi bundle states.
Figure 1-1 Server Life Cycle State Diagram
After you start the Oracle Event Processing server, it performs the following actions:
STARTING
.RUNNING
.You can configure the server and configure applications deployed to the server and perform the asks statically or dynamically. Static configuration involves editing XML files. Dynamic configuration involves manipulating management beans (MBeans) with Oracle Event Processing Visualizer, the wlevs.Admin
command-line tool, or programmatically with JMX APIs.
Static Configuration
There are some server configuration tasks that you can only perform statically, such as configuring Jetty.
To configure the server statically:
Stop the Oracle Event Processing server.
Edit the Oracle Event Processing server config.xml
file located in the server's domain directory
Start the Oracle Event Processing server.
Dynamic Configuration
There are some server configuration tasks that you can perform dynamically using JMX and MBeans. In this case you do not have to manually stop and start the server for the changes to take effect.
After you deploy an application, you can dynamically change its configuration and the configuration of its individual components by manipulating the MBeans that the Oracle Event Processing server automatically creates for the application and its components. A typical task is to dynamically configure the Oracle CQL rules for the processors of a deployed application. You do this using Oracle Event Processing Visualizer, wlevs.Admin command-line utility, or JMX.
Related Information
For more information, see:
All server files are contained in a single server directory. The main server configuration file is config.xml
. The config.xml
file is where you configure the server services and specify the domain to which the server belongs.
By default, the Configuration Wizard creates server domains in the /Oracle/Middleware/my_oep/user_projects/domains
directory. The following list describes the important server files and directories that are in each domain:
deployments.xml
: An XML file that contains the list of applications, packaged as OSGi bundles, that are currently deployed to the Oracle Event Processing instance of this domain. You never update this file manually to deploy applications, but use the Deployer tool.
startwlevs.cmd
: A command file that you use to start an instance of an Oracle Event Processing server. The UNIX equivalent is startwlevs.sh
.
stopwlevs.cmd
: A command file that you use to stop an instance of an Oracle Event Processing server. The UNIX equivalent is stopwlevs.sh
.
config/config.xml
: An XML file that describes the configured services for the Oracle Event Processing server instance. Services include logging, debugging, Jetty Web Service, and JDBC data sources.
config/security*
: Files that configure security for the domain.
config/atnstore.txt
: A File that lists the configured users and user groups for the domain.
The most efficient and least error-prone way to configure an Oracle Event Processing server is to use one or more of the Oracle Event Processing administration tools described in Server Administration Tools.
Optionally, you can perform Oracle Event Processing server configuration by editing the Oracle Event Processing server config.xml
file.
Caution:
If you update the config.xml
file manually to change the configuration of an Oracle Event Processing server, you must restart the server for the change to take effect.
You can configure the following server objects and features using the config.xml
file. The referenced sections describe the exact elements you must add or update:
How the servers in a multiserver domain are configured together. This includes the multicast address and multicast port, the server groups, and so on. See:
Network I/O. See Network I/O.
Security. See Security .
Jetty, an open-source, standards-based, full-featured Java Web Server. See Jetty.
JMX, required to use the Oracle Event Processing Visualizer, wlevs.Admin
utility, and Deployer utility See JMX .
JDBC data source, used to connect to a relational database. See JDBC.
HTTP publish-subscribe server. See HTTP Publish-Subscribe Server.
Logging and debugging properties of the server. By default, the log level is set to NOTICE
. See Logging and Debugging.
The following example shows a sample config.xml
that contains configurations for some of these services.
<?xml version="1.0" encoding="UTF-8"?> <!--Sample XML file generated by XMLSpy v2007 sp2 (http://www.altova.com)--> <n1:config xsi:schemaLocation="http://www.bea.com/ns/wlevs/config/server wlevs_server_config.xsd" xmlns:n1="http://www.bea.com/ns/wlevs/config/server" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <netio> <name>NetIO</name> <port>9002</port> </netio> <netio> <name>sslNetIo</name> <ssl-config-bean-name>sslConfig</ssl-config-bean-name> <port>9003</port> </netio> <work-manager> <name>JettyWorkManager</name> <min-threads-constraint>5</min-threads-constraint> <max-threads-constraint>10</max-threads-constraint> </work-manager> <jetty> <name>JettyServer</name> <network-io-name>NetIO</network-io-name> <work-manager-name>JettyWorkManager</work-manager-name> <secure-network-io-name>sslNetIo</secure-network-io-name> </jetty> <rmi> <name>RMI</name> <http-service-name>JettyServer</http-service-name> </rmi> <jndi-context> <name>JNDI</name> </jndi-context> <exported-jndi-context> <name>exportedJndi</name> <rmi-service-name>RMI</rmi-service-name> </exported-jndi-context> <jmx> <rmi-service-name>RMI</rmi-service-name> <jndi-service-name>JNDI</jndi-service-name> </jmx> <ssl> <name>sslConfig</name> <key-store>./ssl/evsidentity.jks</key-store> <key-store-pass> <password>{Salted-3DES}j4XEtuXmmvEl4M/NInwq0A==</password> </key-store-pass> <key-store-alias>evsidentity</key-store-alias> <key-manager-algorithm>SunX509</key-manager-algorithm> <ssl-protocol>TLS</ssl-protocol> <enforce-fips>false</enforce-fips> <need-client-auth>false</need-client-auth> </ssl> <http-pubsub> <name>pubsub</name> <path>/pubsub</path> <pub-sub-bean> <server-config> <name>/pubsub</name> <supported-transport> <types> <element>long-polling</element> </types> </supported-transport> <publish-without-connect-allowed>true</publish-without-connect-allowed> </server-config> <channels> <element> <channel-pattern>/evsmonitor</channel-pattern> </element> <element> <channel-pattern>/evsalert</channel-pattern> </element> <element> <channel-pattern>/evsdomainchange</channel-pattern> </element> </channels> </pub-sub-bean> </http-pubsub> <cluster> <server-name>productionServer</server-name> </cluster> <domain> <name>oep_domain</name> </domain>
When you deploy an application to a server, the server creates a configuration history for the application. Any configuration changes you make to the application are recorded in this history. You can view and roll back (undo) these changes with Oracle Event Processing Visualizer or the wlevs.Admin
tool.
Use the -Xbootclasspath
command set the search path for bootstrap classes and resources. For example, you can use this command to satisfy server dependencies beyond those set by the server configuration file (config.xml
). You can also use this command to satisfy application and application library dependencies beyond those set by application import statements and found in the library and library extensions directories.
Configure the bootclasspath:
This section describes the server administration tools that you can use to administer Oracle Event Processing servers, domains, and applications.
Configuration Wizard. A Java application that you can invoke graphically to create and update Oracle Event Processing servers and domains. For the 12.1.3 release, the Configuration Wizard can generate an Oracle database configuration only. See Standalone-Server Domains.
wlevs.Admin
command-line utility. A Java application that you can invoke locally or remotely to perform a wide variety of Oracle Event Processing server, domain, and application administration tasks. See wlevs.Admin Command-Line Reference.
Deployer command-line utility. A Java application that you can invoke locally or remotely to perform application deployment and application administration tasks. See Deployer Command-Line Reference.
Security administration utilities. See Security Utilities Command-Line Reference.
JMX. A set of standards-based interfaces that enable you to perform server, domain, and application administration tasks using JMX and management beans (MBeans). See JMX .
This section briefly describes some of the important server administration tasks.
Create Servers and Domains
The primary administrative task in setting up an Oracle Event Processing platform is creating and configuring the server domains. Oracle Event Processing supports standalone-server domains and multiserver domains.
For more information, see:
Update Servers and Domains
Once you create an Oracle Event Processing server and domain, you can update it to change its configuration or server group membership. See:
Configure Servers
Once you create an Oracle Event Processing server and domain, you must configure the various services they provide. See:
Start and Stop Servers
After you have created an Oracle Event Processing domain along with at least a single server, you start a server instance so you can then deploy applications and begin running them. During upgrades and after some configuration changes, you must stop and start the Oracle Event Processing server. See:
Oracle Coherence: Start and Stop a Server in a Multiserver Domain
Oracle Event Processing Native Clustering: Start and Stop a Server in a Multiserver Domain
Note:
On Windows, do not stop the Oracle Event Processing server by clicking the Close button in the command prompt in which you started it. Always stop the Oracle Event Processing server using the stopwlevs.cmd
script or Ctrl-C
.
Deploy Applications to Servers
Once you have created and configured an Oracle Event Processing server and domain, you can deploy Oracle Event Processing applications to them. See:
Manage Applications, Servers, and Domains
Once you have deployed applications to an Oracle Event Processing server and domain, you must manage the application to perform tasks such as monitor its performance and perform upgrades. See: