Execution of the JavaScript initialize() function.

ENTERPRISE JAVA
Reusing CORBA Web Services With JavaScript

David Houlding
Listing 3. Execution of the JavaScript initialize() function.


// The manager of all CORBA requests.
var manager;

// One particular CORBA request. Could load more ...
var loginRequest;

function initialize() {
    // Set up own error handler.
    window.onerror = handleError

    // Get handles to CORBA request manager and load requests.
    manager = document.RequestManager;
    loginRequest = manager.loadRequest(
                               "SecurityServer1_login.ser","login");
}