Apama 10.3 | Apama Capital Markets Foundation Documentation | Capital Markets Foundation | Order Management | Risk firewall | Connecting to risk firewalls | Sample code for connecting to risk firewall
 
Sample code for connecting to risk firewall
The following code provides an example of connecting to a risk firewall.
using com.apama.firewall.RiskFirewallFactory;
using com.apama.firewall.RiskFirewall;
 
monitor RiskFirewallExample4 {
context mainContext := context.current();
 
action onload() {
// Use a risk firewall factory to connect to
// a remote risk firewall instance called "MyFirewall".
RiskFirewall rfwRemote := (new RiskFirewallFactory).
connect( mainContext, "MyFirewall" );
 
// Use the remotely connected risk firewall to
// perform any required operations.
// Some operations may pend until the remotely connected
// risk firewall has been fully constructed and connected.
}
}

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.