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-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback