O'Reilly logo

Getting Started with Oracle Event Processing 11g by Lloyd Williams, Robin J. Smith, Alexandre Alves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing an event bean to access a cache

Sometimes the logic that you want to implement goes beyond simply joining to the cache using CQL or listening for and pushing events to the cache. Perhaps, you want to implement one or more of the Java APIs for Coherence. A common example is to implement an invoke operation on the cache. You can do this by implementing an <wlevs:event-bean> event bean. The event bean implements both the StreamSource and StreamSink interfaces, so that you can receive incoming events, do whatever logic you need using the Coherence cache APIs, and then create your outgoing events to downstream channels. Here is an example of the event bean configuration:

<wlevs:event-bean id="GetAccountCustomers"class="com.oracle.cep.eventbean.GetCustomersForAccount"> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required