Apama Documentation : Connecting Apama Applications to External Components : Using Standard Adapters : Using the Apama Database Connector : The ADBCHelper Application Programming Interface : Setting context
Setting context
By default the ADBCHelper API sends requests to an internal service monitor running in the main context with the EPL route command. However, if your application uses parallel processing and spawns to multiple contexts, you have to add code that identifies the main context so the ADBCHelper API can determine whether to send an event with route or with enqueue.
In applications with multiple contexts, use the following action to specify the main context before spawning.
setPrespawnContext( context c )
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback