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.
}
}