Configuring the csvgen Adapter in Your Application

Testing Applications With the Event Inspector 26-5 the local HTTP pub-sub server by default. For more information, see Chapter 8, Configuring HTTP Publish-Subscribe Server Adapters .

26.2.1 How to Configure a Local Event Inspector HTTP Pub-Sub Server

You configure the Event Inspector service with a local HTTP pub-sub server in a component configuration file. Alternatively, you can configure a remote HTTP pub-sub server as Section 26.2.2, How to Configure a Remote Event Inspector HTTP Pub-Sub Server describes. To configure a local Event Inspector HTTP pub-sub server: 1. Open the EPN editor in the Oracle CEP IDE for Eclipse. See Section 6.1, Opening the EPN Editor .

2. Right-click any component with a configuration file associated with it and select

Go to Configuration Source .

3. Add an event-inspector-service element as

Example 26–2 shows. Example 26–2 Event Inspector Service Local HTTP Pub-Sub Server event-inspector-service namemyEventInspectorConfigname pubsub-server-namemyPubSubpubsub-server-name event-inspector-service Where the pubsub-server-name value myPubSub is the value of the http-pubsub element name child element as defined in the local Oracle CEP server config.xml file as Example 26–3 shows. Example 26–3 Oracle CEP Built-In HTTP Pub-Sub Server http-pubsub Element ... http-pubsub namemyPubSubname pathpubsubpath pub-sub-bean server-config supported-transport types elementlong-pollingelement types supported-transport publish-without-connect-allowedtruepublish-without-connect-allowed server-config channels ... channels pub-sub-bean http-pubsub ... 4. Save and close the config.xml file.

26.2.2 How to Configure a Remote Event Inspector HTTP Pub-Sub Server

You configure the Event Inspector service with a remote HTTP pub-sub server in a component configuration file. Alternatively, you can configure a local HTTP pub-sub server as Section 26.2.1, How to Configure a Local Event Inspector HTTP Pub-Sub Server describes. 26-6 Oracle Complex Event Processing Developers Guide To configure a Remote Event Inspector HTTP pub-sub server: 1. Open the EPN editor in the Oracle CEP IDE for Eclipse. See Section 6.1, Opening the EPN Editor . 2. Right-click any component with a configuration file associated with it and select Go to Configuration Source . 3. Add an event-inspector-service element as Example 26–4 shows. Example 26–4 Event Inspector Service Remote HTTP Pub-Sub Server event-inspector-service namemyEventInspectorConfigname pubsub-server-urlhttp:HOST:PORTPATHpubsub-server-url event-inspector-service Where: ■ HOST : is the host name or IP address of the remote Oracle CEP server. ■ PORT : the remote Oracle CEP server netio port as defined in the remote Oracle CEP server config.xml file. Default: 9002. ■ PATH : the value of the http-pubsub element path child element as defined in the remote Oracle CEP server config.xml file. Given the http-pubsub configuration that Example 26–3 shows, a valid pubsub-server-url would be: http:remotehost:9002pubsub Example 26–5 Oracle CEP Built-In HTTP Pub-Sub Server http-pubsub Element ... http-pubsub namemyPubSubname pathpubsubpath pub-sub-bean server-config supported-transport types elementlong-pollingelement types supported-transport publish-without-connect-allowedtruepublish-without-connect-allowed server-config channels ... channels pub-sub-bean http-pubsub ... 4. Save and close the config.xml file.

26.3 Injecting Events

After you configure the Event Inspector service HTTP pub-sub server, you can use Event Inspector clients to inject events. This section describes how to use Event Inspector service clients to inject events, including: Testing Applications With the Event Inspector 26-7 ■ Section 26.3.1, How to Inject Events Using Oracle CEP Visualizer For more information, see: ■ Section 26.3, Injecting Events ■ Section 26.2, Configuring the Event Inspector HTTP Pub-Sub Server

26.3.1 How to Inject Events Using Oracle CEP Visualizer

You can use the Oracle CEP Visualizer to inject events into any stage of your EPN. For more information, see: ■ How to Inject a Simple Event on an Event Inspector Service Dynamic Channel in the Oracle Complex Event Processing Visualizer Users Guide ■ How to Inject an Event as a JSON String on an Event Inspector Service Dynamic Channel in the Oracle Complex Event Processing Visualizer Users Guide

26.4 Tracing Events

After you configure the Event Inspector service HTTP pub-sub server, you can use Event Inspector clients to trace events. This section describes how to use Event Inspector service clients to trace events, including: ■ Section 26.4.1, How to Trace Events Using Oracle CEP Visualizer For more information, see: ■ Section 26.4, Tracing Events ■ Section 26.2, Configuring the Event Inspector HTTP Pub-Sub Server

26.4.1 How to Trace Events Using Oracle CEP Visualizer

You can use the Oracle CEP Visualizer to trace events flowing out of any stage of your EPN. For more information, see: ■ How to Trace Events on a Dynamic Channel in the Oracle Complex Event Processing Visualizer Users Guide 26-8 Oracle Complex Event Processing Developers Guide