EJB Architecture  «Prev 

EJB Clients and remote objects

  1. Clients,
  2. remote objects,
  3. services, and
  4. messages


1) The client will build a message that contains the request to retrieve the balance by invoking getBalance() and send it out across the network
The client will build a message that contains the request to retrieve the balance by invoking getBalance() and send it out across the network to the remote object.

2) The network passes the message to the remote object.
The network passes the message to the remote object.

3) The message invokes the getBalance() method of the BankAccount object.
The message invokes the getBalance() method of the BankAccount object.

4) The getBalance() method executes and retrieves the balance.
The getBalance() method executes and retrieves the balance.

5) The balance is returned by the remote object to the client over the network.
The balance is returned by the remote object to the client over the network.

6) The message with the balance is passed across the network
The message with the balance is passed across the network

7) The balance is passed from the network to the client.
The balance is passed from the network to the client