RMI over IIOP example


Building this example

Typing make java (or vbmake on Windows) in the rmi-iiop subdirectory will this example to be built. This will include the following steps

1. Compile all the remote interfaces and the AccountData class.
2. Run the AccountManager interface (which refers to all the other classes and interfaces) through the java2iiop compiler
3. Compile the generated stubs and servants, the servant implementations for all the remote interfaces
4. Compile the Client and Server mainlines.

Running this example

To run the examples, first make sure that the VisiBroker Smart Agent (osagent executable) is running on your network. Then start the bank server using the command: Next, open some users'  bank account with initial balances or The example client first creates all the accounts specified with the appropriate balances by creating AccountData objects for each account and passing them to the AccountManager to create the accounts. It then confirms that the balance is correct on the created account. The client then queries the AccountManager for a list of all the accounts, and proceeds to credit $10 to each account. It then verifies if the new balance on the account is accurate.

Return to the top-level examples page.