Version 5

    Cheat Sheet for running the two Seam based demo applications (DVD Store and Hotels Booking Application) doing JBoss Federated SSO v1.0.0.Beta


    1. Download the JEMS installer at

    2. Double click on the jar file or run  java -jar jems-installer-1.2.0.BETA.jar

    3. Install jboss-4.0.5.GA with EJB3 profile via the installer from above. Name the server configuration as "fedsso"

    4. Download JBoss Federated SSO Framework v1.0.0.Beta Update 1 from

    5. Create a new server configuration in jboss-4.0.5.GA called as fedsso1

        Assume that you called the configuration during installation as "fedsso"
      $> ~/jboss-4.0.5.GA/server >   cp -R fedsso fedsso1


    6. Now copy the hotels demo application into jboss-4.0.5.GA/server/fedsso/deploy

      asaldhana~/jboss-4.0.5.GA/server/fedsso/deploy>cp -R ~/sso/jboss-sso-1.0.0.beta-update1/bin/seam-demo/booking/jboss-federation-server-exploded.ear .
      asaldhana~/jboss-4.0.5.GA/server/fedsso/deploy>cp -R ~/sso/jboss-sso-1.0.0.beta-update1/bin/seam-demo/booking/jboss-sso.sar/ .
      asaldhana~/jboss-4.0.5.GA/server/fedsso/deploy>cp -R ~/sso/jboss-sso-1.0.0.beta-update1/bin/seam-demo/booking/jboss-seam-booking.ear .
      asaldhana~/jboss-4.0.5.GA/server/fedsso/deploy>cp -R ~/sso/jboss-sso-1.0.0.beta-update1/bin/seam-demo/booking/bookings-ds.xml .


    7. Now copy the DVD store demo application into jboss-4.0.5.GA/server/fedsso1/deploy

      asaldhana~/jboss-4.0.5.GA/server/fedsso1/deploy>cp -R~/sso/jboss-sso-1.0.0.beta-update1/bin/seam-demo/dvd/jboss-federation-server-exploded.ear/ .
      asaldhana~/jboss-4.0.5.GA/server/fedsso1/deploy>cp -R ~/sso/jboss-sso-1.0.0.beta-update1/bin/seam-demo/dvd/jboss-sso.sar/ .
      asaldhana~/jboss-4.0.5.GA/server/fedsso1/deploy>cp -R ~/sso/jboss-sso-1.0.0.beta-update1/bin/seam-demo/dvd/jboss-seam-dvd.ear  .
      asaldhana~/jboss-4.0.5.GA/server/fedsso1/deploy>cp -R ~/sso/jboss-sso-1.0.0.beta-update1/bin/seam-demo/dvd/dvd-ds.xml  .


    8. Update the /etc/hosts file (C:\WINDOWS\system32\drivers\etc\hosts)

      Remember the IP address should be the one for your ethernet/NIC card

    9. Copy the patched tomcatutil.jar to your jboss-4.0.5.GA distro

      asaldhana~/jboss-4.0.5.GA/bin>cp ~/sso/jboss-sso-1.0.0.beta-update1/bin/patches/jboss-4.0.5/tomcat-util.jar ../server/fedsso/deploy/jbossweb-tomcat55.sar/
      asaldhana~/jboss-4.0.5.GA/bin>cp ~/sso/jboss-sso-1.0.0.beta-update1/bin/patches/jboss-4.0.5/tomcat-util.jar ../server/fedsso1/deploy/jbossweb-tomcat55.sar/


    10. Start the hotels app (let it start fully)

      asaldhana~/jboss-4.0.5.GA/bin>./ -c fedsso -b


    11. Start the DVD app (in a different command window)

      asaldhana~/jboss-4.0.5.GA/bin>./ -b -c fedsso1


    12. Both the applications should start cleanly. If not, you may have something wrong.


    Testing the applications

    1. Go to your browser and

    2. Login as user with the combination (user1/password)

    3. Once you check out the shopping cart, you will see a link at the bottom asking if you want to book a hotel room. Click on that and you will be taken to where you can click on "search hotels" button to get a list of hotels and then book with credit card number (4111111111111111) - four followed by fifteen ones.  Name can be anything.

    4. Here you can see seamless federated sso in action.  If you logout of any one application, you will be logged out of the other too.

    5. Enjoy the flash demo too.