JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS Intelligent Event Processor Service Engine Tutorial     Java CAPS Documentation
search filter icon
search icon

Document Information

Using the IEP Service Engine in a Project

Prerequisites

Software Needed for the Tutorial

Configuring and Starting the GlassFish Application Server

To Check the Status of the GlassFish Application Server

To Configure the GlassFish Application Server:

To Start the GlassFish Application Server:

Creating an Intelligent Event Processor Module Project

To Create an Intelligent Event Processing Project

To Add IEP Operators from the Palette to the Design Area

Creating and Deploying the Composite Application

To Create and Deploy the Composite Application

Testing the quotesJBI Application

To Create the Database Connection

To Create the Database Connection

Running the Java Project

To Run the Java Project

Summary

Creating an Intelligent Event Processor Module Project

You must create a new Intelligent Event Processing project to create an intelligent event processor.

Perform the following tasks to create project:

To Create an Intelligent Event Processing Project

  1. Choose File > New Project.
  2. Select SOA from Categories.
  3. Select Intelligent Event Processing Module from Projects, and click the Next button
  4. Input quotesIEP for the Project Name entry. If necessary, browse to the desired directory to save the Project. Then click Finish.
  5. In the Projects window, expand the quotesIEP project node, right-click the Process Files node and choose New > Intelligent Event Processor.
  6. Input quotes for the File Name field, and click Finish.
  7. The IDE does the following:
    1. Creates quotes.iep under the Source Packages > Default Package.
    2. Opens the quotes.iep file in the IEP design view.
    3. Opens the Palette.

To Add IEP Operators from the Palette to the Design Area

  1. Drag the Stream Input operator from the Input section of the Palette onto the design area. If the Palette is not visible, from the Window menu, choose the Palette item to display it.
  2. Drag the Tuple Based Window operator from the Stream Converter section of the Palette onto the design area.
  3. Drag the Table Output operator from the Output section of the Palette onto the design area.
  4. Connect the three operators by dragging lines between their ports; that is, connect StreamInput0 to TupleBasedWindow0 to TableOutput0.
  5. To configure operator StreamInput0, double-click the StreamInput0 operator.

    The Stream Input Property Editor appears, where you can add attributes to define the incoming stream's data format.

    1. To add the first attribute, select the cell under the column header named Attribute Name. Type Symbol.
    2. Select the cell under the column header Data Type. From the drop down list select Varchar.
    3. Select the cell under the column header Size. Type 10.
  6. Click the Add Attribute button to add another Attribute. A blank row appears below the Symbol attribute row.
  7. Type Price for column Attribute Name. Select Double for Data Type.
  8. Click OK to complete the task.
  9. To configure the operator TupleBasedWindow0 so that it will retain only the two latest quotes, double-click operator TupleBasedWindow0.

    The pop-up window called TupleBasedWindow Property Editor opens.

  10. In the Property Editor type 2 for the Size property and click OK.
  11. Double-click the operator TableOutput0 in the design area. The Table Output Property Editor appears.
  12. Check property Is Global, and change the value of property Global Id to Latest2Quotes. Click OK to finish this task.
  13. Click Save to save the IEP Process.

    Note that once you save the IEP process, the IDE creates the IEP WSDL file.