|
Example 10 - Client Side Code
|
try
{
Context initialContext = new InitialContext();
Object t1 = initialContext.lookup("UserHome");
UserHome uHome = (UserHome)
PortableRemoteObject.narrow(t1, UserHome.class);
User terry = uHome.create("terry", "foobar");
terry.ChangePassword("foobar", "barfoo");
}
catch ( UserException e ) { ... }
catch ( CreateException e ) { .. }
catch ( RemoteException e ) { ... }
catch ( NamingException e ) { ... }
|