Apama 10.3 | Apama Documentation | Connecting Apama Applications to External Components | Standard IAF Plug-ins | The Database Connector IAF Adapter (ADBC) | 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 statement. 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-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.