#
# Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Distribution License v. 1.0, which is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#
# SPDX-License-Identifier: BSD-3-Clause
#

The is the demo sample that was shown in the session
"Reliable and Transacted Web Services between Java Technology-Based
Project Tango and Microsoft Indigo" TS-1603 at  Javaone 2006.

To run with glassfish
======================
1. Checkout and build the wsit workspace using
   cvs -d :pserver:yourid@cvs.dev.java.net:/cvs co wsit/wsit 
   cd wsit/wsit
   ant 
2. Set AS_HOME to point to the location where Glassfish is installed
   e.g export AS_HOME="...."
3. cd wsit/wsit/samples/ws-rm/javaone-2006-demo/rmdemo
4. ant server -Duseglassfish=true
5. Start glassfish by invoking $AS_HOME/bin/asadmin start-domain domain1
6. ant client
7. ant run



To run with tomcat
==================
1. Checkout and build the wsit workspace using
   cvs -d :pserver:yourid@cvs.dev.java.net:/cvs co wsit/wsit 
   cd wsit/wsit
   ant 
2. Set CATALINA_HOME to point to the location where Tomcat is installed
   e.g export CATALINA_HOME="...."
3. cd wsit/wsit/samples/ws-rm/javaone-2006-demo/rmdemo
4. ant server
5. Start tomcat by invoking $CATALINA_HOME/bin/startup.sh
6. ant client
7. ant run


Advanced feature
=================
To see the RM protocol and application messages flowing on the wire
Please uncomment the following lines 131-135 in build.xml


<!--Uncomment me if you want to see the detail
    WS RM protocol messages flowing on the wire

    <jvmarg value="-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true"/>
-->


