14 Managing HTTP Publish-Subscribe Servers

This chapter describes how you can use Oracle CEP Visualizer to view, add, or delete HTTP publish-subscribe server channels for use with Oracle CEP.

For more information, see:

14.1 Viewing HTTP Publish-Subscribe Servers

You can view an existing HTTP publish-subscribe server using the Oracle CEP Visualizer.

14.1.1 How to View HTTP Publish-Subscribe Server Channels

Using the Oracle CEP Visualizer, you can view the HTTP publish-subscribe server channels currently open on the Oracle CEP server, including:

  • Static: those channels configured in the Oracle CEP server config.xml and used by Oracle CEP Visualizer itself.

  • Dynamic: those channels that are not configured in the Oracle CEP server config.xml but created dynamically when the Oracle CEP sever is running. You can view statistics for dynamic channels, including the number of messages sent to this channel and the number of subscribers. Dynamic channel configuration is read-only.

  • User-defined: those channels that you create in your own Oracle CEP applications. These channels may be either static or dynamic.

Note:

When one application (application-1) advertises a channel that a second application (application-2) subscribes to and uses as a foreign stage, you cannot view the details of the advertised channel from application-2. To view the details of this channel, you must do so from application-1.

To view HTTP publish-subscribe server channels:

  1. Be sure you log on to Oracle CEP Visualizer using an administration user.

    For more information, see:

  2. In the left pane, click the Domain > Server > Services > Http Pub/Sub Server node, where Domain refers to the name of your Oracle CEP domain and Server refers to the name of the server instance.

    A table appears in the right pane with the list of HTTP pub-sub servers configured for Oracle CEP.

  3. In the right pane, double-click the name of the HTTP pub-sub server in the table. The default server is called pubsub.

    The HTTP publish-subscribe server properties dialog appears as Figure 14-1 shows.

    Figure 14-1 HTTP Publish-Subscribe Server Channel List

    Description of Figure 14-1 follows
    Description of "Figure 14-1 HTTP Publish-Subscribe Server Channel List"

    All active channels are shown in the Channels table. The Status column indicates the type of channel: static, dynamic, or user-defined.

14.2 Adding or Deleting an HTTP Publish-Subscribe Server

This section describes:

14.2.1 How to Add an HTTP Publish-Subscribe Server Channel

Using the Oracle CEP Visualizer, you can add an HTTP publish-subscribe server channel.

To add an HTTP publish-subscribe server channel:

  1. Be sure you log on to Oracle CEP Visualizer using an administration user.

    For more information, see:

  2. In the left pane, click the Domain > Server > Services > Http Pub/Sub Server node, where Domain refers to the name of your Oracle CEP domain and Server refers to the name of the server instance.

    A table appears in the right pane with the list of HTTP pub-sub servers configured for Oracle CEP.

  3. In the right pane, double-click the name of the HTTP pub-sub server in the table. The default server is called pubsub.

  4. Click Add Channel.

  5. In the working area towards the bottom of the right pane, enter the name of the new channel in the Channel Pattern text box.

    The channel must start with a /, such as /mychannel.

  6. If you have security enabled, select the security roles that are allowed to publish and subscribe to the channel.

    Select more than one by holding down the Ctrl key.

  7. Click Save.

    The new channel appears in the Channels table at the top right of the pane.

14.2.2 How to Delete an HTTP Publish-Subscribe Server Channel

Using the Oracle CEP Visualizer, you can add an HTTP publish-subscribe server channel.

To delete an HTTP publish-subscribe server channel:

  1. Be sure you log on to Oracle CEP Visualizer using an administration user.

    For more information, see:

  2. In the left pane, click the Domain > Server > Services > Http Pub/Sub server node, where Domain refers to the name of your Oracle CEP domain and Server refers to the name of the server instance.

    A table appears in the right pane with the list of HTTP pub-sub servers configured for Oracle CEP.

  3. In the right pane, click the name of the HTTP pub-sub server in the table. The default server is called pubsub.

  4. In the Channels table, click the name of the channel you want to delete.

  5. Click Delete Channel at the bottom of the pane.