* @author <a href="mailto:tom.fennelly@jboss.com">tom.fennelly@jboss.com</a>
*/
public class WSAClient {
public static void main(String[] args) throws MalformedURLException, RemoteException {
StatefulEndpoint endpointPort1 = getEndpointPort();
StatefulEndpoint endpointPort2 = getEndpointPort();
endpointPort1.addItem("Ice Cream");
endpointPort1.addItem("Chocolate");
endpointPort2.addItem("Water");
endpointPort2.addItem("Bread");
System.out.println("\nT1. endpointPort1 basket: " + endpointPort1.getItems());
System.out.println("T1. endpointPort2 basket: " + endpointPort2.getItems());
System.out.println("\nT2. endpointPort1 checks out...");
endpointPort1.checkout();
System.out.println("\nT3. endpointPort1 basket: " + endpointPort1.getItems());
System.out.println("T3. endpointPort2 basket: " + endpointPort2.getItems());
System.out.println("\nT4. endpointPort2 checks out...");
endpointPort2.checkout();
System.out.println("\nT5. endpointPort1 basket: " + endpointPort1.getItems());
System.out.println("T5. endpointPort2 basket: " + endpointPort2.getItems());
}