Cheat Sheet for running the two Seam based demo applications (DVD Store and Hotels Booking Application) doing JBoss Federated SSO v1.0.0.Beta
Download the JEMS installer at http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=193295
Double click on the jar file or run java -jar jems-installer-1.2.0.BETA.jar
Install jboss-4.0.5.GA with EJB3 profile via the installer from above. Name the server configuration as "fedsso"
Download JBoss Federated SSO Framework v1.0.0.Beta Update 1 from http://labs.jboss.com/portal/jbosssso/downloads
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
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 .
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 .
Update the /etc/hosts file (C:\WINDOWS\system32\drivers\etc\hosts)
169.254.25.129 dvd.jboss.com 127.0.0.1 hotels.redhat.com
Remember the IP address should be the one for your ethernet/NIC card
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/
Start the hotels app (let it start fully)
asaldhana~/jboss-4.0.5.GA/bin>./run.sh -c fedsso -b hotels.redhat.com
Start the DVD app (in a different command window)
asaldhana~/jboss-4.0.5.GA/bin>./run.sh -b dvd.jboss.com -c fedsso1
Both the applications should start cleanly. If not, you may have something wrong.
Testing the applications
Go to your browser and http://dvd.jboss.com:8080/seam-dvd
Login as user with the combination (user1/password)
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 hotels.redhat.com 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.
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.
Enjoy the flash demo too.
Comments