Object Models and Java

By Jean-Marie Chauvet and Marc Lerman

Dr. Dobb's Journal December 1997

(a)
import horb.orb.*;
//
private HorbURL m_url = new HorbURL("horb://" + "-" );
private  Account m_HORBAccount = new Account_Proxy
						( m_url );
(b)
m_HORBAccount.makeDeposit( 100.00 );

Example 4: (a) HORB defines a specific URL binding where the server location is encapsulated in the HorbURL object. (b) Once created, the proxy object is used as a local object that passes invocations and results back and forth to the remote object.

Back to Article


Copyright © 1997, Dr. Dobb's Journal