Oracle Fusion Middleware ?· Oracle Fusion Middleware Developing Applications for Event Processing with…

Download Oracle Fusion Middleware ?· Oracle Fusion Middleware Developing Applications for Event Processing with…

Post on 28-Jun-2018

220 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

<ul><li><p>Oracle Fusion MiddlewareDeveloping Applications for Event Processing with Oracle Stream</p><p>Analytics</p><p>12c (12.2.1.1.0)</p><p>E67725-02</p><p>August 2016</p><p>How to design and create Oracle Event Processing scalableapplications to process streaming events.</p></li><li><p>Oracle Fusion Middleware Developing Applications for Event Processing with Oracle Stream Analytics, 12c(12.2.1.1.0)</p><p>E67725-02</p><p>Copyright 2007, 2016, Oracle and/or its affiliates. All rights reserved.</p><p>Primary Author: Oracle Corporation</p><p>This software and related documentation are provided under a license agreement containing restrictions onuse and disclosure and are protected by intellectual property laws. Except as expressly permitted in yourlicense agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverseengineering, disassembly, or decompilation of this software, unless required by law for interoperability, isprohibited.</p><p>The information contained herein is subject to change without notice and is not warranted to be error-free. Ifyou find any errors, please report them to us in writing.</p><p>If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it onbehalf of the U.S. Government, then the following notice is applicable:</p><p>U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software,any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are"commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of theprograms, including any operating system, integrated software, any programs installed on the hardware,and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.No other rights are granted to the U.S. Government.</p><p>This software or hardware is developed for general use in a variety of information management applications.It is not developed or intended for use in any inherently dangerous applications, including applications thatmay create a risk of personal injury. If you use this software or hardware in dangerous applications, then youshall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure itssafe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of thissoftware or hardware in dangerous applications.</p><p>Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks oftheir respective owners.</p><p>Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks areused under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron,the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced MicroDevices. UNIX is a registered trademark of The Open Group.</p><p>This software or hardware and documentation may provide access to or information about content, products,and services from third parties. Oracle Corporation and its affiliates are not responsible for and expresslydisclaim all warranties of any kind with respect to third-party content, products, and services unlessotherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliateswill not be responsible for any loss, costs, or damages incurred due to your access to or use of third-partycontent, products, or services, except as set forth in an applicable agreement between you and Oracle.</p></li><li><p>Contents</p><p>Preface .............................................................................................................................................................. xiii</p><p>Audience ..................................................................................................................................................... xiii</p><p>Documentation Accessibility ................................................................................................................... xiii</p><p>Related Documents.................................................................................................................................... xiii</p><p>Conventions................................................................................................................................................ xiv</p><p>What's New in This Guide......................................................................................................................... xv</p><p>Part I Application Development</p><p>1 Introduction to Application Development</p><p>1.1 EPN Diagram.................................................................................................................................... 1-1</p><p>1.2 Component Configuration ............................................................................................................. 1-2</p><p>1.3 Streams and Relations ..................................................................................................................... 1-4</p><p>1.4 Application Scalability and High Availability ............................................................................ 1-5</p><p>1.5 Application Life Cycle..................................................................................................................... 1-5</p><p>1.6 API Overview................................................................................................................................... 1-7</p><p>1.7 Spring Framework......................................................................................................................... 1-12</p><p>1.8 OSGi Service Platform................................................................................................................... 1-12</p><p>2 Application and Resource Configuration</p><p>2.1 Application Configuration ............................................................................................................. 2-1</p><p>2.2 Assembly File Structure.................................................................................................................. 2-2</p><p>2.2.1 Nested Stages in an EPN Assembly File ........................................................................... 2-3</p><p>2.2.2 Foreign Stages in an EPN Assembly File .......................................................................... 2-4</p><p>2.3 Component Configuration File Structure .................................................................................... 2-5</p><p>2.4 Component and Server Configuration ......................................................................................... 2-5</p><p>2.5 Resource Access Configuration ..................................................................................................... 2-6</p><p>2.5.1 Resource Access Annotations............................................................................................. 2-7</p><p>2.5.2 Static Resource Injection...................................................................................................... 2-7</p><p>2.5.3 Dynamic Resource Injection ............................................................................................... 2-9</p><p>iii</p></li><li><p>2.5.4 Dynamic Resource Lookup Using JNDI ........................................................................... 2-9</p><p>2.5.5 Resource Name Resolution................................................................................................. 2-9</p><p>3 Events and Event Types</p><p>3.1 How Events Function...................................................................................................................... 3-1</p><p>3.2 Choose a Data Structure for the Event Type ............................................................................... 3-2</p><p>3.3 Design Constraints .......................................................................................................................... 3-3</p><p>3.4 Event Type Repository.................................................................................................................... 3-6</p><p>3.5 Properties .......................................................................................................................................... 3-6</p><p>3.6 Interval and Time Stamp Properties ............................................................................................. 3-7</p><p>3.6.1 Interval Properties................................................................................................................ 3-7</p><p>3.6.2 Time Stamp with Local Time Zone Properties ................................................................ 3-7</p><p>3.7 Create and Register a JavaBean Event Type ................................................................................ 3-8</p><p>3.7.1 Data Types............................................................................................................................. 3-8</p><p>3.7.2 Create a JavaBean Event Type Declaratively ................................................................... 3-8</p><p>3.7.3 Create a JavaBean Event Type Programmatically ........................................................... 3-9</p><p>3.7.4 Usages .................................................................................................................................... 3-9</p><p>3.8 Create and Register a Tuple Event Type.................................................................................... 3-10</p><p>3.8.1 Create a Tuple Event Type in the Assembly File........................................................... 3-11</p><p>3.8.2 Use a Tuple Event Type in Java Code ............................................................................. 3-11</p><p>3.8.3 Use a Tuple Event Type Instance in Oracle CQL Code ................................................ 3-12</p><p>3.9 Create and Register a Map Event Type ...................................................................................... 3-12</p><p>3.10 Access the Event Type Repository ............................................................................................ 3-14</p><p>3.10.1 EPN Assembly File........................................................................................................... 3-14</p><p>3.10.2 Spring-DM @ServiceReference Annotation.................................................................. 3-15</p><p>3.10.3 Oracle Stream Analytics @Service Annotation ............................................................ 3-15</p><p>3.11 Share Event Types Between Application Bundles.................................................................. 3-15</p><p>3.12 Control Event Type Instantiation with an Event Type Builder Class.................................. 3-15</p><p>3.12.1 Implement an Event Type Builder Class ...................................................................... 3-16</p><p>3.12.2 An Event Type that Uses an Event Type Builder ........................................................ 3-17</p><p>4 Adapters</p><p>4.1 Create Adapters ............................................................................................................................... 4-2</p><p>4.2 Cluster Distribution Service ........................................................................................................... 4-2</p><p>4.3 Password Encryption ...................................................................................................................... 4-3</p><p>4.4 JAXB Support ................................................................................................................................... 4-3</p><p>4.4.1 EclipseLink Moxy................................................................................................................. 4-3</p><p>4.4.2 APIs ........................................................................................................................................ 4-3</p><p>4.5 CSV Adapters ................................................................................................................................... 4-6</p><p>4.6 EDN Adapters .................................................................................................................................. 4-7</p><p>4.6.1 Usage ...................................................................................................................................... 4-8</p><p>4.6.2 Create EDN Adapters .......................................................................................................... 4-8</p><p>4.7 File Adapter ...................................................................................................................................... 4-9</p><p>iv</p></li><li><p>4.8 HTTP Publish-Subscribe Adapter ................................................................................................. 4-9</p><p>4.9 HTTP Publish-Subscribe Adapter Custom Converter Bean.................................................... 4-11</p><p>4.9.1 Bayeux Protocol .................................................................................................................. 4-11</p><p>4.9.2 Create a Custom Converter Bean..................................................................................... 4-11</p><p>4.10 JMS Adapters................................................................................................................................ 4-12</p><p>4.10.1 Service Providers .............................................................................................................. 4-13</p><p>4.10.2 Inbound Adapter Configuration.................................................................................... 4-13</p><p>4.10.3 Outbound Adapter Configuration................................................................................. 4-14</p><p>4.11 JMS Custom Message Converter Bean ..................................................................................... 4-15</p><p>4.11.1 Implement Interfaces ....................................................................................................... 4-15</p><p>4.11.2 Implement the Inbound JMS Adapter........................................................................... 4-15</p><p>4.11.3 Implement the Outbound JMS Adapter ....................................................................... 4-16</p><p>4.12 Oracle Business Rules Adapter.................................................................................................. 4-17</p><p>4.13 QuickFix Adapter ........................................................................................................................ 4-19</p><p>4.13.1 Supported QuickFIX Versions and Unsupported Message Types ........................... 4-19</p><p>4.13.2 Configure QuickFix Adapters ........................................................................................ 4-20</p><p>4.13.3 Configure...</p></li></ul>

Recommended

View more >