Client_125.javaAPI DocExample1302Sun Mar 03 05:28:40 GMT 2002com.titan.clients


public class Client_125 extends Object
Creates Customer, Cabin, Ship, and Cruise objects for use in this exercise and the following exercises

Fields Summary
Constructors Summary
Methods Summary
public static javax.naming.ContextgetInitialContext()

		Properties p = new Properties();
		return new InitialContext(p);
public static voidmain(java.lang.String[] args)

		Context jndiContext = getInitialContext();
		Object obj = jndiContext.lookup("TravelAgentHomeRemote");
		TravelAgentHomeRemote tahome = (TravelAgentHomeRemote) 
			javax.rmi.PortableRemoteObject.narrow(obj, TravelAgentHomeRemote.class);

		TravelAgentRemote tagent = tahome.create(null);

		System.out.println("Calling TravelAgentBean to create sample data..");

		Collection results = tagent.buildSampleData();									
		Iterator iterator = results.iterator();
		while (iterator.hasNext()) {
			String ss = (String)(;