[jbpm-commits] JBoss JBPM SVN: r5554 - in projects/demos/trainticket-demo/user_registration/trunk: .settings and 35 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Aug 26 12:52:38 EDT 2009


Author: jbarrez
Date: 2009-08-26 12:52:36 -0400 (Wed, 26 Aug 2009)
New Revision: 5554

Added:
   projects/demos/trainticket-demo/user_registration/trunk/.classpath
   projects/demos/trainticket-demo/user_registration/trunk/.project
   projects/demos/trainticket-demo/user_registration/trunk/.settings/
   projects/demos/trainticket-demo/user_registration/trunk/.settings/org.hibernate.eclipse.console.prefs
   projects/demos/trainticket-demo/user_registration/trunk/.settings/org.jboss.tools.seam.core.prefs
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/META-INF/
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/META-INF/persistence.properties
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/commons-logging.properties
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/bootstrap-beans.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/jboss-service.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/jbossjta-properties.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/login-config.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/props/
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/props/messaging-roles.properties
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/props/messaging-users.properties
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/ejb3-interceptors-aop.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/hsqldb-ds.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/jboss-local-jdbc.rar
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/jboss-xa-jdbc.rar
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/jms-ra.rar
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/connection-factories-service.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/destinations-service.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/hsqldb-persistence-service.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/jms-ds.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/legacy-service.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/messaging-service.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/remoting-service.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/remoting-service.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/aspect-deployer-beans.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/ejb-deployer-beans.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/ejb3-deployers-beans.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/jboss-aspect-library-beans.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/jca-deployers-beans.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/metadata-beans.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/security-deployer-beans.xml
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/jndi.properties
   projects/demos/trainticket-demo/user_registration/trunk/bootstrap/log4j.xml
   projects/demos/trainticket-demo/user_registration/trunk/build-dev.properties
   projects/demos/trainticket-demo/user_registration/trunk/build-prod.properties
   projects/demos/trainticket-demo/user_registration/trunk/build.properties
   projects/demos/trainticket-demo/user_registration/trunk/build.xml
   projects/demos/trainticket-demo/user_registration/trunk/classes/
   projects/demos/trainticket-demo/user_registration/trunk/debug-glassfish-user_registration.launch
   projects/demos/trainticket-demo/user_registration/trunk/debug-jboss-user_registration.launch
   projects/demos/trainticket-demo/user_registration/trunk/deployed-jars-ear.list
   projects/demos/trainticket-demo/user_registration/trunk/deployed-jars-war.list
   projects/demos/trainticket-demo/user_registration/trunk/explode.launch
   projects/demos/trainticket-demo/user_registration/trunk/glassfish-build.xml
   projects/demos/trainticket-demo/user_registration/trunk/glassfish-readme.txt
   projects/demos/trainticket-demo/user_registration/trunk/hibernate-console.properties
   projects/demos/trainticket-demo/user_registration/trunk/lib/
   projects/demos/trainticket-demo/user_registration/trunk/lib/FastInfoset.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/activation.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/ant-antlr.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/antlr-runtime.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/antlr.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/bsh.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/cglib-nodep.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/commons-beanutils.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/commons-codec.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/commons-collections.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/commons-digester.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/commons-httpclient.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/commons-io.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/commons-lang.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/commons-logging.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/concurrent.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/core.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/darkX.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/dbunit.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/dom4j.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/drools-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/drools-compiler.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/drools-core.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/drools-decisiontables.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/drools-templates.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/ehcache.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/ejb-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/ejb3-persistence.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/el-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/emma.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/gen/
   projects/demos/trainticket-demo/user_registration/trunk/lib/glassX.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/groovy-all.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/guice.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/gwt-servlet.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-annotations.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-commons-annotations.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-core.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-entitymanager.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-search.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-validator.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/hsqldb.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/htmlparser.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/interop/
   projects/demos/trainticket-demo/user_registration/trunk/lib/itext-rtf.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/itext.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/janino.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/javassist.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jaxb-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jaxrs-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jaxws-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-cache.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-common-core.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-deployers-client-spi.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-deployers-core-spi.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-el.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-embedded-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-jmx.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-logging-spi.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-debug.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-excel.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-ioc.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-jul.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-mail.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-pdf.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-remoting.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-rss.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-ui.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-system.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-vfs.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jbosscache-core.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jbpm-jpdl.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jcommon.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jettison.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jfreechart.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jgroups.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jms.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/joda-time.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jsf-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jsf-facelets.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jsf-impl.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jsp-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jsr181-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jsr250-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jta.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/junit.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/jxl.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/laguna.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/log4j.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/lucene-core.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/mail.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/meldware-mailapi.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/meldware-mailjmx.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/metawidget-backend.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/metawidget-frontend.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/metawidget.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/mvel2.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/openid4java.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/openxri-client.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/openxri-syntax.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/persistence-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/portlet-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/quartz.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/resteasy-atom-provider.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/resteasy-jaxb-provider.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/resteasy-jaxrs.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/richfaces-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/richfaces-impl.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/richfaces-ui.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/saaj-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/servlet-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/sjsxp.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/slf4j-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/slf4j-log4j12.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/spring.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-debug-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-excel-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-ioc-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-mail-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-pdf-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-remoting-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-resteasy-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-rss-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-ui-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-wicket-ant-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-wicket-sources.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/stax-api.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/test/
   projects/demos/trainticket-demo/user_registration/trunk/lib/test/hibernate-all.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/test/jboss-embedded-all.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/test/thirdparty-all.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/testng.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/urlrewritefilter.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/wicket-datetime.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/wicket-extensions.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/wicket-ioc.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/wicket.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/xml-apis.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/xpp3_min.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/xstream.jar
   projects/demos/trainticket-demo/user_registration/trunk/lib/yarfraw.jar
   projects/demos/trainticket-demo/user_registration/trunk/nbproject/
   projects/demos/trainticket-demo/user_registration/trunk/nbproject/debug-jboss.properties
   projects/demos/trainticket-demo/user_registration/trunk/nbproject/ide-file-targets.xml
   projects/demos/trainticket-demo/user_registration/trunk/nbproject/project.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/
   projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/
   projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/application.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/ejb-jar.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/jboss-app.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/orm.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-dev.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-prod.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-test.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/
   projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/components.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/faces-config.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/pages.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/web.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/components-dev.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/components-prod.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/components-test.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/glassfish-resources-dev.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/glassfish-resources-prod.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/import-dev.sql
   projects/demos/trainticket-demo/user_registration/trunk/resources/import-prod.sql
   projects/demos/trainticket-demo/user_registration/trunk/resources/import-test.sql
   projects/demos/trainticket-demo/user_registration/trunk/resources/messages_bg.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/messages_de.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/messages_en.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/messages_fr.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/messages_it.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/messages_tr.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/seam-gen.reveng.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/seam.properties
   projects/demos/trainticket-demo/user_registration/trunk/resources/security.drl
   projects/demos/trainticket-demo/user_registration/trunk/resources/user_registration-dev-ds.xml
   projects/demos/trainticket-demo/user_registration/trunk/resources/user_registration-prod-ds.xml
   projects/demos/trainticket-demo/user_registration/trunk/seam-gen.properties
   projects/demos/trainticket-demo/user_registration/trunk/src/
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AddCredits.java
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AddCreditsAction.java
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/Authenticator.java
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AuthenticatorBean.java
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/Register.java
   projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/RegisterAction.java
   projects/demos/trainticket-demo/user_registration/trunk/src/main/
   projects/demos/trainticket-demo/user_registration/trunk/src/main/org/
   projects/demos/trainticket-demo/user_registration/trunk/src/main/org/jbpm/
   projects/demos/trainticket-demo/user_registration/trunk/src/main/org/jbpm/trainticketdemo/
   projects/demos/trainticket-demo/user_registration/trunk/src/main/org/jbpm/trainticketdemo/userregistration/
   projects/demos/trainticket-demo/user_registration/trunk/src/main/org/jbpm/trainticketdemo/userregistration/entity/
   projects/demos/trainticket-demo/user_registration/trunk/src/main/org/jbpm/trainticketdemo/userregistration/entity/User.java
   projects/demos/trainticket-demo/user_registration/trunk/src/test/
   projects/demos/trainticket-demo/user_registration/trunk/src/test/org/
   projects/demos/trainticket-demo/user_registration/trunk/src/test/org/jbpm/
   projects/demos/trainticket-demo/user_registration/trunk/src/test/org/jbpm/trainticketdemo/
   projects/demos/trainticket-demo/user_registration/trunk/src/test/org/jbpm/trainticketdemo/test/
   projects/demos/trainticket-demo/user_registration/trunk/src/test/readme.txt
   projects/demos/trainticket-demo/user_registration/trunk/user_registration.iml
   projects/demos/trainticket-demo/user_registration/trunk/user_registration.ipr
   projects/demos/trainticket-demo/user_registration/trunk/user_registration.launch
   projects/demos/trainticket-demo/user_registration/trunk/validate.xml
   projects/demos/trainticket-demo/user_registration/trunk/view/
   projects/demos/trainticket-demo/user_registration/trunk/view/error.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/favicon.ico
   projects/demos/trainticket-demo/user_registration/trunk/view/home.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/img/
   projects/demos/trainticket-demo/user_registration/trunk/view/img/btnmanageroles.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/btnmanageusers.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/btnnewpermission.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/btnnewrole.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/btnnewuser.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/dtpick.gif
   projects/demos/trainticket-demo/user_registration/trunk/view/img/error.gif
   projects/demos/trainticket-demo/user_registration/trunk/view/img/false.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/manytoone.gif
   projects/demos/trainticket-demo/user_registration/trunk/view/img/msgerror.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/msginfo.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/msgwarn.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/onetomany.gif
   projects/demos/trainticket-demo/user_registration/trunk/view/img/seamlogo.png
   projects/demos/trainticket-demo/user_registration/trunk/view/img/true.png
   projects/demos/trainticket-demo/user_registration/trunk/view/index.html
   projects/demos/trainticket-demo/user_registration/trunk/view/layout/
   projects/demos/trainticket-demo/user_registration/trunk/view/layout/display.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/layout/edit.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/layout/menu.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/layout/sort.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/layout/template.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/login.page.xml
   projects/demos/trainticket-demo/user_registration/trunk/view/login.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/register.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/registered.xhtml
   projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/
   projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/theme.css
   projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/theme.xcss
   projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/useradmin.css
   projects/demos/trainticket-demo/user_registration/trunk/view/user_details.xhtml
Log:
Initial import of SEAM user registration application

Added: projects/demos/trainticket-demo/user_registration/trunk/.classpath
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/.classpath	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/.classpath	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+    <classpathentry kind="src" output="classes/main" path="src/main"/>
+    <classpathentry kind="src" output="classes/hot" path="src/hot"/>
+    <classpathentry kind="src" output="classes/test" path="src/test"/>
+    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+    <classpathentry kind="lib" path="bootstrap"/>
+    <classpathentry kind="lib" path="lib/hibernate-validator.jar"/>
+    <classpathentry kind="lib" path="lib/hibernate-core.jar"/>
+    <classpathentry kind="lib" path="lib/hibernate-annotations.jar"/>
+    <classpathentry kind="lib" path="lib/hibernate-commons-annotations.jar"/>
+    <classpathentry kind="lib" path="lib/hibernate-entitymanager.jar"/>
+    <classpathentry kind="lib" path="lib/jboss-seam.jar" sourcepath="lib/src/jboss-seam-sources.jar"/>
+    <classpathentry kind="lib" path="lib/jboss-seam-ui.jar" sourcepath="lib/src/jboss-seam-ui-sources.jar"/>
+    <classpathentry kind="lib" path="lib/jboss-seam-debug.jar"/>
+    <classpathentry kind="lib" path="lib/jboss-cache.jar"/>
+    <classpathentry kind="lib" path="lib/jbpm-jpdl.jar"/>
+    <classpathentry kind="lib" path="lib/antlr.jar"/>
+    <classpathentry kind="lib" path="lib/jgroups.jar"/>
+    <classpathentry kind="lib" path="lib/jsf-facelets.jar"/>
+    <classpathentry kind="lib" path="lib/jsf-api.jar"/>
+    <classpathentry kind="lib" path="lib/servlet-api.jar"/>
+    <classpathentry kind="lib" path="lib/testng.jar"/>
+    <classpathentry kind="lib" path="lib/jboss-el.jar"/>
+    <classpathentry kind="lib" path="lib/el-api.jar"/>
+    <classpathentry kind="lib" path="lib/mvel2.jar"/>
+    <classpathentry kind="lib" path="lib/drools-api.jar"/>
+    <classpathentry kind="lib" path="lib/drools-core.jar"/>
+    <classpathentry kind="lib" path="lib/drools-compiler.jar"/>
+    <classpathentry kind="lib" path="lib/drools-decisiontables.jar"/>
+    <classpathentry kind="lib" path="lib/drools-templates.jar"/>
+    <classpathentry kind="lib" path="lib/janino.jar"/>
+    <classpathentry kind="lib" path="lib/antlr-runtime.jar"/>
+    <classpathentry kind="lib" path="lib/mail.jar"/>
+    <classpathentry kind="lib" path="lib/persistence-api.jar" />
+    <classpathentry kind="lib" path="lib/ejb-api.jar" />
+    <classpathentry kind="lib" path="lib/jsr250-api.jar" />
+    <classpathentry kind="lib" path="lib/jta.jar" />
+    <classpathentry kind="lib" path="lib/core.jar"/>
+    <classpathentry kind="lib" path="lib/jboss-embedded-api.jar"/> 
+    <classpathentry kind="lib" path="lib/hibernate-search.jar" />
+    <classpathentry kind="lib" path="lib/richfaces-api.jar" />
+    <classpathentry kind="lib" path="lib/hsqldb.jar"/>
+    <classpathentry kind="lib" path="lib/lucene-core.jar" />
+    <classpathentry kind="output" path="test-build"/>
+</classpath>

Added: projects/demos/trainticket-demo/user_registration/trunk/.project
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/.project	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/.project	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>user_registration</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+			<triggers>auto,full,incremental,</triggers>
+			<arguments>
+				<dictionary>
+					<key>LaunchConfigHandle</key>
+					<value>&lt;project&gt;/explode.launch</value>
+				</dictionary>
+			</arguments>
+		</buildCommand>
+      <buildCommand>
+         <name>org.jboss.tools.seam.core.seambuilder</name>
+         <arguments>
+         </arguments>
+      </buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.hibernate.eclipse.console.hibernateNature</nature>
+		<nature>org.jboss.tools.seam.core.seamnature</nature>
+	</natures>
+</projectDescription>

Added: projects/demos/trainticket-demo/user_registration/trunk/.settings/org.hibernate.eclipse.console.prefs
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/.settings/org.hibernate.eclipse.console.prefs	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/.settings/org.hibernate.eclipse.console.prefs	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,4 @@
+#Fri Feb 23 14:56:36 CET 2007
+default.configuration=user_registration
+eclipse.preferences.version=1
+hibernate3.enabled=true

Added: projects/demos/trainticket-demo/user_registration/trunk/.settings/org.jboss.tools.seam.core.prefs
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/.settings/org.jboss.tools.seam.core.prefs	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/.settings/org.jboss.tools.seam.core.prefs	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,16 @@
+#Wed Aug 06 19:35:32 BST 2008
+action.package=org.jbpm.trainticketdemo.userregistration.sessionbeans
+action.sources=/user_registration/src/hot
+eclipse.preferences.version=1
+model.package=org.jbpm.trainticketdemo.userregistration.entity
+model.sources=/user_registration/src/main
+seam.ejb.project=user_registration
+seam.project.connection.profile=
+seam.project.deployment.type=ear
+seam.project.settings.version=1.1
+seam.project.web.root.folder=/user_registration/view
+seam.runtime.name=
+seam.test.creating=true
+seam.test.project=user_registration
+test.package=org.jbpm.trainticketdemo.test
+test.sources=/user_registration/src/test

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/META-INF/persistence.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/META-INF/persistence.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/META-INF/persistence.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,17 @@
+hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup
+#hibernate.connection.release_mode=after_statement
+#hibernate.transaction.flush_before_completion=false
+#hibernate.transaction.auto_close_session=false
+#hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory
+#hibernate.hbm2ddl.auto=create-drop
+#hibernate.hbm2ddl.auto=create
+hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
+# Clustered cache with TreeCache
+#hibernate.cache.provider_class=org.jboss.ejb3.entity.TreeCacheProviderHook
+#hibernate.treecache.mbean.object_name=jboss.cache:service=EJB3EntityTreeCache
+#hibernate.dialect=org.hibernate.dialect.HSQLDialect
+hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
+hibernate.bytecode.use_reflection_optimizer=false
+# I don't think this is honored, but EJB3Deployer uses it
+hibernate.bytecode.provider=javassist
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/commons-logging.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/commons-logging.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/commons-logging.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,5 @@
+# The Sun JSF RI bundles and wraps commons-logging, which, for unknown reasons, disables any other
+# commons-logging (my guess: the LogFactoryImpl detection routine is broken). This configuration
+# file makes it work again (also for unknown reasons).
+org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/bootstrap-beans.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/bootstrap-beans.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/bootstrap-beans.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,238 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   The bootstrap of the server
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <bean name="SystemProperties" class="org.jboss.embedded.util.SystemProperties">
+      <property name="properties">
+         <map keyClass="java.lang.String" valueClass="java.lang.String">
+            <entry>
+               <key>jboss.bind.address</key>
+               <value>127.0.0.1</value>
+            </entry>
+            <entry>
+               <key>com.arjuna.ats.arjuna.common.propertiesFile</key>
+               <value>${jboss.home.dir}/conf/jbossjta-properties.xml</value>
+            </entry>
+            <entry>
+               <key>com.arjuna.ats.arjuna.objectstore.objectStoreDir</key>
+               <value>${jboss.server.data.dir}/ObjectStore</value>
+            </entry>
+         </map>
+      </property>
+   </bean>
+
+   <!-- The legacy JMX kernel -->
+   <bean name="JMXKernel" class="org.jboss.embedded.adapters.JMXKernel">
+      <property name="kernel">
+         <inject bean="jboss.kernel:service=Kernel"/>
+      </property>
+      <property name="serverConfig">
+         <inject bean="ServerConfig"/>
+      </property>
+   </bean>
+
+   <!-- The MainDeployer -->
+   <bean name="MainDeployer" class="org.jboss.deployers.plugins.main.MainDeployerImpl">
+      <property name="structuralDeployers"><inject bean="StructuralDeployers"/></property>
+      <property name="deployers"><inject bean="Deployers"/></property>
+   </bean>
+
+   <!-- The holder for deployers that determine structure -->
+   <bean name="StructuralDeployers" class="org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl">
+      <property name="structureBuilder">
+         <!-- The consolidator of the structure information -->
+         <bean name="StructureBuilder" class="org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder"/>
+      </property>
+      <!-- Accept any implementor of structure deployer -->
+      <incallback method="addDeployer"/>
+      <uncallback method="removeDeployer"/>
+   </bean>
+      
+   <!-- The holder for deployers that do real deployment -->
+   <bean name="Deployers" class="org.jboss.deployers.plugins.deployers.DeployersImpl">
+      <constructor><parameter><inject bean="jboss.kernel:service=KernelController"/></parameter></constructor>
+      <!-- Accept any implementor of deployer -->
+      <incallback method="addDeployer"/>
+      <uncallback method="removeDeployer"/>
+   </bean>
+
+   <!-- A declared structure descriptor deployer -->
+   <bean name="DeclaredStructure" class="org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure"></bean>
+
+    <!-- JAR Structure -->
+    <bean name="JARStructure" class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure">
+       <!-- Unless specified the default list of suffixes is .zip, .ear, .jar, ,.rar, .war, .sar, .har, .aop -->
+       <constructor>
+          <parameter>
+             <set elementClass="java.lang.String">
+                <value>.zip</value>
+                <value>.ear</value>
+                <value>.jar</value>
+                <value>.rar</value>
+                <value>.war</value>
+                <value>.sar</value>
+                <value>.har</value>
+                <value>.aop</value>
+                <value>.deployer</value>
+                <value>.beans</value>
+             </set>
+          </parameter>
+       </constructor>
+       <property name="candidateStructureVisitorFactory">
+          <!-- Any file that is not an ordinary directory is a candidate -->
+          <bean name="JARStructureCandidates" class="org.jboss.deployers.vfs.spi.structure.helpers.DefaultCandidateStructureVisitorFactory">
+             <!-- A filter to exclude some obvious non-subdeployments -->
+             <property name="filter">
+                <bean name="JARFilter" class="org.jboss.virtual.plugins.vfs.helpers.SuffixesExcludeFilter">
+                   <constructor><parameter>
+                      <list elementClass="java.lang.String">
+                         <!-- Exclude class files as subdeployments -->
+                         <value>.class</value>
+                      </list>
+                   </parameter></constructor>
+                </bean>
+             </property>
+          </bean>
+       </property>
+    </bean>
+
+    <!-- File Structure -->
+    <bean name="FileStructure" class="org.jboss.deployers.vfs.plugins.structure.file.FileStructure">
+       <!-- Unless specified the default list of suffixes is -service.xml, -beans.xml, -ds.xml, -aop.xml -->
+       <constructor>
+          <parameter>
+             <set elementClass="java.lang.String">
+                <value>-service.xml</value>
+                <value>-beans.xml</value>
+                <value>-ds.xml</value>
+                <value>-aop.xml</value>
+             </set>
+          </parameter>
+       </constructor>
+    </bean>
+
+   <!-- POJO Deployment -->
+   <bean name="BeanDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanDeployer">
+      <property name="type">beans</property>
+   </bean>
+   <bean name="KernelDeploymentDeployer" class="org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer">
+      <property name="type">beans</property>
+   </bean>
+   <bean name="BeanMetaDataDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer">
+      <constructor><parameter><inject bean="jboss.kernel:service=Kernel"/></parameter></constructor>
+      <property name="type">beans</property>
+   </bean>
+
+   <!-- JMX Deployment -->
+   <bean name="SARDeployer" class="org.jboss.system.deployers.SARDeployer">
+      <property name="type">sar</property>
+   </bean>
+   <bean name="ServiceClassLoaderDeployer" class="org.jboss.embedded.ClassLoaderDeployer"/>
+   <bean name="ServiceDeploymentDeployer" class="org.jboss.system.deployers.ServiceDeploymentDeployer">
+       <property name="type">sar</property>
+   </bean>
+   <bean name="ServiceDeployer" class="org.jboss.system.deployers.ServiceDeployer">
+       <constructor><parameter><inject bean="JMXKernel" property="serviceController"/></parameter></constructor>
+       <property name="type">sar</property>
+   </bean>
+
+   <!-- A filter for excluding files from the scanner -->
+   <bean name="DeploymentFilter" class="org.jboss.virtual.plugins.vfs.helpers.ExtensibleFilter">
+      <!-- Files starting with theses strings are ignored -->
+      <property name="prefixes">#,%,\,,.,_$</property>
+      <!-- Files ending with theses strings are ignored -->
+      <property name="suffixes">#,$,%,~,\,v,.BAK,.bak,.old,.orig,.tmp,.rej,.sh</property>
+      <!-- Files matching with theses strings are ignored -->
+      <property name="matches">.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags</property>
+   </bean>
+
+   <!--
+        JNDI Initialization of basic beans (NO REMOTING)
+     -->
+   <bean name="Naming" class="org.jnp.server.SingletonNamingServer"/>
+   <bean name="java:comp" class="org.jboss.naming.JavaCompInitializer"/>
+
+   <!-- register Naming bean with dispatcher just in case we want to have a remote JNDI connection -->
+   <bean name="JndiRegistration" class="org.jboss.aspects.remoting.DispatcherRegistration">
+      <property name="oid">JNDI</property>
+      <property name="target"><inject bean="Naming"/></property>
+   </bean>
+
+   <!--
+        Bootstrap old JMX-based core services
+        setup deployers
+        setup deploy/ directory
+     -->
+   <bean name="ResourcesToDeploy" class="org.jboss.embedded.DeploymentScanner">
+      <property name="filter">
+         <inject bean="DeploymentFilter"/>
+      </property>
+      <property name="mainDeployer">
+         <inject bean="MainDeployer"/>
+      </property>
+      <property name="kernel">
+         <inject bean="jboss.kernel:service=Kernel"/>
+      </property>
+      <property name="resources">
+         <list elementClass="java.lang.String">
+            <value>${jboss.embedded.bootstrap.resource.path}conf/jboss-service.xml</value>
+         </list>
+      </property>
+   </bean>
+
+   <bean name="UserTransaction" class="org.jboss.embedded.adapters.LocalOnlyUserTransaction"/>
+
+   <bean name="UserTransactionBinding" class="org.jboss.naming.JndiBinder">
+      <property name="target">
+         <inject bean="UserTransaction"/>
+      </property>
+      <property name="bindTo">UserTransaction</property>
+      <property name="serializable">false</property>
+   </bean>
+
+   <!-- FIXME EMB-2 -->
+   <bean name="UserTransactionBinding2" class="org.jboss.naming.JndiBinder">
+      <property name="target">
+         <inject bean="UserTransaction"/>
+      </property>
+      <property name="bindTo">java:comp/UserTransaction</property>
+      <property name="serializable">false</property>
+   </bean>
+
+
+   <bean name="ResourcesToDeploy2" class="org.jboss.embedded.DeploymentScanner">
+      <property name="filter">
+         <inject bean="DeploymentFilter"/>
+      </property>
+      <property name="mainDeployer">
+         <inject bean="MainDeployer"/>
+      </property>
+      <property name="kernel">
+         <inject bean="jboss.kernel:service=Kernel"/>
+      </property>
+      <property name="directoriesByResource">
+         <list elementClass="java.lang.String">
+            <value>${jboss.embedded.bootstrap.resource.path}conf/jboss-service.xml/../deployers</value>
+         </list>
+      </property>
+   </bean>
+   <bean name="ResourcesToDeploy3" class="org.jboss.embedded.DeploymentScanner">
+      <property name="filter">
+         <inject bean="DeploymentFilter"/>
+      </property>
+      <property name="mainDeployer">
+         <inject bean="MainDeployer"/>
+      </property>
+      <property name="kernel">
+         <inject bean="jboss.kernel:service=Kernel"/>
+      </property>
+      <property name="directoriesByResource">
+         <list elementClass="java.lang.String">
+            <value>${jboss.embedded.bootstrap.resource.path}conf/jboss-service.xml/../deploy</value>
+         </list>
+      </property>
+   </bean>
+</deployment>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/jboss-service.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/jboss-service.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/jboss-service.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id: jboss-service.xml 6916 2007-12-05 17:53:00Z pmuir $ -->
+
+<!-- ===================================================================== -->
+<!--  JBoss Server Configuration                                           -->
+<!-- ===================================================================== -->
+
+<server>
+
+   <!-- ==================================================================== -->
+   <!-- Main Deployer                                                        -->
+   <!-- ==================================================================== -->
+   <mbean code="org.jboss.deployment.MainDeployer"
+          name="jboss.system:service=MainDeployer">
+   	<!-- This is used to delegate the deployment handling -->
+      <attribute name="KernelMainDeployer"><inject bean="MainDeployer" /></attribute>
+   </mbean>
+
+   <!-- ==================================================================== -->
+   <!-- SAR Deployer                                                        -->
+   <!-- ==================================================================== -->
+   <mbean code="org.jboss.deployment.SARDeployer"
+          name="jboss.system:service=ServiceDeployer">
+      <depends>jboss.system:service=MainDeployer</depends>
+   </mbean>
+
+   <!-- ==================================================================== -->
+   <!-- Security                                                             -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.security.plugins.SecurityConfig"
+      name="jboss.security:service=SecurityConfig">
+      <attribute name="LoginConfig">jboss.security:service=XMLLoginConfig</attribute>
+      <depends>jboss.security:service=XMLLoginConfig</depends>
+   </mbean>
+   <mbean code="org.jboss.security.auth.login.XMLLoginConfig"
+      name="jboss.security:service=XMLLoginConfig">
+      <attribute name="ConfigResource">${jboss.embedded.bootstrap.resource.path}conf/login-config.xml</attribute>
+   </mbean>
+
+   <!-- JAAS security manager and realm mapping -->
+   <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
+      name="jboss.security:service=JaasSecurityManager">
+      <!-- A flag which indicates whether the SecurityAssociation server mode
+      is set on service creation. This is true by default since the
+      SecurityAssociation should be thread local for multi-threaded server
+      operation.
+      -->
+      <attribute name="ServerMode">true</attribute>
+      <attribute name="SecurityManagerClassName">org.jboss.security.plugins.JaasSecurityManager</attribute>
+      <attribute name="DefaultUnauthenticatedPrincipal">anonymous</attribute> 
+      <!-- DefaultCacheTimeout: Specifies the default timed cache policy timeout
+      in seconds.
+      If you want to disable caching of security credentials, set this to 0 to
+      force authentication to occur every time. This has no affect if the
+      AuthenticationCacheJndiName has been changed from the default value.
+      -->
+       <attribute name="DefaultCacheTimeout">1800</attribute>
+      <!-- DefaultCacheResolution: Specifies the default timed cache policy
+      resolution in seconds. This controls the interval at which the cache
+      current timestamp is updated and should be less than the DefaultCacheTimeout
+      in order for the timeout to be meaningful. This has no affect if the
+      AuthenticationCacheJndiName has been changed from the default value.
+      -->
+      <attribute name="DefaultCacheResolution">60</attribute>
+      <!-- DeepCopySubjectMode: This set the copy mode of subjects done by the
+      security managers to be deep copies that makes copies of the subject
+      principals and credentials if they are cloneable. It should be set to
+      true if subject include mutable content that can be corrupted when
+      multiple threads have the same identity and cache flushes/logout clearing
+      the subject in one thread results in subject references affecting other
+      threads.
+      -->
+      <attribute name="DeepCopySubjectMode">false</attribute>
+   </mbean> 
+
+   <!-- Authorization manager-->
+   <mbean code="org.jboss.security.plugins.AuthorizationManagerService"
+      name="jboss.security:service=AuthorizationManager"> 
+      <attribute name="AuthorizationManagerClassName">org.jboss.security.plugins.JBossAuthorizationManager</attribute>
+   </mbean>
+
+   <!-- ==================================================================== -->
+   <!-- Transactions                                                         -->
+   <!-- ==================================================================== -->
+   
+   <!-- JBossTS JTA -->
+   <mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"
+      name="jboss:service=TransactionManager">
+      <attribute name="TransactionTimeout">300</attribute>
+      <attribute name="ObjectStoreDir">${jboss.server.data.dir}/tx-object-store</attribute>      
+   </mbean>
+
+   <mbean code="org.jboss.util.threadpool.BasicThreadPool"
+          name="jboss.jca:service=WorkManagerThreadPool">
+      <!-- The name that appears in thread names -->
+      <attribute name="Name">WorkManager</attribute>
+      <!-- The maximum amount of work in the queue -->
+      <attribute name="MaximumQueueSize">1024</attribute>
+      <!-- The maximum number of active threads -->
+      <attribute name="MaximumPoolSize">100</attribute>
+      <!-- How long to keep threads alive after their last work (default one minute) -->
+      <attribute name="KeepAliveTime">60000</attribute>
+   </mbean>
+
+   <mbean code="org.jboss.resource.work.JBossWorkManager"
+          name="jboss.jca:service=WorkManager">
+      <depends optional-attribute-name="ThreadPoolName">jboss.jca:service=WorkManagerThreadPool</depends>
+      <depends optional-attribute-name="XATerminatorName">jboss:service=TransactionManager</depends>
+   </mbean>
+
+   <!--
+      | The CachedConnectionManager is used partly to relay started UserTransactions to 
+      | open connections so they may be enrolled in the new tx.
+    -->
+   <mbean code="org.jboss.resource.connectionmanager.CachedConnectionManager"
+          name="jboss.jca:service=CachedConnectionManager">
+     <depends optional-attribute-name="TransactionManagerServiceName">jboss:service=TransactionManager</depends>
+
+     <!-- Enable connection close debug monitoring -->
+     <attribute name="Debug">true</attribute>
+
+   </mbean>
+
+   <mbean code="org.jboss.naming.JNDIView"
+   	name="jboss:service=JNDIView">
+   	<!-- The HANamingService service name -->
+   	<attribute name="HANamingService">jboss:service=HAJNDI</attribute>
+   </mbean>
+
+</server>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/jbossjta-properties.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/jbossjta-properties.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/jbossjta-properties.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,243 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<transaction-service>
+    <properties depends="common" name="arjuna">
+        <!--
+        Transaction Reaper Timeout (default is 120000 ms).
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.coordinator.txReaperTimeout" value="120000"/>
+        <!--
+        Transaction Reaper Mode, can be: NORMAL or DYNAMIC (default is NORMAL).
+      -->
+        <property name="com.arjuna.ats.arjuna.coordinator.txReaperMode" value="DYNAMIC"/>
+        <!--
+        Transaction Reaper Cancel Wait Period (default is 500 ms, min is 10 msecs).
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.coordinator.txReaperCancelWaitPeriod" value="500"/>
+        <!--
+        Transaction Reaper Cancel Fail Wait Period (default is 500 ms, min is 10 msecs).
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.coordinator.txReaperCancelFailWaitPeriod" value="500"/>
+        <!--
+        Transaction Reaper Zombie Max (default is 8).
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.coordinator.txReaperZombieMax" value="8"/>
+        <!--
+        (default is NO)
+      -->
+        <property name="com.arjuna.ats.arjuna.coordinator.asyncCommit" value="NO"/>
+        <!--
+        (default is NO)
+      -->
+        <property name="com.arjuna.ats.arjuna.coordinator.asyncPrepare" value="NO"/>
+        <!--
+        (default is YES)
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.coordinator.commitOnePhase" value="YES"/>
+        <!--
+        (default is defaultStore)
+      -->
+        <property name="com.arjuna.ats.arjuna.objectstore.localOSRoot" value="defaultStore"/>
+        <!--
+        default is under user.home - must be writeable!)
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.objectstore.objectStoreDir" value="PutObjectStoreDirHere"/>
+        <!--
+        (default is ON)
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.objectstore.objectStoreSync" value="ON"/>
+        <!--
+        (default is ShadowNoFileLockStore)
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.objectstore.objectStoreType" value="ShadowNoFileLockStore"/>
+        <!--
+        (default is 255)
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.objectstore.hashedDirectories" value="255"/>
+        <!--
+        (default is ON)
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.objectstore.transactionSync" value="ON"/>
+        <!--
+        (Must be unique across all Arjuna instances.)
+      -->
+        <property name="com.arjuna.ats.arjuna.xa.nodeIdentifier" value="1"/>
+        <!-- property
+        name="com.arjuna.ats.arjuna.coordinator.actionStore"
+		value="HashedActionStore"
+		value="JDBCActionStore"
+      -->
+        <!-- property
+        name="com.arjuna.ats.arjuna.objectstore.jdbcTxDbAccess"
+		value="JDBCAccess"
+      -->
+        <!-- property
+        name="com.arjuna.ats.arjuna.objectstore.objectStoreType"
+		value="ShadowNoFileLockStore"
+		value="JDBCStore"
+      -->
+        <!-- property
+        name="com.arjuna.ats.arjuna.objectstore.jdbcUserDbAccess"
+		value="JDBCAccess"
+      -->
+        <!-- property
+        name="com.arjuna.ats.arjuna.objectstore.jdbcPoolSizeInitial"
+		value="1"
+      -->
+        <!-- property
+        name="com.arjuna.ats.arjuna.objectstore.jdbcPoolSizeMaximum"
+		value="1"
+      -->
+        <!-- property
+        name="com.arjuna.ats.arjuna.objectstore.jdbcPoolPutConnections"
+		value="false"
+      -->
+        <!-- property
+        name="com.arjuna.ats.arjuna.internal.arjuna.objectstore.cacheStore.size"
+		value=""
+      -->
+        <!-- property
+        name="com.arjuna.ats.arjuna.internal.arjuna.objectstore.cacheStore.period"
+		value=""
+      -->
+        <!--
+        The location for creating temporary files, e.g., Uids.
+        Default is under user.home.
+        IMPORTANT: make sure the directory is lockable, e.g., /tmp on Unix
+        may not be!
+      -->
+        <!--
+        <property
+          name="com.arjuna.ats.arjuna.common.varDir"
+          value="var"/>
+      -->
+    </properties>
+    <properties name="common">
+        <!-- CLF 2.0 properties -->
+        <property name="com.arjuna.common.util.logging.DebugLevel"
+            type="System" value="0x00000000"/>
+        <property name="com.arjuna.common.util.logging.FacilityLevel"
+            type="System" value="0xffffffff"/>
+        <property name="com.arjuna.common.util.logging.VisibilityLevel"
+            type="System" value="0xffffffff"/>
+        <property name="com.arjuna.common.util.logger" type="System" value="log4j"/>
+    </properties>
+    <properties depends="arjuna" name="txoj">
+        <!--
+        (default is LockStore of installation - must be writeable!)
+      -->
+        <!--
+        <property
+          name="com.arjuna.ats.txoj.lockstore.lockStoreDir"
+          value="LockStore"/>
+      -->
+        <!--
+        (default is BasicLockStore)
+      -->
+        <property name="com.arjuna.ats.txoj.lockstore.lockStoreType" value="BasicLockStore"/>
+        <!--
+        (default is NO)
+      -->
+        <property name="com.arjuna.ats.txoj.lockstore.multipleLockStore" value="NO"/>
+        <!--
+        (default is YES)
+      -->
+        <property name="com.arjuna.ats.txoj.lockstore.singleLockStore" value="YES"/>
+        <!--
+        (default is YES)
+      -->
+        <property
+            name="com.arjuna.ats.txoj.lockstore.allowNestedLocking" value="YES"/>
+    </properties>
+    <properties depends="arjuna" name="jta">
+        <!--
+        Support subtransactions in the JTA layer?
+        Default is NO.
+      -->
+        <property name="com.arjuna.ats.jta.supportSubtransactions" value="NO"/>
+        <property name="com.arjuna.ats.jta.jtaTMImplementation" value="com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple"/>
+        <!--
+			com.arjuna.ats.internal.jta.transaction.jts.TransactionManagerImple
+			-->
+        <property name="com.arjuna.ats.jta.jtaUTImplementation" value="com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple"/>
+        <!--
+			com.arjuna.ats.internal.jta.transaction.jts.UserTransactionImple
+			-->
+    </properties>
+    <properties depends="arjuna,txoj,jta" name="recoverymanager">
+        <!--
+        Properties used only by the RecoveryManager.
+      -->
+        <!--
+        Periodic recovery settings.
+        Time values in this section are in seconds.
+      -->
+        <!--
+        Interval in seconds between initiating the periodic recovery modules.
+        Default is 120 seconds.
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.recovery.periodicRecoveryPeriod" value="120"/>
+        <!--
+        Interval in seconds between first and second pass of periodic recovery.
+        Default is 10 seconds.
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.recovery.recoveryBackoffPeriod" value="10"/>
+        <!--
+        Periodic recovery modules to use.  Invoked in sort-order of names.
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.recovery.recoveryExtension1" value="com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule"/>
+        <property
+            name="com.arjuna.ats.arjuna.recovery.recoveryExtension2" value="com.arjuna.ats.internal.txoj.recovery.TORecoveryModule"/>
+        <property
+            name="com.arjuna.ats.arjuna.recovery.recoveryExtension3" value="com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule"/>
+        <!--
+        Expired entry removal
+      -->
+        <!--
+        Expiry scanners to use (order of invocation is random).
+        Names must begin with "com.arjuna.ats.arjuna.recovery.expiryScanner"
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.recovery.expiryScannerTransactionStatusManager" value="com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner"/>
+        <!--
+        Interval, in hours, between running the expiry scanners.
+        This can be quite long. The absolute value determines the interval -
+        if the value is negative, the scan will NOT be run until after one
+        interval has elapsed. If positive the first scan will be immediately
+        after startup. Zero will prevent any scanning.
+        Default  = 12 = run immediately, then every 12 hours.
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.recovery.expiryScanInterval" value="12"/>
+        <!--
+        Age, in hours, for removal of transaction status manager item.
+        This should be longer than any ts-using process will remain running.
+        Zero = Never removed.  Default is 12.
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.recovery.transactionStatusManagerExpiryTime" value="12"/>
+        <!--
+        Use this to fix the port on which the TransactionStatusManager listens,
+        The default behaviour is to use any free port.
+      -->
+        <property
+            name="com.arjuna.ats.arjuna.recovery.transactionStatusManagerPort" value="0"/>
+    </properties>
+    <properties depends="jta" name="jdbc">
+        <!--
+           property name="com.arjuna.ats.jdbc.isolationLevel" value="TRANSACTION_SERIALIZABLE"/>
+        -->
+    </properties>
+</transaction-service>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/login-config.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/login-config.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/login-config.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,86 @@
+<?xml version='1.0'?>
+
+<!DOCTYPE policy PUBLIC
+      "-//JBoss//DTD JBOSS Security Config 3.0//EN"
+      "http://www.jboss.org/j2ee/dtd/security_config.dtd">
+
+<!-- The XML based JAAS login configuration read by the
+org.jboss.security.auth.login.XMLLoginConfig mbean. Add
+an application-policy element for each security domain.
+
+The outline of the application-policy is:
+<application-policy name="security-domain-name">
+  <authentication>
+    <login-module code="login.module1.class.name" flag="control_flag">
+      <module-option name = "option1-name">option1-value</module-option>
+      <module-option name = "option2-name">option2-value</module-option>
+      ...
+    </login-module>
+
+    <login-module code="login.module2.class.name" flag="control_flag">
+      ...
+    </login-module>
+    ...
+  </authentication>
+</application-policy>
+
+$Revision: 6916 $
+-->
+
+<policy>
+   <application-policy name="HsqlDbRealm">
+     <authentication>
+       <login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule"
+         flag="required">
+         <module-option name="principal">sa</module-option>
+         <module-option name="userName">sa</module-option>
+         <module-option name="password"></module-option>
+         <module-option name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
+       </login-module>
+     </authentication>
+   </application-policy>
+
+   <application-policy name="messaging">
+      <authentication>
+         <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
+            <module-option name="unauthenticatedIdentity">guest</module-option>
+            <module-option name="usersProperties">conf/props/messaging-users.properties</module-option>
+            <module-option name="rolesProperties">conf/props/messaging-roles.properties</module-option>
+         </login-module>
+      </authentication>
+   </application-policy>
+
+   
+  <!-- Used by clients within the application server VM such as
+  mbeans and servlets that access EJBs.
+  -->
+  <application-policy name="client-login">
+    <authentication>
+      <login-module code="org.jboss.security.ClientLoginModule"
+        flag="required">
+         <!-- Any existing security context will be restored on logout -->
+         <module-option name="restore-login-identity">true</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <application-policy name="other">
+    <!-- A simple server login module, which can be used when the number
+    of users is relatively small. It uses two properties files:
+    users.properties, which holds users (key) and their password (value).
+    roles.properties, which holds users (key) and a comma-separated list of
+    their roles (value).
+    The unauthenticatedIdentity property defines the name of the principal
+    that will be used when a null username and password are presented as is
+    the case for an unuathenticated web client or MDB. If you want to
+    allow such users to be authenticated add the property, e.g.,
+    unauthenticatedIdentity="nobody"
+    -->
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required"/>
+    </authentication>
+  </application-policy>
+
+</policy>
+

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/props/messaging-roles.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/props/messaging-roles.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/props/messaging-roles.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,4 @@
+#
+# user=role1,role2,...
+#
+guest=guest

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/props/messaging-users.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/props/messaging-users.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/conf/props/messaging-users.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,4 @@
+#
+# user=password
+#
+guest=guest

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/ejb3-interceptors-aop.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/ejb3-interceptors-aop.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/ejb3-interceptors-aop.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,392 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE aop PUBLIC
+   "-//JBoss//DTD JBOSS AOP 1.0//EN"
+   "http://labs.jboss.com/portal/jbossaop/dtd/jboss-aop_1_0.dtd">
+
+<aop>
+   <interceptor class="org.jboss.aspects.remoting.InvokeRemoteInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.aspects.security.SecurityClientInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.aspects.tx.ClientTxPropagationInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.remoting.IsLocalInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.aspects.remoting.ClusterChooserInterceptor" scope="PER_VM"/>
+
+   <interceptor class="org.jboss.aspects.tx.TxPropagationInterceptor" scope="PER_VM"/>
+
+   <stack name="ServiceClientInterceptors">
+      <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="AsynchronousStatelessSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="AsynchronousStatefulSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="StatelessSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="StatefulSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="ClusteredStatelessSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.ClusterChooserInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="ClusteredStatefulSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.ejb3.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.ClusterChooserInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <interceptor class="org.jboss.ejb3.asynchronous.AsynchronousInterceptor" scope="PER_CLASS"/>
+   <interceptor class="org.jboss.ejb3.ENCPropagationInterceptor" scope="PER_VM"/>
+   <interceptor name="Basic Authorization" factory="org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorFactory" scope="PER_CLASS"/>
+   <interceptor name="JACC Authorization" factory="org.jboss.ejb3.security.JaccAuthorizationInterceptorFactory" scope="PER_CLASS"/>
+   <interceptor factory="org.jboss.ejb3.security.AuthenticationInterceptorFactory" scope="PER_CLASS"/>
+   <interceptor factory="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory" scope="PER_CLASS"/>
+   <interceptor class="org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.stateless.StatelessInstanceInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.stateful.StatefulInstanceInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.stateful.SessionSynchronizationInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.service.ServiceSingletonInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.cache.StatefulReplicationInterceptor" scope="PER_VM"/>
+   <interceptor factory="org.jboss.ejb3.stateful.StatefulRemoveFactory" scope="PER_CLASS_JOINPOINT"/>
+   <interceptor factory="org.jboss.ejb3.tx.TxInterceptorFactory" scope="PER_CLASS_JOINPOINT"/>
+   <interceptor factory="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory" scope="PER_CLASS_JOINPOINT"/>
+   <interceptor factory="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory" scope="PER_CLASS"/>
+   <interceptor class="org.jboss.ejb3.AllowedOperationsInterceptor" scope="PER_VM"/>
+   <interceptor factory="org.jboss.ejb3.mdb.CurrentMessageInjectorInterceptorFactory" scope="PER_CLASS"/>
+   <interceptor class="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor" scope="PER_VM"/>
+
+   <domain name="Stateless Bean">
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
+         <interceptor-ref name="Basic Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
+         <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
+         @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
+         @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
+      </annotation>
+   </domain>
+
+   <domain name="JACC Stateless Bean">
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
+         <interceptor-ref name="JACC Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
+         <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
+         @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
+         @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
+      </annotation>
+   </domain>
+
+   <domain name="Base Stateful Bean">
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
+         <interceptor-ref name="Basic Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->@javax.ejb.Remove(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateful.StatefulRemoveFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateful.StatefulInstanceInterceptor"/>
+         <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+      </bind>
+      <bind pointcut="execution(public * $instanceof{javax.ejb.SessionSynchronization}->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateful.SessionSynchronizationInterceptor"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor"/>
+      </bind>
+
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..)) AND !execution(public * *->@javax.ejb.Remove(..))">
+         <interceptor-ref name="org.jboss.ejb3.cache.StatefulReplicationInterceptor"/>
+      </bind>
+
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
+         @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
+         @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
+      </annotation>
+   </domain>
+
+   <domain name="Stateful Bean" extends="Base Stateful Bean" inheritBindings="true">
+      <!-- NON Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Cache) AND !class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.Cache ("SimpleStatefulCache")
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.PersistenceManager) AND !class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.PersistenceManager ("StatefulSessionFilePersistenceManager")
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.CacheConfig) AND !class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.CacheConfig (maxSize=100000, idleTimeoutSeconds=300, removalTimeoutSeconds=0)
+      </annotation>
+
+      <!-- Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Cache) AND class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.Cache ("StatefulTreeCache")
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.CacheConfig) AND class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.CacheConfig (name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000, idleTimeoutSeconds=300, removalTimeoutSeconds=0)
+      </annotation>
+   </domain>
+
+   <domain name="JACC Stateful Bean">
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
+         <interceptor-ref name="JACC Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->@javax.ejb.Remove(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateful.StatefulRemoveFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateful.StatefulInstanceInterceptor"/>
+         <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+      </bind>
+      <bind pointcut="execution(public * $instanceof{javax.ejb.SessionSynchronization}->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateful.SessionSynchronizationInterceptor"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..)) AND !execution(public * *->@javax.ejb.Remove(..))">
+         <interceptor-ref name="org.jboss.ejb3.cache.StatefulReplicationInterceptor"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
+         @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
+         @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
+      </annotation>
+
+      <!-- NON Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Cache) AND !class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.Cache ("SimpleStatefulCache")
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.PersistenceManager) AND !class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.PersistenceManager ("StatefulSessionFilePersistenceManager")
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.CacheConfig) AND !class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.CacheConfig (maxSize=100000, idleTimeoutSeconds=300, removalTimeoutSeconds=0)
+      </annotation>
+
+      <!-- Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Cache) AND class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.Cache ("StatefulTreeCache")
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.CacheConfig) AND class(@org.jboss.ejb3.annotation.Clustered)">
+         @org.jboss.ejb3.annotation.CacheConfig (name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000, idleTimeoutSeconds=300, removalTimeoutSeconds=0)
+      </annotation>
+   </domain>
+
+   <domain name="Embedded Stateful Bean" extends="Base Stateful Bean" inheritBindings="true">
+      <!-- NON Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Cache)">
+         @org.jboss.ejb3.annotation.Cache ("NoPassivationCache")
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
+         @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
+      </annotation>
+
+   </domain>
+
+   <domain name="Message Driven Bean">
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <!-- TODO: Authorization? -->
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
+         @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=15, timeout=10000)
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
+         @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
+      </annotation>
+   </domain>
+
+   <domain name="Consumer Bean">
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..)) AND (has(* *->@org.jboss.ejb3.annotation.CurrentMessage(..)) OR hasfield(* *->@org.jboss.ejb3.annotation.CurrentMessage))">
+         <interceptor-ref name="org.jboss.ejb3.mdb.CurrentMessageInjectorInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
+         @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=15, timeout=10000)
+      </annotation>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
+         @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
+      </annotation>
+   </domain>
+
+   <domain name="Service Bean">
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
+      </bind>
+      <bind pointcut="!execution(* *->create()) AND !execution(* *->start()) AND !execution(*->new(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
+         <interceptor-ref name="Basic Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..)) AND !execution(* *->create()) AND !execution(* *->start())">
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
+         @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
+      </annotation>
+   </domain>
+
+   <domain name="JACC Service Bean">
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
+      </bind>
+      <bind pointcut="!execution(* *->create()) AND !execution(* *->start()) AND !execution(*->new(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">
+         <interceptor-ref name="Basic Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..))">
+         <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
+      </bind>
+      <bind pointcut="execution(public * *->*(..)) AND !execution(* *->create()) AND !execution(* *->start())">
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.ejb3.annotation.JndiBindingPolicy)">
+         @org.jboss.ejb3.annotation.JndiBindingPolicy (policy=org.jboss.ejb3.jndipolicy.impl.PackagingBasedJndiBindingPolicy.class)
+      </annotation>
+   </domain>
+
+</aop>
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/hsqldb-ds.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/hsqldb-ds.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/hsqldb-ds.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The Hypersonic embedded database JCA connection factory config -->
+
+<!-- $Id: hsqldb-ds.xml 6916 2007-12-05 17:53:00Z pmuir $ -->
+
+<datasources>
+   <local-tx-datasource>
+
+      <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
+      <!-- Datasources are not available outside the virtual machine -->
+      <jndi-name>DefaultDS</jndi-name>
+
+      <!-- For server mode db, allowing other processes to use hsqldb over tcp.
+      This requires the org.jboss.jdbc.HypersonicDatabase mbean.
+      <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url>
+      -->
+      <!-- For totally in-memory db, not saved when jboss stops. 
+      The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown
+      <connection-url>jdbc:hsqldb:.</connection-url>
+      -->
+      <!-- For in-process persistent db, saved when jboss stops.
+      The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown
+      -->
+      <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+
+      <!-- The driver class -->
+      <driver-class>org.hsqldb.jdbcDriver</driver-class>
+
+      <!-- The login and password -->
+      <user-name>sa</user-name>
+      <password></password>
+
+      <!--example of how to specify class that determines if exception means connection should be destroyed-->
+      <!--exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter</exception-sorter-class-name-->
+
+      <!-- this will be run before a managed connection is removed from the pool for use by a client-->
+      <!--<check-valid-connection-sql>select * from something</check-valid-connection-sql> -->
+
+      <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
+      <min-pool-size>0</min-pool-size>
+
+      <!-- The maximum connections in a pool/sub-pool -->
+      <max-pool-size>20</max-pool-size>
+
+      <!-- The time before an unused connection is destroyed -->
+      <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
+      <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
+      <idle-timeout-minutes>0</idle-timeout-minutes>
+
+      <!-- sql to call when connection is created
+        <new-connection-sql>some arbitrary sql</new-connection-sql>
+      -->
+
+      <!-- sql to call on an existing pooled connection when it is obtained from pool 
+         <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
+      -->
+
+      <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool
+         <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyValidConnectionChecker</valid-connection-checker-class-name>
+      -->
+
+      <!-- Whether to check all statements are closed when the connection is returned to the pool,
+           this is a debugging feature that should be turned off in production -->
+      <track-statements/>
+
+      <!-- Use the getConnection(user, pw) for logins
+        <application-managed-security/>
+      -->
+
+      <!-- Use the security domain defined in conf/login-config.xml -->
+      <security-domain>HsqlDbRealm</security-domain>
+
+      <!-- Use the security domain defined in conf/login-config.xml or the
+           getConnection(user, pw) for logins. The security domain takes precedence.
+        <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
+      -->
+
+      <!-- HSQL DB benefits from prepared statement caching -->
+      <prepared-statement-cache-size>32</prepared-statement-cache-size>
+
+      <!-- When using in-process (standalone) mode -->
+      <depends>jboss:service=Hypersonic,database=localDB</depends>
+      <!-- Uncomment when using hsqldb in server mode
+      <depends>jboss:service=Hypersonic</depends>
+      -->
+   </local-tx-datasource>
+
+   <!-- Uncomment if you want hsqldb accessed over tcp (server mode)
+   <mbean code="org.jboss.jdbc.HypersonicDatabase" 
+     name="jboss:service=Hypersonic">
+     <attribute name="Port">1701</attribute>
+     <attribute name="BindAddress">${jboss.bind.address}</attribute>     
+     <attribute name="Silent">true</attribute>
+     <attribute name="Database">default</attribute>
+     <attribute name="Trace">false</attribute>
+     <attribute name="No_system_exit">true</attribute>
+   </mbean>
+   -->
+
+   <!-- For hsqldb accessed from jboss only, in-process (standalone) mode --> 
+   <mbean code="org.jboss.jdbc.HypersonicDatabase" 
+     name="jboss:service=Hypersonic,database=localDB">
+     <attribute name="Database">localDB</attribute>
+     <attribute name="InProcessMode">true</attribute>
+   </mbean>
+   
+</datasources>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/jboss-local-jdbc.rar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/jboss-local-jdbc.rar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/jboss-xa-jdbc.rar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/jboss-xa-jdbc.rar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/jms-ra.rar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/jms-ra.rar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/connection-factories-service.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/connection-factories-service.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/connection-factories-service.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,149 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+     Messaging Connection Factories deployment descriptor.
+
+     $Id: connection-factories-service.xml 6916 2007-12-05 17:53:00Z pmuir $
+ -->
+
+<server>
+
+   <!-- The default connection factory does not support automatic failover or load balancing-
+        this is so we can maintain compatiblity with applications written for JBoss MQ which use this
+        connection factory.
+   -->     
+   <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
+      name="jboss.messaging.connectionfactory:service=ConnectionFactory"
+      xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+
+      <attribute name="JNDIBindings">
+         <bindings>
+            <binding>/ConnectionFactory</binding>
+            <binding>/XAConnectionFactory</binding>
+            <binding>java:/ConnectionFactory</binding>
+            <binding>java:/XAConnectionFactory</binding>
+         </bindings>
+      </attribute>
+   </mbean>
+
+   <!-- A clustered connection factory that supports automatic failover and load balancing of created
+        connections.
+        This factory is not suitable to be used by MDBs.
+   -->
+   <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
+      name="jboss.messaging.connectionfactory:service=ClusteredConnectionFactory"
+      xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+
+      <attribute name="JNDIBindings">
+         <bindings>
+            <binding>/ClusteredConnectionFactory</binding>
+            <binding>/ClusteredXAConnectionFactory</binding>
+            <binding>java:/ClusteredConnectionFactory</binding>
+            <binding>java:/ClusteredXAConnectionFactory</binding>
+         </bindings>
+      </attribute>
+
+      <attribute name="SupportsFailover">true</attribute>
+      <attribute name="SupportsLoadBalancing">true</attribute>      
+   </mbean>
+   
+   <!-- A connection factory with no JNDI bindings that is used in clustering to create the connections that
+        pull messages from one node to another
+   -->
+   <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
+      name="jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory"
+      xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SupportsFailover">false</attribute>
+      <attribute name="SupportsLoadBalancing">false</attribute>      
+   </mbean>
+   
+   <!-- An example connection factory with all attributes shown 
+   
+   <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
+      name="jboss.messaging.connectionfactory:service=MyExampleConnectionFactory"
+      xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
+      
+      <constructor>
+      
+         <!- - You can specify the default Client ID to use for connections created using this factory - -> 
+         
+         <arg type="java.lang.String" value="MyClientID"/>
+         
+      </constructor>
+      
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      
+      <!- - The transport to use - can be bisocket, sslbisocket or http - ->
+      
+      <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=http</depends>
+      
+      <depends>jboss.messaging:service=PostOffice</depends>
+      
+      <!- - PrefetchSize determines the approximate maximum number of messages the client consumer will buffer locally - ->
+      
+      <attribute name="PrefetchSize">150</attribute>
+      
+      <!- - Paging params to be used for temporary queues - ->
+      
+      <attribute name="DefaultTempQueueFullSize">200000</attribute>
+      
+      <attribute name="DefaultTempQueuePageSizeSize">2000</attribute>
+      
+      <attribute name="DefaultTempQueueDownCacheSize">2000</attribute>
+      
+      <!- - The batch size to use when using the DUPS_OK_ACKNOWLEDGE acknowledgement mode - ->
+      
+      <attribute name="DupsOKBatchSize">5000</attribute>
+      
+      <!- - Does this connection factory support automatic failover? - ->
+      
+      <attribute name="SupportsFailover">false</attribute>
+      
+      <!- - Does this connection factory support automatic client side load balancing? - ->
+      
+      <attribute name="SupportsLoadBalancing">false</attribute>  
+            
+      <!- - The class name of the factory used to create the load balancing policy to use on the client side - ->
+      
+      <attribute name="LoadBalancingFactory">org.jboss.jms.client.plugin.RoundRobinLoadBalancingFactory</attribute>  
+
+      <!- - Whether we should be strict TCK compliant, i.e. how we deal with foreign messages, defaults to false- ->
+
+      <attribute name="StrictTck">false</attribute>
+      
+      <!- - Disable JBoss Remoting Connector sanity checks - There is rarely a good reason to set this to true - ->
+      
+      <attribute name="DisableRemotingChecks">false</attribute>
+
+      <!- - The connection factory will be bound in the following places in JNDI - ->
+
+      <attribute name="JNDIBindings">
+      
+         <bindings>
+         
+            <binding>/acme/MyExampleConnectionFactory</binding>
+            
+            <binding>/acme/MyExampleConnectionFactoryDupe</binding>
+            
+            <binding>java:/xyz/CF1</binding>
+            
+            <binding>java:/connectionfactories/acme/connection_factory</binding>
+            
+         </bindings>
+         
+      </attribute>   
+       
+   </mbean>
+   
+   -->
+
+</server>
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/destinations-service.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/destinations-service.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/destinations-service.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+     Messaging Destinations deployment descriptor.
+
+     $Id: destinations-service.xml 6916 2007-12-05 17:53:00Z pmuir $
+ -->
+
+<server>
+
+   <!--
+      The Default Dead Letter Queue. This destination is a dependency of an EJB MDB container.
+   -->
+
+   <mbean code="org.jboss.jms.server.destination.QueueService"
+      name="jboss.messaging.destination:service=Queue,name=DLQ"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <annotation>@org.jboss.system.deployers.managed.ManagementObjectClass(code=org.jboss.jms.server.destination.QueueServiceMO)</annotation>      
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+   </mbean>
+   
+   <!--
+      The Default Expiry Queue.
+   -->
+
+   <mbean code="org.jboss.jms.server.destination.QueueService"
+      name="jboss.messaging.destination:service=Queue,name=ExpiryQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <annotation>@org.jboss.system.deployers.managed.ManagementObjectClass(code=org.jboss.jms.server.destination.QueueServiceMO)</annotation>      
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+   </mbean>   
+
+
+</server>
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/hsqldb-persistence-service.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/hsqldb-persistence-service.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/hsqldb-persistence-service.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+     Hypersonic persistence deployment descriptor.
+     
+     DO NOT USE HYPERSONIC IN PRODUCTION or in a clustered environment- Hypersonic does not have transaction isolation
+
+     $Id: hsqldb-persistence-service.xml 6916 2007-12-05 17:53:00Z pmuir $
+ -->
+
+<server>
+
+   <!-- Persistence Manager MBean configuration
+       ======================================= -->
+   
+   <mbean code="org.jboss.messaging.core.jmx.JDBCPersistenceManagerService"
+      name="jboss.messaging:service=PersistenceManager"
+      xmbean-dd="xmdesc/JDBCPersistenceManager-xmbean.xml">
+      
+      <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
+      
+      <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
+            
+      <!-- The datasource to use for the persistence manager -->
+                                
+      <attribute name="DataSource">java:/DefaultDS</attribute>
+      
+      <!-- If true will attempt to create tables and indexes on every start-up -->
+                  
+      <attribute name="CreateTablesOnStartup">true</attribute>
+      
+      <!-- If true then will use JDBC batch updates -->
+                 
+      <attribute name="UsingBatchUpdates">false</attribute>
+      
+      <!-- The maximum number of parameters to include in a prepared statement -->            
+      
+      <attribute name="MaxParams">500</attribute>
+   </mbean>
+
+   <!-- Messaging Post Office MBean configuration
+        ========================================= -->
+   
+   <mbean code="org.jboss.messaging.core.jmx.MessagingPostOfficeService"
+      name="jboss.messaging:service=PostOffice"      
+      xmbean-dd="xmdesc/MessagingPostOffice-xmbean.xml">
+            
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      
+      <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
+      
+      <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
+      
+      <!-- The name of the post office -->      
+                 
+      <attribute name="PostOfficeName">JMS post office</attribute>
+      
+      <!-- The datasource used by the post office to access it's binding information -->                       
+      
+      <attribute name="DataSource">java:/DefaultDS</attribute>
+      
+      <!-- If true will attempt to create tables and indexes on every start-up -->
+                        
+      <attribute name="CreateTablesOnStartup">true</attribute>
+      
+      <!-- This post office is NON CLUSTERED - do not use clustering with Hypersonic!! -->
+      
+      <attribute name="Clustered">false</attribute>
+   </mbean>
+
+   <!-- Messaging JMS User Manager MBean config
+        ======================================= -->
+   
+   <mbean code="org.jboss.jms.server.plugin.JDBCJMSUserManagerService"
+      name="jboss.messaging:service=JMSUserManager"
+      xmbean-dd="xmdesc/JMSUserManager-xmbean.xml">
+      
+      <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
+      
+      <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
+      
+      <attribute name="DataSource">java:/DefaultDS</attribute>
+      
+      <attribute name="CreateTablesOnStartup">true</attribute>
+      
+      <attribute name="SqlProperties"><![CDATA[
+POPULATE.TABLES.1  = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('guest', 'guest')
+POPULATE.TABLES.2  = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('j2ee', 'j2ee')
+POPULATE.TABLES.3  = INSERT INTO JBM_USER (USER_ID, PASSWD, CLIENTID) VALUES ('john', 'needle', 'DurableSubscriberExample')
+POPULATE.TABLES.4  = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('nobody', 'nobody')
+POPULATE.TABLES.5  = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('dynsub', 'dynsub')
+POPULATE.TABLES.6  = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('guest','guest')
+POPULATE.TABLES.7  = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('j2ee','guest')
+POPULATE.TABLES.8  = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('john','guest')
+POPULATE.TABLES.9  = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('subscriber','john')
+POPULATE.TABLES.10 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('publisher','john')
+POPULATE.TABLES.11 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('publisher','dynsub')
+POPULATE.TABLES.12 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('durpublisher','john')
+POPULATE.TABLES.13 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('durpublisher','dynsub')
+POPULATE.TABLES.14 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('noacc','nobody')
+      ]]></attribute>
+   </mbean>
+
+</server>
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/jms-ds.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/jms-ds.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/jms-ds.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<connection-factories>
+
+  <!-- ==================================================================== -->
+  <!-- JMS Stuff                                                            -->
+  <!-- ==================================================================== -->
+
+   <!--
+       The JMS provider loader. Currently pointing to a non-clustered ConnectionFactory. Need to
+       be replaced with a clustered non-load-balanced ConnectionFactory when it becomes available.
+       See http://jira.jboss.org/jira/browse/JBMESSAGING-843. 
+   -->
+   <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
+          name="jboss.messaging:service=JMSProviderLoader,name=JMSProvider">
+      <attribute name="ProviderName">DefaultJMSProvider</attribute>
+      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
+      <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
+   </mbean>
+
+   <!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->
+   <tx-connection-factory>
+      <jndi-name>JmsXA</jndi-name>
+      <xa-transaction/>
+      <rar-name>jms-ra.rar</rar-name>
+      <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
+      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
+      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
+      <max-pool-size>20</max-pool-size>
+      <security-domain-and-application>JmsXARealm</security-domain-and-application>
+      <depends>jboss.messaging:service=ServerPeer</depends>
+   </tx-connection-factory>
+
+</connection-factories>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/legacy-service.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/legacy-service.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/legacy-service.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Messaging Destinations deployment descriptor.
+    
+    $Id: legacy-service.xml 6916 2007-12-05 17:53:00Z pmuir $
+-->
+
+<server>
+    <mbean code="org.jboss.mq.server.jmx.DummyDestMgr"
+        name="jboss.mq:service=DestinationManager">
+        <depends>jboss.messaging:service=ServerPeer</depends>
+    </mbean>
+    <mbean code="org.jboss.mq.server.jmx.DummySecurityMgr"
+        name="jboss.mq:service=SecurityManager" />
+    
+</server>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/messaging-service.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/messaging-service.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/messaging-service.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+     The JBoss Messaging service deployment descriptor.
+
+     $Id: messaging-service.xml 7115 2008-01-10 23:23:32Z pmuir $
+ -->
+
+<server>
+
+   <!-- ServerPeer MBean configuration
+        ============================== -->
+
+   <mbean code="org.jboss.jms.server.ServerPeer"
+      name="jboss.messaging:service=ServerPeer"
+      xmbean-dd="xmdesc/ServerPeer-xmbean.xml">
+
+      <!-- The unique id of the server peer - in a cluster each node MUST have a unique value - must be an integer -->
+
+      <attribute name="ServerPeerID">0</attribute>
+      
+      <!-- The default JNDI context to use for queues when they are deployed without specifying one --> 
+      
+      <attribute name="DefaultQueueJNDIContext">/queue</attribute>
+      
+      <!-- The default JNDI context to use for topics when they are deployed without specifying one --> 
+      
+      <attribute name="DefaultTopicJNDIContext">/topic</attribute>
+
+	  <attribute name="PostOffice">jboss.messaging:service=PostOffice</attribute>
+	  
+	  <!-- The JAAS security domain to use for JBoss Messaging -->
+	  
+      <attribute name="SecurityDomain">java:/jaas/messaging</attribute>
+      
+      <!-- The default security configuration to apply to destinations - this can be overridden on a per destination basis -->
+      
+      <attribute name="DefaultSecurityConfig">
+        <security>
+            <role name="Administrator" read="true" write="true" create="true"/>
+            <role name="Manager" read="true" write="true" create="true"/>
+            <role name="guest" read="true" write="true" create="true"/>
+        </security>
+      </attribute>
+      
+      <!-- The default Dead Letter Queue (DLQ) to use for destinations.
+           This can be overridden on a per destinatin basis -->
+      
+      <attribute name="DefaultDLQ">jboss.messaging.destination:service=Queue,name=DLQ</attribute>
+      
+      <!-- The default maximum number of times to attempt delivery of a message before sending to the DLQ (if configured).
+           This can be overridden on a per destinatin basis -->
+      
+      <attribute name="DefaultMaxDeliveryAttempts">10</attribute>
+      
+      <!-- The default Expiry Queue to use for destinations. This can be overridden on a per destinatin basis -->
+      
+      <attribute name="DefaultExpiryQueue">jboss.messaging.destination:service=Queue,name=ExpiryQueue</attribute>
+      
+      <!-- The default redelivery delay to impose. This can be overridden on a per destination basis -->
+      
+      <attribute name="DefaultRedeliveryDelay">0</attribute>
+      
+      <!-- The periodicity of the message counter manager enquiring on queues for statistics -->
+      
+      <attribute name="MessageCounterSamplePeriod">5000</attribute>
+      
+      <!-- The maximum amount of time for a client to wait for failover to start on the server side after
+           it has detected failure -->
+      
+      <attribute name="FailoverStartTimeout">60000</attribute>
+      
+      <!-- The maximum amount of time for a client to wait for failover to complete on the server side after
+           it has detected failure -->
+      
+      <attribute name="FailoverCompleteTimeout">300000</attribute>
+
+      <attribute name="StrictTck">false</attribute>
+      
+      <!-- The maximum number of days results to maintain in the message counter history -->
+      
+      <attribute name="DefaultMessageCounterHistoryDayLimit">-1</attribute>
+      
+      <!-- The name of the connection factory to use for creating connections between nodes to pull messages -->
+      
+      <attribute name="ClusterPullConnectionFactoryName">jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory</attribute>
+      
+      <!-- Use XA when pulling persistent messages from a remote node to this one. -->
+      
+      <!-- <attribute name="UseXAForMessagePull">false</attribute>-->
+      
+      <!-- When redistributing messages in the cluster. Do we need to preserve the order of messages received
+            by a particular consumer from a particular producer? -->
+            
+      <attribute name="DefaultPreserveOrdering">false</attribute>
+      
+      <!-- Max. time to hold previously delivered messages back waiting for clients to reconnect after failover -->
+      
+      <attribute name="RecoverDeliveriesTimeout">300000</attribute>
+      
+      <!-- The password used by the message sucker connections to create connections.
+           THIS SHOULD ALWAYS BE CHANGED AT INSTALL TIME TO SECURE SYSTEM
+      <attribute name="SuckerPassword"></attribute>
+      -->
+
+      <depends optional-attribute-name="PersistenceManager">jboss.messaging:service=PersistenceManager</depends>
+      
+      <depends optional-attribute-name="JMSUserManager">jboss.messaging:service=JMSUserManager</depends>
+      
+      <depends>jboss.messaging:service=Connector,transport=bisocket</depends>
+
+   </mbean>
+
+</server>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/remoting-service.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/remoting-service.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/messaging/remoting-service.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+     Standard bisocket-based Remoting service deployment descriptor.
+
+     $Id: remoting-service.xml 8448 2008-07-13 12:40:54Z pete.muir at jboss.org $
+ -->
+
+<server>
+
+   <!-- Standard bisocket connector - the bisocket transport only opens connection from client->server
+        so can be used with firewalls where only outgoing connections are allowed.
+        For examples of HTTP and SSL transports see docs/examples -->
+   <mbean code="org.jboss.remoting.transport.Connector"
+          name="jboss.messaging:service=Connector,transport=bisocket"
+          display-name="Bisocket Transport Connector">
+      <attribute name="Configuration">
+         <config>
+            <invoker transport="bisocket">
+            
+               <!-- There should be no reason to change these parameters - warning!
+                    Changing them may stop JBoss Messaging working correctly -->            
+               <attribute name="marshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
+               <attribute name="unmarshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
+               <attribute name="dataType" isParam="true">jms</attribute>
+               <attribute name="socket.check_connection" isParam="true">false</attribute>
+               <attribute name="timeout" isParam="true">0</attribute>
+               <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
+               <attribute name="serverBindPort">4458</attribute>
+               <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
+               <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
+               <attribute name="numberOfCallRetries" isParam="true">1</attribute>
+               <attribute name="pingFrequency" isParam="true">214748364</attribute>
+               <attribute name="pingWindowFactor" isParam="true">10</attribute>
+               <attribute name="onewayThreadPool">org.jboss.jms.server.remoting.DirectThreadPool</attribute>
+               <!-- End immutable parameters -->
+               
+               <!-- Periodicity of client pings. Server window by default is twice this figure -->                               
+               <attribute name="clientLeasePeriod" isParam="true">10000</attribute>
+
+               <!-- Number of seconds to wait for a connection in the client pool to become free -->
+               <attribute name="numberOfRetries" isParam="true">10</attribute>
+
+               <!-- Max Number of connections in client pool. This should be significantly higher than
+                    the max number of sessions/consumers you expect -->
+               <attribute name="clientMaxPoolSize" isParam="true">200</attribute>
+               
+               <!-- Use these parameters to specify values for binding and connecting control connections to 
+                    work with your firewall/NAT configuration
+               <attribute name="secondaryBindPort">xyz</attribute>                           
+               <attribute name="secondaryConnectPort">abc</attribute>               
+               -->
+                          
+            </invoker>
+            <handlers>
+               <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
+            </handlers>
+         </config>
+      </attribute>
+   </mbean>
+
+</server>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/remoting-service.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/remoting-service.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deploy/remoting-service.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Connector for both EJB3 and JNDI
+-->
+<server>
+   <mbean code="org.jboss.remoting.transport.Connector"
+          name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
+      <attribute name="InvokerLocator">socket://${jboss.bind.address}:3883</attribute>
+      <attribute name="Configuration">
+         <handlers>
+            <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
+         </handlers>
+      </attribute>
+   </mbean>
+</server>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/aspect-deployer-beans.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/aspect-deployer-beans.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/aspect-deployer-beans.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    Aspect  Deployer
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="AOPJBossIntegration" class="org.jboss.aop.asintegration.embedded.JBossEmbeddedUCLIntegration"/>
+   <!--
+      Valid values for the AspectManager bean for use with enableTransformer=true are:
+      * org.jboss.aop.deployers.AspectManagerJDK5 - works with the -javaagent:pluggable-instrumentor.jar switch
+      * org.jboss.aop.deployers.AspectManagerJRockit - works with JRockit and the -Xmanagement:class=org.jboss.aop.hook.JRockitPluggableClassPreProcessor switch
+   -->
+   <bean name="AspectManager" class="org.jboss.aop.deployers.AspectManagerJDK5">
+      <constructor>
+         <parameter><![CDATA[
+	         <aop>
+				</aop>]]>
+	      </parameter>
+      </constructor>
+      <property name="jbossIntegration"><inject bean="AOPJBossIntegration"/></property>
+      <property name="enableLoadtimeWeaving">false</property>
+      <!-- only relevant when EnableLoadtimeWeaving is true.
+           When transformer is on, every loaded class gets
+           transformed.  If AOP can't find the class, then it
+           throws an exception.  Sometimes, classes may not have
+           all the classes they reference.  So, the Suppressing
+           is needed.  (i.e. Jboss cache in the default configuration -->
+      <property name="suppressTransformationErrors">true</property>
+      <property name="prune">true</property>
+      <property name="include">org.jboss.test., org.jboss.injbossaop.</property>
+      <property name="exclude">org.jboss.</property>
+      <!-- This avoids instrumentation of hibernate cglib enhanced proxies
+      <property name="ignore">*$$EnhancerByCGLIB$$*</property> -->
+      <property name="optimized">true</property>
+      <property name="verbose">false</property>
+      <!--
+         Available choices for this attribute are:
+            org.jboss.aop.instrument.ClassicInstrumentor (default)
+            org.jboss.aop.instrument.GeneratedAdvisorInstrumentor
+       <property name="instrumentor">org.jboss.aop.instrument.ClassicInstrumentor</property>
+      -->
+   </bean>
+
+   <!-- Aspect Deployment -->
+   <bean name="AspectDeployer" class="org.jboss.aop.deployers.AspectDeployer">
+      <property name="type">aop</property>
+      <property name="aspectManager"><inject bean="AspectManager" property="aspectManager"/></property>
+   </bean>
+
+</deployment>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/ejb-deployer-beans.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/ejb-deployer-beans.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/ejb-deployer-beans.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    EJB 2.x Deployer
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- ejb-jar.xml parsing deployer -->
+   <bean name="Ejb2ParsingDeployer" class="org.jboss.deployment.EjbParsingDeployer">
+      <property name="type">ejb2x</property>   
+      <property name="useSchemaValidation">false</property>
+      <property name="relativeOrder">3000</property>
+   </bean>
+   <bean name="JBossEjb2ParsingDeployer" class="org.jboss.deployment.JBossEjbParsingDeployer">
+      <property name="type">ejb2x</property>      
+      <property name="relativeOrder">3001</property>
+      <property name="useSchemaValidation">false</property>
+      <property name="ignoreMissingStandardJBossXml">true</property>
+   </bean>
+
+    <bean name="EJB2xDeployer" class="org.jboss.ejb.deployers.EjbDeployer">
+        <!-- The EJBDeployer needs the JTA transaction manager service -->
+        <property name="transactionManagerServiceName">jboss:service=TransactionManager</property>
+       <!-- The dynamic class loading simple web server -->
+       <property name="webServiceName">jboss:service=WebService</property>
+       <!-- The CachedConnectionManager service used by the CachedConnectionInterceptor -->
+       <property name="cachedConnectionManagerName">jboss.jca:service=CachedConnectionManager</property>
+       <!-- The ejb timer service -->
+       <property name="timerServiceName">jboss.ejb:service=EJBTimerService</property>
+       <!-- A flag indicating if the ejb components should have in VM call
+          optimization disabled.
+       -->
+       <property name="callByValue">false</property>
+        
+       <!-- Specify an unauthenticated identity -->
+       <property name="unauthenticatedIdentity">anonymous</property>
+       
+       <!-- Specify a SecurityManagement Wrapper -->
+       <property name="securityManagement">
+         <inject bean="JNDIBasedSecurityManagement"/>
+       </property>
+       <!-- Specify a SecurityContext FQN class name -->
+       <property name="securityContextClassName">org.jboss.security.plugins.JBossSecurityContext</property>
+
+       <!-- Specify a SecurityDomain as fallback -->
+       <property name="defaultSecurityDomain">jboss-ejb-policy</property>
+
+       <depends>SecurityDeployer</depends>
+    </bean>
+
+   <bean name="MergedJBossMetaDataDeployer" class="org.jboss.ejb.deployers.MergedJBossMetaDataDeployer">
+   </bean>
+   <bean name="StandardJBossMetaDataDeployer" class="org.jboss.ejb.deployers.StandardJBossMetaDataDeployer">
+   </bean>
+</deployment>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/ejb3-deployers-beans.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/ejb3-deployers-beans.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/ejb3-deployers-beans.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    JCA Deployers
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- TODO this should be removed later on when ENC gets changed -->
+   <bean name="java:comp/Initializer" class="org.jboss.ejb3.embedded.JavaCompInitializer"/>
+   <bean name="DefaultPersistenceProperties" class="org.jboss.ejb3.DefaultPersistenceProperties"/>
+
+   <bean name="Ejb3Deployer" class="org.jboss.ejb3.deployers.Ejb3Deployer">
+      <property name="type">ejb3x</property>
+      <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
+      <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+      <property name="defaultPersistenceProperties"><inject bean="DefaultPersistenceProperties" property="properties"/></property>
+      <property name="cacheFactoryRegistry"><inject bean="EJB3CacheFactoryRegistry" /></property>
+      <property name="poolFactoryRegistry"><inject bean="EJB3PoolFactoryRegistry" /></property>
+      <property name="remoteProxyFactoryRegistry"><inject bean="EJB3RemoteProxyFactoryRegistry" /></property>
+      <property name="persistenceManagerFactoryRegistry"><inject bean="EJB3PersistenceManagerFactoryRegistry" /></property>
+      
+      <!-- 
+   
+      Configure the deployer to optionally require a deployment 
+      descriptor for deployable units.  By turning this switch to "true", 
+      "META-INF/jboss.xml" or the EJB3 Deployment Descriptor "META-INF/ejb-jar.xml" 
+      will be required for deployment, enabling a performance increace in deployment by
+      not scanning for annotations in non-deployable EJB3 JARs.
+      
+      Default for this value is "false".
+      
+      -->
+      <property name="deploymentDescriptorRequired">false</property>
+      
+      <property name="ignoredJarsSet">
+         <set elementClass="java.lang.String">
+            <value>snmp-adaptor.jar</value>
+            <value>otherimages.jar</value>
+            <value>applet.jar</value>
+            <value>jcommon.jar</value>
+            <value>console-mgr-classes.jar</value>
+            <value>jfreechart.jar</value>
+            <value>juddi-service.jar</value>
+            <value>wsdl4j.jar</value>
+            <value>commons-collections.jar</value>
+            <value>commons-pool.jar</value>
+            <value>juddi.jar</value>
+            <value>commons-discovery.jar</value>
+            <value>uddi4j.jar</value>
+            <value>axis.jar</value>
+            <value>commons-dbcp.jar</value>
+            <value>jboss-juddiaxis.jar</value>
+            <value>trove.jar</value>
+            <value>javassist.jar</value>
+            <value>jboss-aop-jdk50.jar</value>
+            <value>jboss-aspect-library-jdk50.jar</value>
+            <value>ejb3-persistence.jar</value>
+            <value>commons-validator-1.1.3.jar</value>
+            <value>commons-collections.jar</value>
+            <value>commons-fileupload.jar</value>
+            <value>commons-pool.jar</value>
+            <value>hibernate-entitymanager.jar</value>
+            <value>jboss-ejb3x.jar</value>
+            <value>commons-digester-1.6.jar</value>
+            <value>cglib-2.1.1.jar</value>
+            <value>commons-discovery.jar</value>
+            <value>jboss-annotations-ejb3.jar</value>
+            <value>jaxen-1.1-beta-4.jar</value>
+            <value>hibernate-annotations.jar</value>
+            <value>commons-httpclient.jar</value>
+            <value>commons-logging.jar</value>
+            <value>commons-vfs.jar</value>
+            <value>hibernate3.jar</value>
+            <value>commons-logging-api.jar</value>
+            <value>asm.jar</value>
+            <value>asm-attrs.jar</value>
+            <value>commons-lang-2.0.jar</value>
+            <value>commons-beanutils.jar</value>
+            <value>jboss-ejb3.jar</value>
+            <value>dom4j.jar</value>
+            <value>commons-codec-1.2.jar</value>
+            <value>wsdl4j.jar</value>
+            <value>xmlsec.jar</value>
+            <value>jbossws.jar</value>
+            <value>jboss-bean-deployer.jar</value>
+            <value>jboss-microcontainer.jar</value>
+            <value>jboss-dependency.jar</value>
+            <value>jboss-container.jar</value>
+            <value>tomcat-coyote.jar</value>
+            <value>commons-collections.jar</value>
+            <value>myfaces.jar</value>
+            <value>jstl.jar</value>
+            <value>commons-digester-1.6.jar</value>
+            <value>myfaces-impl.jar</value>
+            <value>commons-beanutils.jar</value>
+            <value>myfaces-jsf-api.jar</value>
+            <value>commons-codec-1.2.jar</value>
+            <value>catalina-optional.jar</value>
+            <value>tomcat-util.jar</value>
+            <value>jasper-compiler.jar</value>
+            <value>commons-el.jar</value>
+            <value>jasper-compiler-jdt.jar</value>
+            <value>tomcat-http.jar</value>
+            <value>catalina-manager.jar</value>
+            <value>jasper-runtime.jar</value>
+            <value>tomcat55-service.jar</value>
+            <value>servlets-invoker.jar</value>
+            <value>catalina.jar</value>
+            <value>naming-resources.jar</value>
+            <value>servlets-default.jar</value>
+            <value>tomcat-ajp.jar</value>
+            <value>commons-modeler.jar</value>
+            <value>tomcat-apr.jar</value>
+            <value>servlets-webdav.jar</value>
+         </set>
+      </property>
+      <depends>AspectLibrary</depends>
+   </bean>
+   <bean name="EJBStage2Deployer" class="org.jboss.ejb3.deployers.EJBStage2Deployer">
+      <depends>AspectLibrary</depends>
+   </bean>
+   
+   <bean name="AppClientParsingDeployer" class="org.jboss.ejb3.deployers.AppClientParsingDeployer">
+      <property name="type">car</property>
+      <!-- TODO: check depends -->
+      <depends>AspectLibrary</depends>
+   </bean>
+   
+   <bean name="JBossClientParsingDeployer" class="org.jboss.ejb3.deployers.JBossClientParsingDeployer">
+      <property name="type">car</property>
+      <depends>AppClientParsingDeployer</depends>
+   </bean>
+   
+   <bean name="AppClientScanningDeployer" class="org.jboss.ejb3.deployers.AppClientScanningDeployer">
+      <depends>JBossClientParsingDeployer</depends>
+   </bean>
+   
+   <bean name="Ejb3ClientDeployer" class="org.jboss.ejb3.deployers.Ejb3ClientDeployer">
+      <property name="type">car</property>
+      <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
+      <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+      <!-- TODO: check depends -->
+      <depends>AspectLibrary</depends>
+      <depends>AppClientScanningDeployer</depends>
+   </bean>
+   
+   <!-- EJB3 Cache Factory Registry -->
+   <bean name="EJB3CacheFactoryRegistry" class="org.jboss.ejb3.cache.CacheFactoryRegistry">
+      <property name="factories">
+         <!-- Define each of the registered factories -->
+         <map class="java.util.HashMap" keyClass="java.lang.String"
+            valueClass="java.lang.Class">
+            <!-- NoPassivationCache -->
+            <entry>
+               <key>NoPassivationCache</key>
+               <value>org.jboss.ejb3.cache.NoPassivationCacheFactory</value>
+            </entry>
+            <!-- SimpleStatefulCache -->
+            <entry>
+               <key>SimpleStatefulCache</key>
+               <value>org.jboss.ejb3.cache.simple.SimpleStatefulCacheFactory</value>
+            </entry>
+            <!-- StatefulTreeCache -->
+            <entry>
+               <key>StatefulTreeCache</key>
+               <value>org.jboss.ejb3.cache.tree.StatefulTreeCacheFactory</value>
+            </entry>
+         </map>
+      </property>
+   </bean>
+   
+   <!-- EJB3 Pool Factory Registry -->
+   <bean name="EJB3PoolFactoryRegistry" class="org.jboss.ejb3.pool.PoolFactoryRegistry">
+      <property name="factories">
+         <!-- Define each of the registered factories -->
+         <map class="java.util.HashMap" keyClass="java.lang.String"
+            valueClass="java.lang.Class">
+            <!-- ThreadlocalPool -->
+            <entry>
+               <key>ThreadlocalPool</key>
+               <value>org.jboss.ejb3.pool.ThreadlocalPoolFactory</value>
+            </entry>
+            <!-- StrictMaxPool -->
+            <entry>
+               <key>StrictMaxPool</key>
+               <value>org.jboss.ejb3.pool.StrictMaxPoolFactory</value>
+            </entry>
+         </map>
+      </property>
+   </bean>
+   
+   <!-- Remoting Proxy Factory Registry -->
+   <bean name="EJB3RemoteProxyFactoryRegistry" class="org.jboss.ejb3.remoting.RemoteProxyFactoryRegistry">
+      <property name="factories">
+         <!-- Define each of the registered factories -->
+         <map class="java.util.HashMap" keyClass="java.lang.String"
+            valueClass="java.lang.Class">
+            <!-- RemoteProxyFactory -->
+            <entry>
+               <key>RemoteProxyFactory</key>
+               <value>org.jboss.ejb3.remoting.RemoteProxyFactory</value>
+            </entry>
+            <!-- IORFactory -->
+            <entry>
+               <key>IORFactory</key>
+               <value>org.jboss.ejb3.iiop.IORFactory</value>
+            </entry>
+            <!-- ServiceRemoteProxyFactory -->
+            <entry>
+               <key>ServiceRemoteProxyFactory</key>
+               <value>org.jboss.ejb3.service.ServiceRemoteProxyFactory</value>
+            </entry>
+            <!-- StatefulClusterProxyFactory -->
+            <!-- <entry>
+               <key>StatefulClusterProxyFactory</key>
+               <value>org.jboss.ejb3.stateful.StatefulClusterProxyFactory</value>
+            </entry>-->
+            <!-- StatefulRemoteProxyFactory -->
+            <entry>
+               <key>StatefulRemoteProxyFactory</key>
+               <value>org.jboss.ejb3.stateful.StatefulRemoteProxyFactory</value>
+            </entry>
+            <!-- StatelessClusterProxyFactory -->
+            <!-- <entry>
+               <key>StatelessClusterProxyFactory</key>
+               <value>org.jboss.ejb3.stateless.StatelessClusterProxyFactory</value>
+            </entry>-->
+            <!-- StatelessRemoteProxyFactory -->
+            <entry>
+               <key>StatelessRemoteProxyFactory</key>
+               <value>org.jboss.ejb3.stateless.StatelessRemoteProxyFactory</value>
+            </entry>            
+         </map>
+      </property>
+   </bean>
+   
+   <!-- EJB3 Persistence Manager Factory Registry -->
+   <bean name="EJB3PersistenceManagerFactoryRegistry" class="org.jboss.ejb3.cache.persistence.PersistenceManagerFactoryRegistry">
+      <property name="factories">
+         <!-- Define each of the registered factories -->
+         <map class="java.util.HashMap" keyClass="java.lang.String"
+            valueClass="java.lang.Class">
+            <!-- StatefulSessionFilePersistenceManager -->
+            <entry>
+               <key>StatefulSessionFilePersistenceManager</key>
+               <value>org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManagerFactory</value>
+            </entry>
+         </map>
+      </property>
+   </bean>
+   
+   <bean name="JNDIKernelRegistryPlugin" class="org.jboss.ejb3.kernel.JNDIKernelRegistryPlugin"/>
+   
+   <!-- Persistence Unit deployers -->
+   <bean name="PersistenceUnitParsingDeployer" class="org.jboss.ejb3.deployers.PersistenceUnitParsingDeployer">
+      <property name="type">car</property>
+   </bean>
+   
+</deployment>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/jboss-aspect-library-beans.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/jboss-aspect-library-beans.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/jboss-aspect-library-beans.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    Aspect  Deployer
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- Aspect Library -->
+   <bean name="AspectLibrary" class="org.jboss.aop.deployers.JBossAspectLibrary">
+      <property name="aspectManager"><inject bean="AspectManager"/></property>
+   </bean>
+
+   <!-- Add the JMX -->
+   <aop:lifecycle-configure xmlns:aop="urn:jboss:aop-beans:1.0"
+               name="JMXAdvice"
+               class="org.jboss.aop.microcontainer.aspects.jmx.JMXLifecycleCallback"
+               classes="@org.jboss.aop.microcontainer.aspects.jmx.JMX"
+               manager-bean="AspectManager"
+               manager-property="aspectManager">
+      <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+   </aop:lifecycle-configure>
+
+</deployment>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/jca-deployers-beans.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/jca-deployers-beans.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/jca-deployers-beans.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    JCA Deployers
+    $Id: jca-deployers-beans.xml 7115 2008-01-10 23:23:32Z pmuir $
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <bean name="JCAMetaDataRepository" class="org.jboss.resource.metadata.repository.DefaultJCAMetaDataRepository"/>
+            
+   <!-- RAR Deployment -->
+   <bean name="RARParserDeployer" class="org.jboss.resource.deployers.RARParserDeployer">
+      <property name="metaDataRepository"><inject bean="JCAMetaDataRepository"/></property>
+      <property name="type">rar</property>
+   </bean>
+   
+   <bean name="RARDeployer" class="org.jboss.resource.deployers.RARDeployer">
+      <property name="workManagerName">jboss.jca:service=WorkManager</property>
+      <property name="XATerminatorName">jboss:service=TransactionManager</property>
+      <property name="type">rar</property>
+   </bean>
+   
+   
+   
+   <!-- ConnectionFactory Deployment - ->  
+   
+   <bean name="ConnectionFactoryDeployer" class="org.jboss.system.deployers.ServiceXSLDeployer">
+      <property name="suffix">-ds.xml</property>
+      <property name="XSLPath">stylesheets/ConnectionFactoryTemplate.xsl</property>
+      <property name="type">jca-ds</property>
+   </bean>
+   
+   -->
+
+   <bean name="MCFBuilder" class="org.jboss.resource.deployers.builder.ManagedConnectionFactoryBuilder">
+      <property name="metaDataRepository"><inject bean="JCAMetaDataRepository"/></property>
+   </bean>   
+   
+   <bean name="PoolBuilder" class="org.jboss.resource.deployers.builder.ManagedConnectionPoolBuilder"/>
+   <bean name="ConnectionManagerBuilder" class="org.jboss.resource.deployers.builder.ConnectionManagerBuilder"/>
+   <bean name="ConnectionFactoryBindingBuilder" class="org.jboss.resource.deployers.builder.ConnectionFactoryBindingBuilder"/>
+   <bean name="MetaDataTypeMappingBuilder" class="org.jboss.resource.deployers.builder.MetaDataTypeMappingBuilder"/>
+   
+   <bean name="ManagedConnectionFactoryParserDeployer" class="org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer">
+      <property name="repository"><inject bean="JCAMetaDataRepository"></inject></property>
+      <property name="suffix">-ds.xml</property>      
+      <property name="type">jca-ds</property>
+   </bean>
+
+   <bean name="ManagedConnectionFactoryDeployer" class="org.jboss.resource.deployers.ManagedConnectionFactoryDeployer">      
+      <property name="repository"><inject bean="JCAMetaDataRepository"></inject></property>      
+      <property name="builders">
+         <list>
+            <inject bean="MCFBuilder"/>
+            <inject bean="PoolBuilder"/>
+            <inject bean="ConnectionManagerBuilder"/>
+            <inject bean="ConnectionFactoryBindingBuilder"/>
+            <inject bean="MetaDataTypeMappingBuilder"/>            
+         </list>            
+      </property>
+      <property name="type">jca-ds</property>
+   </bean>
+
+   <!-- The template for creating a datasource -->
+   <bean name="LocalTxDataSourceTemplate" class="org.jboss.resource.deployers.management.DsDataSourceTemplate">
+      <property name="info"><inject bean="LocalTxDataSourceTemplateInfo"/></property>
+   </bean>
+   <bean name="LocalTxDataSourceTemplateInfo"
+      class="org.jboss.resource.deployers.management.DsDataSourceTemplateInfo">
+      <constructor>
+         <parameter>LocalTxDataSourceTemplate</parameter>
+         <parameter>A template for datasource *-ds.xml deployments</parameter>
+         <parameter>local-tx-datasource</parameter>
+      </constructor>
+   </bean>
+   <bean name="XADataSourceTemplate" class="org.jboss.resource.deployers.management.DsDataSourceTemplate">
+      <property name="info"><inject bean="XADataSourceTemplateInfo"/></property>
+   </bean>
+   <bean name="XADataSourceTemplateInfo"
+      class="org.jboss.resource.deployers.management.DsDataSourceTemplateInfo">
+      <constructor>
+         <parameter>XADataSourceTemplate</parameter>
+         <parameter>A template for xa-datasource *-ds.xml deployments</parameter>
+         <parameter>xa-datasource</parameter>
+      </constructor>
+   </bean>
+   <bean name="NoTxDataSourceTemplate" class="org.jboss.resource.deployers.management.DsDataSourceTemplate">
+      <property name="info"><inject bean="NoTxDataSourceTemplateInfo"/></property>
+   </bean>
+   <bean name="NoTxDataSourceTemplateInfo"
+      class="org.jboss.resource.deployers.management.DsDataSourceTemplateInfo">
+      <constructor>
+         <parameter>NoTxDataSourceTemplate</parameter>
+         <parameter>A template for no-tx-datasource *-ds.xml deployments</parameter>
+         <parameter>no-tx-datasource</parameter>
+      </constructor>
+   </bean>
+   <bean name="TxConnectionFactoryTemplate" class="org.jboss.resource.deployers.management.DsDataSourceTemplate">
+      <property name="info"><inject bean="TxConnectionFactoryTemplateInfo"/></property>
+   </bean>
+   <bean name="TxConnectionFactoryTemplateInfo"
+      class="org.jboss.resource.deployers.management.DsDataSourceTemplateInfo">
+      <constructor>
+         <parameter>TxConnectionFactoryTemplate</parameter>
+         <parameter>A template for tx-connection-factory *-ds.xml deployments</parameter>
+         <parameter>tx-connection-factory</parameter>
+      </constructor>
+   </bean>
+   <bean name="NoTxConnectionFactoryTemplate" class="org.jboss.resource.deployers.management.DsDataSourceTemplate">
+      <property name="info"><inject bean="NoTxConnectionFactoryTemplateInfo"/></property>
+   </bean>
+   <bean name="NoTxConnectionFactoryTemplateInfo"
+      class="org.jboss.resource.deployers.management.DsDataSourceTemplateInfo">
+      <constructor>
+         <parameter>NoTxConnectionFactoryTemplate</parameter>
+         <parameter>A template for no-tx-connection-factory *-ds.xml deployments</parameter>
+         <parameter>no-tx-connection-factory</parameter>
+      </constructor>
+   </bean>
+   
+</deployment>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/metadata-beans.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/metadata-beans.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/metadata-beans.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,237 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    MetaData configuration
+    $Id: metadata-beans.xml 6916 2007-12-05 17:53:00Z pmuir $
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+	<!-- The reference metdata resolving deployer
+	-->
+   <bean name="ReferenceMetaDataResolverDeployer"
+      class="org.jboss.deployment.ReferenceMetaDataResolverDeployer">
+   </bean>
+   <bean name="AnnotationMetaDataDeployer"
+      class="org.jboss.deployment.AnnotationMetaDataDeployer">
+      <property name="metaDataCompleteIsDefault">true</property>
+   </bean>
+
+	<!-- The schema location to JBossXB binding class mappings. We specify the dtd/xsd name
+	of the schema as the location to work with legacy dtd as well as namespace based
+	documents.
+	-->
+   <bean name="SchemaResolverConfig"
+      class="org.jboss.xb.binding.sunday.unmarshalling.SchemaResolverConfig">
+      
+      <!-- schemaLocation to JBossXBuilder binding classes -->
+      <property name="bindingClassesByLocations">
+         <map keyClass="java.lang.String" valueClass="java.lang.String">
+            <!-- EarMetaData -->
+            <entry>
+               <key>application</key>
+               <value>org.jboss.metadata.ear.spec.Ear14MetaData</value>
+            </entry>
+            <entry>
+               <key>application_1_2.dtd</key>
+               <value>org.jboss.metadata.ear.spec.Ear13DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>application_1_3.dtd</key>
+               <value>org.jboss.metadata.ear.spec.Ear13DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>application_1_4.xsd</key>
+               <value>org.jboss.metadata.ear.spec.Ear14MetaData</value>
+            </entry>
+            <entry>
+               <key>application_5.xsd</key>
+               <value>org.jboss.metadata.ear.spec.Ear50MetaData</value>
+            </entry>
+            <!-- JBossAppMetaData -->
+            <entry>
+               <key>jboss-app</key>
+               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-app_3_0.dtd</key>
+               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-app_3_2.dtd</key>
+               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-app_4_0.dtd</key>
+               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-app_4_2.dtd</key>
+               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-app_5_0.dtd</key>
+               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-app_5_0.xsd</key>
+               <value>org.jboss.metadata.ear.jboss.JBoss50AppMetaData</value>
+            </entry>
+
+            <!-- ApplicationClientMetaData -->
+            <entry>
+               <key>application-client</key>
+               <value>org.jboss.metadata.client.spec.ApplicationClient14DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>application-client_1_2.dtd</key>
+               <value>org.jboss.metadata.client.spec.ApplicationClient14DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>application-client_1_3.dtd</key>
+               <value>org.jboss.metadata.client.spec.ApplicationClient14DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>application-client_1_4.xsd</key>
+               <value>org.jboss.metadata.client.spec.ApplicationClient14MetaData</value>
+            </entry>
+            <entry>
+               <key>application-client_5.xsd</key>
+               <value>org.jboss.metadata.client.spec.ApplicationClient5MetaData</value>
+            </entry>
+            <!-- ApplicationClientMetaData -->
+            <entry>
+               <key>jboss-client</key>
+               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-client_3_0.dtd</key>
+               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-client_3_2.dtd</key>
+               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-client_4_0.dtd</key>
+               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-client_4_2.dtd</key>
+               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-client_5_0.dtd</key>
+               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-client_5_0.xsd</key>
+               <value>org.jboss.metadata.client.jboss.JBossClient5MetaData</value>
+            </entry>
+            
+            <!-- EjbJarMetaData -->
+            <entry>
+               <key>ejb-jar</key>
+               <value>org.jboss.metadata.ejb.spec.EjbJar20MetaData</value>
+            </entry>
+            <entry>
+               <key>ejb-jar_1_1.dtd</key>
+               <value>org.jboss.metadata.ejb.spec.EjbJar1xMetaData</value>
+            </entry>
+            <entry>
+               <key>ejb-jar_2_0.dtd</key>
+               <value>org.jboss.metadata.ejb.spec.EjbJar20MetaData</value>
+            </entry>
+            <entry>
+               <key>ejb-jar_2_1.xsd</key>
+               <value>org.jboss.metadata.ejb.spec.EjbJar21MetaData</value>
+            </entry>
+            <entry>
+               <key>ejb-jar_3_0.xsd</key>
+               <value>org.jboss.metadata.ejb.spec.EjbJar30MetaData</value>
+            </entry>
+            
+            <!-- JBossMetaData -->
+            <entry>
+               <key>jboss</key>
+               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
+            </entry>            
+            <entry>
+               <key>jboss_3_0.dtd</key>
+               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
+            </entry>            
+            <entry>
+               <key>jboss_3_2.dtd</key>
+               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
+            </entry>            
+            <entry>
+               <key>jboss_4_0.dtd</key>
+               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
+            </entry>            
+            <entry>
+               <key>jboss_4_2.dtd</key>
+               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
+            </entry>            
+            <entry>
+               <key>jboss_5_0.dtd</key>
+               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
+            </entry>            
+            <entry>
+               <key>jboss_5_0.xsd</key>
+               <value>org.jboss.metadata.ejb.jboss.JBoss50MetaData</value>
+            </entry>
+            
+            <!-- WebMetaData -->
+            <entry>
+               <key>web-app</key>
+               <value>org.jboss.metadata.web.spec.Web23MetaData</value>
+            </entry>
+            <entry>
+               <key>web-app_2_2.dtd</key>
+               <value>org.jboss.metadata.web.spec.Web23MetaData</value>
+            </entry>
+            <entry>
+               <key>web-app_2_3.dtd</key>
+               <value>org.jboss.metadata.web.spec.Web23MetaData</value>
+            </entry>
+            <entry>
+               <key>web-app_2_4.xsd</key>
+               <value>org.jboss.metadata.web.spec.Web24MetaData</value>
+            </entry>
+            <entry>
+               <key>web-app_2_5.xsd</key>
+               <value>org.jboss.metadata.web.spec.Web25MetaData</value>
+            </entry>
+            <!-- JBossWebMetaData -->
+            <entry>
+               <key>jboss-web</key>
+               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-web_3_0.dtd</key>
+               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-web_3_2.dtd</key>
+               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-web_4_0.dtd</key>
+               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-web_4_2.dtd</key>
+               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-web_5_0.dtd</key>
+               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
+            </entry>
+            <entry>
+               <key>jboss-web_5_0.xsd</key>
+               <value>org.jboss.metadata.web.jboss.JBoss50WebMetaData</value>
+            </entry>
+         </map>
+      </property>
+   </bean>
+   
+</deployment>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/security-deployer-beans.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/security-deployer-beans.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/deployers/security-deployer-beans.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    Security Deployer
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="SecurityDeployer" class="org.jboss.deployment.security.SecurityDeployer">
+      <property name="type">security</property>
+      <property name="ignoreSuffixes">
+          <set elementClass="java.lang.String">
+               <value>xml</value>
+               <value>beans</value>
+               <value>deployer</value>
+               <value>rar</value>
+               <value>properties</value>
+          </set>
+       </property>
+   </bean>
+
+   <!-- JNDI Object Factory to establish SecurityDomainContext objects -->
+   <bean name="SecurityDomainObjectFactory" class="org.jboss.security.integration.SecurityDomainObjectFactory" />
+
+   <!-- JNDI Context legacy establishment of java:/jaas/securityDomain -->
+   <bean name="JBossSecurityJNDIContextEstablishment" class="org.jboss.security.integration.JNDIContextEstablishment"/>
+
+   <!-- JNDI Based Security Management -->
+   <bean name="JNDIBasedSecurityManagement" class="org.jboss.security.integration.JNDIBasedSecurityManagement">
+   </bean>
+
+</deployment>

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/jndi.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/jndi.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/jndi.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,4 @@
+# DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING
+#
+java.naming.factory.initial=org.jboss.naming.JBossRemotingContextFactory
+java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

Added: projects/demos/trainticket-demo/user_registration/trunk/bootstrap/log4j.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/bootstrap/log4j.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/bootstrap/log4j.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+        <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+        <param name="Target" value="System.out"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <!-- The default pattern: Date Priority [Category] Message\n -->
+            <param name="ConversionPattern" value="%-5p [%c{6}] %m%n"/>
+        </layout>
+    </appender>
+
+    <!-- ############### Embedded JBoss AS #################  -->
+    <category name="org.jboss">
+        <priority value="ERROR"/>
+    </category>
+    <category name="com.arjuna">
+        <priority value="ERROR"/>
+    </category>
+    
+    <!-- EMB-6, JMS activation throws an error due to deployment ordering, but as there is a timeout
+    and retry the tests pass. Hide the error message -->
+    <category name="jboss.resource.adapter.jms.inflow.JmsActivation">
+        <priority value="ERROR"/>
+    </category>
+
+    <!-- ############### Hibernate logging ################# -->
+
+    <category name="org.hibernate">
+        <priority value="ERROR"/>
+    </category>
+
+    <!--
+    <category name="org.hibernate.SQL">
+        <priority value="TRACE"/>
+    </category>
+    <category name="org.hibernate.type">
+        <priority value="TRACE"/>
+    </category>
+    <category name="org.hibernate.loader">
+        <priority value="TRACE"/>
+    </category>
+    <category name="org.hibernate.cache">
+        <priority value="TRACE"/>
+    </category>
+    -->
+
+    <!-- Ajax4jsf is too noisy -->
+    <category name="org.ajax4jsf.cache">
+        <priority value="WARN"/>
+    </category>
+
+
+    <!-- ############### Seam logging ################### -->
+    <category name="org.jboss.seam">
+        <priority value="WARN"/>
+    </category>
+
+
+
+    <!-- These things are too noisy
+    <category name="org.jboss.seam.jsf.SeamVariableResolver">
+        <priority value="INFO"/>
+    </category>
+    <category name="org.jboss.seam.contexts.Contexts">
+        <priority value="INFO"/>
+    </category>
+    <category name="org.jboss.seam.Component">
+        <priority value="INFO"/>
+    </category>
+    <category name="org.jboss.seam.deployment.Scanner">
+        <priority value="INFO"/>
+    </category>
+    <category name="org.jboss.seam.util.Naming">
+        <priority value="INFO"/>
+    </category>
+    <category name="org.jboss.seam.debug.hot">
+        <priority value="INFO"/>
+    </category>
+    <category name="org.jboss.seam.core.Events">
+        <priority value="INFO"/>
+    </category>
+    -->
+
+    <!-- Debugging conversations and persistence contexts
+    <category name="org.jboss.seam.core.Manager">
+        <priority value="DEBUG"/>
+    </category>
+    <category name="org.jboss.seam.core.ManagedPersistenceContext">
+        <priority value="DEBUG"/>
+    </category>
+    <category name="org.jboss.seam.jsf.AbstractSeamPhaseListener">
+        <priority value="DEBUG"/>
+    </category>
+    <category name="org.jboss.seam.interceptors.ConversationInterceptor">
+        <priority value="DEBUG"/>
+    </category>
+    <category name="org.jboss.seam.contexts.Lifecycle">
+        <priority value="DEBUG"/>
+    </category>
+    <category name="org.hibernate.impl.SessionImpl">
+        <priority value="DEBUG"/>
+    </category>
+    <category name="org.hibernate.event.def.AbstractFlushingEventListener">
+        <priority value="DEBUG"/>
+    </category>
+    -->
+
+    <root>
+        <priority value="INFO"/>
+        <appender-ref ref="CONSOLE"/>
+    </root>
+
+</log4j:configuration>

Added: projects/demos/trainticket-demo/user_registration/trunk/build-dev.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/build-dev.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/build-dev.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,2 @@
+debug=true
+action.dir=/WEB-INF/dev

Added: projects/demos/trainticket-demo/user_registration/trunk/build-prod.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/build-prod.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/build-prod.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1 @@
+debug=false

Added: projects/demos/trainticket-demo/user_registration/trunk/build.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/build.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/build.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,6 @@
+jboss.home=/home/jbarrez/dev/blog/jboss_world_demo/jboss-4.2.3.GA
+jboss.domain=default
+glassfish.home=C:/Program Files/glassfish-v2.1
+glassfish.domain=domain1
+# Uncomment to stop the build from deploying the datasource to GlassFish
+#glassfish.datasource.useDefault=true

Added: projects/demos/trainticket-demo/user_registration/trunk/build.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/build.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/build.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,505 @@
+<?xml version="1.0"?>
+<project name="user_registration" default="deploy" basedir=".">
+
+    <!-- Give user a chance to override without editing this file or typing -D -->
+    <property file="${basedir}/build.properties"/>
+
+    <property name="profile" value="dev"/>
+    <property file="build-${profile}.properties"/>
+
+    <!-- set global properties for this build -->
+    <property name="project.name" value="user_registration"/>
+    <property name="project.ear" value="true"/>
+    <property name="richfaces.present" value="true"/>
+    <property name="dist.dir" value="dist"/>
+    <property name="src.model.dir" value="src/main"/>
+    <property name="src.action.dir" value="src/hot"/>
+    <property name="src.test.dir" value="src/test"/>
+    <property name="lib.dir" value="lib"/>
+    <property name="endorsed.dir" value="${lib.dir}/endorsed"/>
+    <property name="ear.dir" value="exploded-archives/${project.name}.ear"/>
+    <property name="exploded.archive.dir" value="${ear.dir}"/>
+    <property name="jar.dir" value="${ear.dir}/${project.name}_jar"/>
+    <property name="war.dir" value="${ear.dir}/${project.name}_war"/>
+    <property name="test.dir" value="test-build"/>
+    <property name="bootstrap.dir" value="${basedir}/bootstrap"/>
+    <property name="jboss.domain" value="default"/>
+    <property name="deploy.dir" value="${jboss.home}/server/${jboss.domain}/deploy"/>
+    <property name="ear.deploy.dir" value="${deploy.dir}/${project.name}.ear"/>
+    <property name="jar.deploy.dir" value="${ear.deploy.dir}/${project.name}.jar"/>
+    <property name="war.deploy.dir" value="${ear.deploy.dir}/${project.name}.war"/>
+    <property name="packaged.archive" value="${dist.dir}/${project.name}.ear"/>
+    <property name="testng.jar" value="${basedir}/lib/testng.jar"/>
+    <property name="javac.debug" value="true"/>
+    <property name="javac.deprecation" value="false"/>
+    <property name="debug" value="false"/>
+
+    <!--Properties for validating configuration files -->
+    <property name="validate.resources.dir" value="${basedir}/exploded-archives"/>
+    <property name="schema.dir" value="${basedir}/exploded-archives/schemas"/>
+    <property name="src.schema.dir" value="${schema.dir}/org/jboss/seam"/>
+    <property name="schema.version" value="2.2"/>
+
+    <fileset id="lib" dir="${lib.dir}">
+        <include name="*.jar"/>
+    </fileset>
+
+    <path id="build.classpath">
+        <fileset refid="lib"/>
+    </path>
+
+    <!-- Import GlassFish deployment targets -->
+    <import file="${basedir}/glassfish-build.xml"/>
+
+    <target name="init" description="Initialize the build">
+        <taskdef name="groovyc"
+            classname ="org.codehaus.groovy.ant.Groovyc"
+            classpathref="build.classpath"/> <!-- really only the groovy jar is necessary -->
+        <mkdir dir="${jar.dir}"/>
+        <mkdir dir="${ear.dir}"/>
+        <mkdir dir="${war.dir}"/>
+        <mkdir dir="${dist.dir}"/>
+
+        <condition property="is.debug" value="true">
+            <istrue value="${debug}"/>
+        </condition>
+        <property name="transactionManagerLookupClass" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
+        <property name="ejbJndiPattern" value="${project.name}/#{ejbName}/local"/>
+        <property name="seamBootstrapsPu" value="false"/>
+        <property name="seamEmfRef" value="#{null}"/>
+        <condition property="puJndiName" value="java:comp/env/${project.name}/pu" else="java:/${project.name}EntityManagerFactory">
+            <available file="${jboss.home}/lib/jboss-vfs.jar"/> <!-- JBoss AS >= 5.0 -->
+        </condition>
+
+        <filterset id="persistence">
+            <filter token="transactionManagerLookupClass" value="${transactionManagerLookupClass}"/>
+        </filterset>
+        <filterset id="seam">
+            <filter token="ejbJndiPattern" value="${ejbJndiPattern}"/>
+            <filter token="seamBootstrapsPu" value="${seamBootstrapsPu}"/>
+            <filter token="seamEmfRef" value="${seamEmfRef}"/>
+            <filter token="puJndiName" value="${puJndiName}"/>
+        </filterset>
+        <filterset id="profile">
+            <filter token="debug" value="${debug}"/>
+        </filterset>
+
+        <!-- if a .groovy file is in model or action, set groovy.present -->
+        <available property="groovy.present" value="true" file="" searchparents="true">
+            <filepath>
+                <fileset dir="${src.action.dir}">
+                    <include name="**/*.groovy"/>
+                </fileset>
+                <fileset dir="${src.model.dir}">
+                    <include name="**/*.groovy"/>
+                </fileset>
+            </filepath>
+        </available>
+        <condition property="groovy.test.present" value="true">
+            <or>
+                <isset property="groovy.present"/>
+                <available file="" searchparents="true">
+                    <filepath>
+                        <fileset dir="${src.test.dir}">
+                            <include name="**/*.groovy"/>
+                        </fileset>
+                    </filepath>
+                </available>
+            </or>
+        </condition>
+        <!-- NOTE: Seam does not properly detect uncompiled groovy classes in an EAR -->
+        <condition property="groovy.dynamic" value="true">
+            <and>
+                <isset property="groovy.present"/>
+                <istrue value="${debug}"/>
+            </and>
+        </condition>
+        <condition property="groovy.static" value="true">
+            <and>
+                <isset property="groovy.present"/>
+                <isfalse value="${debug}"/>
+            </and>
+        </condition>
+    </target>
+
+    <target name="groovy.compile" if="groovy.static">
+        <groovyc classpathref="build.classpath"
+            destdir="${jar.dir}"
+            srcdir="${src.model.dir}">
+        </groovyc>
+        <path id="groovy.action.classpath">
+            <path refid="build.classpath"/>
+            <dirset dir="${jar.dir}"/>
+        </path>
+        <groovyc classpathref="groovy.action.classpath"
+            destdir="${jar.dir}"
+            srcdir="${src.action.dir}">
+        </groovyc>
+    </target>
+
+    <target name="groovy.copy" if="groovy.dynamic">
+        <copy todir="${jar.dir}">
+            <fileset dir="${src.action.dir}">
+                <include name="**/*.groovy"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="compile" depends="init,groovy.compile,groovy.copy"
+        description="Compile the Java source code"
+        unless="eclipse.running">
+        <javac classpathref="build.classpath"
+            destdir="${jar.dir}"
+            debug="${javac.debug}"
+            deprecation="${javac.deprecation}"
+            nowarn="on">
+            <src path="${src.model.dir}"/>
+            <src path="${src.action.dir}"/>
+        </javac>
+    </target>
+
+    <target name="copyclasses" depends="init"
+        description="Copy the classes that were compiled by eclipse"
+        if="eclipse.running">
+        <copy todir="${jar.dir}">
+            <fileset dir="classes/main">
+                <include name="**/*.class"/>
+            </fileset>
+            <fileset dir="classes/hot">
+                <include name="**/*.class"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="jar" depends="compile,copyclasses"
+        description="Build the JAR structure in a staging directory">
+        <copy todir="${jar.dir}">
+            <fileset dir="${src.model.dir}">
+                <include name="**/*.component.xml" />
+            </fileset>
+            <fileset dir="${basedir}/resources">
+                <include name="seam.properties"/>
+                <include name="*.drl"/>
+                <include name="META-INF/*.drl"/>
+            </fileset>
+        </copy>
+        <copy todir="${jar.dir}/META-INF">
+            <fileset dir="${basedir}/resources/META-INF">
+                <include name="ejb-jar.xml"/>
+                <include name="orm.xml"/>
+            </fileset>
+        </copy>
+        <copy tofile="${jar.dir}/META-INF/persistence.xml"
+            file="${basedir}/resources/META-INF/persistence-${profile}.xml">
+            <filterset refid="persistence"/>
+        </copy>
+        <copy tofile="${jar.dir}/import.sql"
+            file="${basedir}/resources/import-${profile}.sql"/>
+    </target>
+
+    <target name="war" depends="compile"
+        description="Build the WAR structure in a staging directory">
+        <copy todir="${war.dir}">
+            <fileset dir="${basedir}/view"/>
+        </copy>
+        <copy tofile="${war.dir}/WEB-INF/classes/components.properties"
+            file="${basedir}/resources/components-${profile}.properties">
+            <filterset refid="seam"/>
+            <filterset refid="profile"/>
+        </copy>
+        <copy todir="${war.dir}/WEB-INF">
+            <fileset dir="${basedir}/resources/WEB-INF">
+                <include name="*.*"/>
+                <include name="lib/*.*"/>
+                <exclude name="web.xml"/>
+            </fileset>
+        </copy>
+        <copy todir="${war.dir}/WEB-INF/lib">
+            <fileset dir="${lib.dir}">
+                <includesfile name="deployed-jars-war.list"/>
+                <exclude name="jboss-seam-gen.jar"/>
+                <exclude name="jboss-seam-debug.jar" unless="is.debug"/>
+            </fileset>
+        </copy>
+        <copy todir="${war.dir}/WEB-INF/classes">
+            <fileset dir="${basedir}/resources">
+                <include name="messages*.properties"/>
+                <include name="*.skin.properties" if="richfaces.present"/>
+                <include name="*_theme.properties"/>
+                <include name="**/*.xcss" if="richfaces.present"/>
+            </fileset>
+            <!-- move XCSS into classpath for now
+                 loading from web context only works in JBoss AS 4 -->
+            <fileset dir="${basedir}/view">
+                <include name="**/*.xcss" if="richfaces.present"/>
+            </fileset>
+        </copy>
+        <copy todir="${war.dir}/WEB-INF" 
+              file="${basedir}/resources/WEB-INF/web.xml">
+            <filterset refid="profile"/>
+        </copy>
+    </target>
+
+    <target name="ear" description="Build the EAR structure in a staging directory">
+        <copy todir="${ear.dir}">
+            <fileset dir="${basedir}/resources">
+                <include name="*jpdl.xml"/>
+                <include name="*hibernate.cfg.xml"/>
+                <include name="jbpm.cfg.xml"/>
+            </fileset>
+            <fileset dir="${lib.dir}">
+                <include name="jboss-seam.jar"/>
+            </fileset>
+        </copy>
+        <copy todir="${ear.dir}/lib">
+            <fileset dir="${lib.dir}">
+                <includesfile name="deployed-jars-ear.list"/>
+                <exclude name="icefaces-ahs.jar" if="icefaces.present"/>
+            </fileset>
+        </copy>
+        <copy todir="${ear.dir}/META-INF">
+            <fileset dir="${basedir}/resources/META-INF">
+                <include name="application.xml"/>
+                <include name="jboss-app.xml"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="clear-profile-artifacts" depends="init"
+        description="Clear compiled cache of profile-specific artifacts in anticipation of a profile change">
+        <delete file="${jar.dir}/META-INF/persistence.xml"/>
+        <delete file="${jar.dir}/import.sql"/>
+        <delete file="${war.dir}/WEB-INF/classes/components.properties"/>
+    </target>
+
+    <target name="stage" depends="jar,war,ear"/>
+
+    <target name="archive" depends="clear-profile-artifacts,stage"
+        description="Package the archives">
+        <jar jarfile="${dist.dir}/${project.name}.jar" basedir="${jar.dir}"/>
+        <jar jarfile="${dist.dir}/${project.name}.war" basedir="${war.dir}"/>
+        <jar jarfile="${dist.dir}/${project.name}.ear">
+            <fileset dir="${ear.dir}">
+                <exclude name="${project.name}_jar/**"/>
+                <exclude name="${project.name}_war/**"/>
+            </fileset>
+            <fileset dir="${dist.dir}">
+                <include name="${project.name}.jar"/>
+                <include name="${project.name}.war"/>
+            </fileset>
+        </jar>
+    </target>
+
+    <target name="datasource">
+    	<!-- Datasource is already set by jBPM-on-rails 
+        <fail unless="jboss.home">jboss.home not set</fail>
+        <copy file="${basedir}/resources/${project.name}-${profile}-ds.xml"
+            tofile="${deploy.dir}/${project.name}-ds.xml"/>
+            -->
+    </target>
+
+    <target name="explode" depends="stage,datasource"
+        description="Deploy the exploded archive">
+        <fail unless="jboss.home">jboss.home not set</fail>
+
+        <copy todir="${ear.deploy.dir}">
+            <fileset dir="${ear.dir}">
+                <include name="**/*"/>
+                <exclude name="${project.name}_jar/**"/>
+                <exclude name="${project.name}_war/**"/>
+            </fileset>
+        </copy>
+        <copy todir="${jar.deploy.dir}">
+            <fileset dir="${jar.dir}"/>
+        </copy>
+        <copy todir="${war.deploy.dir}">
+            <fileset dir="${war.dir}"/>
+        </copy>
+    </target>
+
+    <target name="unexplode" description="Undeploy the exploded archive">
+        <delete failonerror="no">
+            <fileset dir="${ear.deploy.dir}">
+                <exclude name="**/*.jar"/>
+            </fileset>
+        </delete>
+        <delete file="${deploy.dir}/${project.name}-ds.xml" failonerror="no"/>
+        <delete dir="${ear.deploy.dir}" failonerror="no"/>
+    </target>
+
+    <target name="reexplode" depends="unexplode,clean,explode"
+        description="Undeploy the exploded archive, clean, then deploy the exploded archive"/>
+
+    <target name="check-deployed" description="Check to see if packaged archive is currently deployed">
+        <fail unless="jboss.home">jboss.home not set</fail>
+        <condition property="archive.deployed" value="true">
+            <available file="${ear.deploy.dir}" type="file"/>
+        </condition>
+    </target>
+
+    <target name="restart-exploded" unless="archive.deployed" description="Deploy exploded archive if not deployed as packaged archive">
+        <antcall target="explode"/>
+        <touch file="${ear.deploy.dir}/META-INF/application.xml"/>
+    </target>
+
+    <target name="restart-deployed" if="archive.deployed" description="Deploy packaged archive if deployed as packaged archive">
+        <antcall target="deploy"/>
+    </target>
+
+    <target name="restart" depends="check-deployed,clear-profile-artifacts,restart-exploded,restart-deployed" description="Restart the exploded archive"/>
+
+    <target name="deploy" depends="archive,datasource" description="Deploy the packaged archive">
+        <fail unless="jboss.home">jboss.home not set</fail>
+        <copy todir="${deploy.dir}" file="${dist.dir}/${project.name}.ear"/>
+    </target>
+
+    <target name="undeploy" description="Undeploy the packaged archive">
+        <delete file="${deploy.dir}/${project.name}.ear"/>
+        <delete file="${deploy.dir}/${project.name}-ds.xml"/>
+    </target>
+
+    <target name="redeploy" depends="undeploy,clean,deploy"
+        description="Undeploy the packaged archive, clean, then deploy the packaged archive"/>
+
+    <target name="clean" description="Cleans up the staging directory">
+        <delete dir="${dist.dir}"/>
+        <delete dir="${basedir}/exploded-archives"/>
+        <delete dir="${src.schema.dir}" failonerror="no"/>
+        <delete dir="${basedir}/test-report"/>
+        <delete dir="${basedir}/test-output"/>
+        <delete failonerror="no" includeemptydirs="true">
+            <fileset dir="${test.dir}">
+                <exclude name="**/*.class" if="eclipse.running"/>
+            </fileset>
+        </delete>
+    </target>
+
+    <target name="compiletest" depends="groovy.compiletest" unless="eclipse.running" description="Compile the Java source code for the tests">
+        <mkdir dir="${test.dir}"/>
+        <javac classpathref="build.classpath"
+            destdir="${test.dir}"
+            debug="${javac.debug}"
+            deprecation="${javac.deprecation}"
+            nowarn="on">
+            <src path="${src.action.dir}"/>
+            <src path="${src.model.dir}"/>
+            <src path="${src.test.dir}"/>
+        </javac>
+    </target>
+
+    <target name="groovy.compiletest" if="groovy.test.present" description="Compile the Groovy source code for the tests">
+        <mkdir dir="${test.dir}"/>
+        <groovyc classpathref="build.classpath"
+            destdir="${test.dir}">
+            <src path="${src.action.dir}"/>
+            <src path="${src.model.dir}"/>
+            <src path="${src.test.dir}"/>
+        </groovyc>
+    </target>
+
+    <target name="copytestclasses" if="eclipse.running" description="Copy classes compiled by eclipse to the test dir">
+    <mkdir dir="${test.dir}"/>
+        <copy todir="${test.dir}">
+            <fileset dir="classes/main">
+                <include name="**/*.class"/>
+            </fileset>
+        </copy>
+        <copy todir="${test.dir}">
+            <fileset dir="classes/hot">
+                <include name="**/*.class"/>
+            </fileset>
+        </copy>
+        <copy todir="${test.dir}">
+            <fileset dir="classes/test">
+                <include name="**/*.class"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="buildtest" depends="init,compiletest,copytestclasses" description="Build the tests">
+        <copy todir="${test.dir}">
+            <fileset dir="${basedir}/resources">
+                <exclude name="META-INF/persistence*.xml"/>
+                <exclude name="import*.sql"/>
+                <exclude name="${project.name}-*-ds.xml"/>
+                <exclude name="components-*.properties"/>
+            </fileset>
+            <fileset dir="${basedir}/view"/>
+        </copy>
+        <copy tofile="${test.dir}/META-INF/persistence.xml"
+            file="${basedir}/resources/META-INF/persistence-test.xml"/>
+        <copy tofile="${test.dir}/import.sql"
+            file="${basedir}/resources/import-test.sql"/>
+        <copy tofile="${test.dir}/components.properties"
+            file="${basedir}/resources/components-test.properties"/>
+        <copy todir="${test.dir}" flatten="true">
+            <fileset dir="${src.test.dir}">
+                <include name="**/*Test.xml"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="test" depends="buildtest" description="Run the tests">
+        <fail message="Cannot run tests because path to project contains spaces.">
+            <condition>
+                <contains string="${basedir}" substring=" "/>
+            </condition>
+        </fail>
+        <condition property="incompatible.jdk" value="true">
+            <and>
+                <equals arg1="${ant.java.version}" arg2="1.6"/>
+                <not><available classname="javax.xml.bind.JAXB"/></not>
+            </and>
+        </condition>
+        <fail if="incompatible.jdk">You are using an incompatible JDK 6. Please use Sun JDK 6 Update 4 (1.6.0_04) or newer or use Open JDK 6.</fail>
+        <taskdef resource="testngtasks" classpath="${testng.jar}"/>
+        <path id="test.path">
+            <path path="${test.dir}"/>
+            <fileset dir="${lib.dir}/test">
+                <include name="*.jar"/>
+            </fileset>
+            <path path="${bootstrap.dir}"/>
+            <path refid="build.classpath"/>
+        </path>
+        <testng outputdir="${basedir}/test-report">
+            <jvmarg line="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
+            <classpath refid="test.path"/>
+            <xmlfileset dir="${test.dir}" includes="*Test.xml"/>
+        </testng>
+    </target>
+
+    <target name="javadoc" depends="compile">
+        <mkdir dir="${dist.dir}/apidoc"/>
+        <javadoc classpathref="build.classpath" destdir="${dist.dir}/apidoc" use="true" protected="true" version="true" windowtitle="${project.name} API Documentation" doctitle="${project.name} API Documentation" link="http://java.sun.com/j2se/5.0/docs/api">
+            <packageset dir="${src.action.dir}" defaultexcludes="yes">
+                <include name="*/**"/>
+            </packageset>
+            <packageset dir="${src.model.dir}" defaultexcludes="yes">
+                <include name="*/**"/>
+            </packageset>
+        </javadoc>
+    </target>
+
+    <!-- deprecated -->
+    <target name="validateConfiguration" depends="validate"/>
+
+    <target name="validate" depends="stage" description="Validate the XML configuration files">
+        <mkdir dir="${schema.dir}"/>
+        <unjar src="${lib.dir}/jboss-seam.jar" dest="${schema.dir}">
+            <patternset>
+                <include name="org/jboss/seam/*.xsd"/>
+                <include name="org/jboss/seam/*.dtd"/>
+            </patternset>
+        </unjar>
+        <ant antfile="validate.xml" target="validateConfiguration"/>
+    </target>
+
+    <target name="purge" depends="undeploy" description="Clean out JBoss AS temporary deployment files">
+        <delete dir="${jboss.home}/server/default/tmp/deploy"/>
+        <mkdir dir="${jboss.home}/server/default/tmp/deploy/"/>
+        <delete dir="${jboss.home}/server/default/tmp/sessions"/>
+        <mkdir dir="${jboss.home}/server/default/tmp/sessions"/>
+        <delete dir="${jboss.home}/server/default/work/jboss.web/localhost/${project.name}"/>
+    </target>
+
+</project>

Added: projects/demos/trainticket-demo/user_registration/trunk/debug-glassfish-user_registration.launch
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/debug-glassfish-user_registration.launch	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/debug-glassfish-user_registration.launch	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.jdt.launching.remoteJavaApplication">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/user_registration"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.jdt.launching.ALLOW_TERMINATE" value="true"/>
+<mapAttribute key="org.eclipse.jdt.launching.CONNECT_MAP">
+<mapEntry key="port" value="9009"/>
+<mapEntry key="hostname" value="localhost"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="user_registration"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_CONNECTOR_ID" value="org.eclipse.jdt.launching.socketAttachConnector"/>
+</launchConfiguration>

Added: projects/demos/trainticket-demo/user_registration/trunk/debug-jboss-user_registration.launch
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/debug-jboss-user_registration.launch	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/debug-jboss-user_registration.launch	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.jdt.launching.remoteJavaApplication">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/user_registration"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.jdt.launching.ALLOW_TERMINATE" value="true"/>
+<mapAttribute key="org.eclipse.jdt.launching.CONNECT_MAP">
+<mapEntry key="port" value="8787"/>
+<mapEntry key="hostname" value="localhost"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="user_registration"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_CONNECTOR_ID" value="org.eclipse.jdt.launching.socketAttachConnector"/>
+</launchConfiguration>

Added: projects/demos/trainticket-demo/user_registration/trunk/deployed-jars-ear.list
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/deployed-jars-ear.list	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/deployed-jars-ear.list	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,15 @@
+antlr-runtime.jar
+commons-beanutils.jar
+core.jar
+drools-templates.jar
+drools-decisiontables.jar
+drools-compiler.jar
+drools-api.jar
+drools-core.jar
+groovy-all.jar
+janino.jar
+jboss-el.jar
+jboss-seam-remoting.jar
+jbpm-jpdl.jar
+mvel2.jar
+richfaces-api.jar

Added: projects/demos/trainticket-demo/user_registration/trunk/deployed-jars-war.list
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/deployed-jars-war.list	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/deployed-jars-war.list	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,17 @@
+commons-digester.jar
+jboss-seam-debug.jar
+jboss-seam-excel.jar
+jboss-seam-ioc.jar
+jboss-seam-mail.jar
+jboss-seam-pdf.jar
+jboss-seam-resteasy.jar
+jboss-seam-rss.jar
+jboss-seam-ui.jar
+jsf-facelets.jar
+jxl.jar
+richfaces-impl.jar
+richfaces-ui.jar
+# You can remove the JARs for themes you aren't using
+darkX.jar
+glassX.jar
+laguana.jar

Added: projects/demos/trainticket-demo/user_registration/trunk/explode.launch
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/explode.launch	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/explode.launch	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+	<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
+	<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+	<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
+	<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AFTER_CLEAN_TARGETS" value="clean,unexplode,restart,buildtest,"/>
+	<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,auto,"/>
+	<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+		<listEntry value="1"/>
+	</listAttribute>
+	<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
+	<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+	<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+	<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+	<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="clean,unexplode,restart,buildtest,"/>
+	<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AUTO_TARGETS" value="explode,buildtest,"/>
+	<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="user_registration"/>
+	<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+		<listEntry value="/user_registration/build.xml"/>
+	</listAttribute>
+	<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/user_registration/build.xml}"/>
+</launchConfiguration>

Added: projects/demos/trainticket-demo/user_registration/trunk/glassfish-build.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/glassfish-build.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/glassfish-build.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,220 @@
+<?xml version="1.0"?>
+<project name="user_registration-glassfish" basedir=".">
+    <!-- This file consists of Ant deployment targets for the GlassFish Application Server -->
+    <!-- Import this script into your Ant build using <import file="${basedir}/glassfish.build.xml"/> -->
+
+    <macrodef name="asadmin">
+        <attribute name="cmd"/>
+        <attribute name="args" default=""/>
+        <attribute name="log" default="true"/>
+        <element name="pre-conditions" optional="true"/>
+        <sequential>
+            <fail message="glassfish.home not set" unless="glassfish.home"/>
+            <fail message="glassfish.home does not point to a valid GlassFish installation">
+                <condition>
+                    <or>
+                        <length string="${glassfish.home}" trim="true" length="0"/>
+                        <and>
+                            <not><os family="windows"/></not>
+                            <not><available file="${glassfish.home}/bin/asadmin"/></not>
+                        </and>
+                        <and>
+                            <os family="windows"/>
+                            <not><available file="${glassfish.home}/bin/asadmin.bat"/></not>
+                        </and>
+                    </or>
+                </condition>
+            </fail>
+            <condition property="glassfish.domains.dir" value="${glassfish.home}/glassfish/domains" else="${glassfish.home}/domains">
+                <available file="${glassfish.home}/glassfish" type="dir"/>
+            </condition>
+            <fail message="glassfish.domain not set" unless="glassfish.domain"/>
+            <fail message="glassfish.domain not a valid GlassFish domain">
+                <condition>
+                    <or>
+                        <length string="${glassfish.domain}" trim="true" length="0"/>
+                        <not><available file="${glassfish.domains.dir}/${glassfish.domain}" type="dir"/></not>
+                    </or>
+                </condition>
+            </fail>
+            <pre-conditions/>
+			<!-- Windows batch files (.bat) cannot be executed directly. Must be executed using the command shell (cmd.exe) with the /c switch. -->
+            <condition property="asadmin.cmd" value="cmd.exe">
+                <os family="windows"/>
+            </condition>
+            <condition property="asadmin.arg1" value="/c ${glassfish.home}/bin/asadmin">
+                <os family="windows"/>
+            </condition>
+            <property name="asadmin.cmd" value="${glassfish.home}/bin/asadmin"/>
+            <property name="asadmin.arg1" value=""/>
+            <exec executable="${asadmin.cmd}">
+                <arg line="${asadmin.arg1}"/>
+                <arg value="@{cmd}"/>
+                <arg line="@{args}"/>
+                <redirector outputproperty="gf.cmd.output" alwayslog="@{log}"/>
+            </exec> 
+        </sequential>
+    </macrodef>
+
+    <target name="gf-init" description="Prepare properties for GlassFish">
+        <property name="transactionManagerLookupClass" value="org.hibernate.transaction.SunONETransactionManagerLookup"/>
+        <property name="ejbJndiPattern" value="java:comp/env/${project.name}/#{ejbName}/local"/>
+        <property name="seamBootstrapsPu" value="false"/>
+        <property name="seamEmfRef" value="#{null}"/>
+        <property name="puJndiName" value="java:comp/env/${project.name}/pu"/>
+    </target>
+
+    <target name="gf-start" description="Start GlassFish">
+        <asadmin cmd="start-domain" args="${glassfish.domain}"/>
+    </target>
+
+    <target name="gf-debug" description="Start GlassFish in debug mode">
+        <asadmin cmd="start-domain" args="--debug=true ${glassfish.domain}"/>
+    </target>
+
+    <target name="gf-stop" description="Stop GlassFish">
+        <asadmin cmd="stop-domain" args="${glassfish.domain}"/>
+    </target>
+
+    <target name="gf-reboot" depends="gf-stop,gf-start" description="Restart GlassFish"/>
+
+    <target name="gf-list-components" description="List archives deployed to GlassFish">
+        <asadmin cmd="list-components"/>
+    </target>
+
+    <target name="gf-list-jdbc-resources" description="List JDBC resources deployed to GlassFish">
+        <asadmin cmd="list-jdbc-resources"/>
+    </target>
+
+    <target name="gf-check-datasource" unless="glassfish.datasource.useDefault" description="Check if the datasource is registered with GlassFish">
+        <asadmin cmd="list-jdbc-resources" log="false"/>
+        <condition property="gf.needs.datasource">
+            <not><contains string="${gf.cmd.output}" substring="${project.name}Datasource"/></not>
+        </condition>
+    </target>
+
+    <target name="gf-deploy-datasource" depends="gf-check-datasource" if="gf.needs.datasource"
+        description="Deploy the datasource to GlassFish">
+        <asadmin cmd="add-resources" args="${basedir}/resources/glassfish-resources-${profile}.xml"/>
+    </target>
+
+    <target name="gf-cleanup-ear" if="project.ear">
+        <move todir="${war.dir}/WEB-INF/classes">
+            <fileset dir="${jar.dir}">
+                <include name="META-INF/orm.xml" if="project.ear"/>
+                <include name="META-INF/persistence.xml" if="project.ear"/>
+            </fileset>
+        </move>
+    </target>
+
+    <target name="gf-check-seam-exploded" if="project.ear">
+        <!-- This file has to be deleted each time since the exploded directory has a different name (doesn't block it) -->
+        <delete file="${ear.dir}/jboss-seam.jar"/>
+        <condition property="gf.explode.seam">
+            <and>
+                <isset property="project.ear"/>
+                <not><available file="${ear.dir}/jboss-seam_jar" type="dir"/></not>
+            </and>
+        </condition>
+    </target>
+
+    <target name="gf-explode-seam" depends="gf-check-seam-exploded" if="gf.explode.seam">
+        <mkdir dir="${ear.dir}/jboss-seam_jar"/>
+        <unjar src="${lib.dir}/jboss-seam.jar" dest="${ear.dir}/jboss-seam_jar"/>
+    </target>
+
+    <target name="gf-explode" depends="gf-stage,gf-explode-seam,gf-deploy-datasource"
+        description="Deploy the datasource and exploded archive to GlassFish">
+        <asadmin cmd="deploy" args="--name ${project.name} ${exploded.archive.dir}"/>
+    </target>
+
+    <target name="gf-restart" depends="gf-explode"/>
+
+    <target name="gf-reexplode" depends="clean,gf-undeploy,gf-explode"
+        description="Clean, undeploy, and deploy the datasource and exploded archive to GlassFish"/>
+
+    <target name="gf-redeploy" depends="clean,gf-undeploy,gf-deploy"
+        description="Clean, undeploy, and deploy the datasource and packaged archive to GlassFish"/>
+
+    <target name="gf-hotdeploy" depends="gf-stage" description="Publish hot deployable artifacts"/>
+
+    <target name="gf-stage" depends="gf-init,stage" description="Prepare the exploded archive targeting GlassFish">
+        <antcall target="gf-cleanup-ear"/>
+    </target>
+
+    <target name="gf-archive" depends="gf-init,archive" description="Prepare a packaged archive targeting GlassFish"/>
+
+    <target name="gf-deploy" depends="gf-archive,gf-deploy-datasource"
+        description="Deploy the datasource and packaged archive to GlassFish">
+        <asadmin cmd="deploy" args="--name ${project.name} ${packaged.archive}"/>
+    </target>
+
+    <target name="gf-unexplode" depends="gf-undeploy"/>
+
+    <target name="gf-undeploy-archive" description="Undeploy the archive from GlassFish">
+        <asadmin cmd="undeploy" args="${project.name}"/>
+    </target>
+
+    <target name="gf-undeploy-datasource" unless="glassfish.datasource.useDefault"
+        description="Undeploy the datasource from GlassFish">
+        <asadmin cmd="delete-jdbc-resource" args="${project.name}Datasource"/>
+        <asadmin cmd="delete-jdbc-connection-pool" args="${project.name}Pool"/>
+        <!-- Duplicate last two lines for each JDBC resource -->
+    </target>
+
+    <target name="gf-undeploy" depends="gf-undeploy-archive,gf-undeploy-datasource"
+        description="Undeploy the archive and datasource from GlassFish"/>
+
+    <target name="gf-prepare" depends="gf-stop,gf-deploy-hibernate"
+        description="Prepare GlassFish to run a Seam application"/>
+
+    <target name="gf-deploy-hibernate" description="Deploy Hibernate as a JPA provider on GlassFish">
+        <fail message="glassfish.home not set" unless="glassfish.home"/>
+        <fail message="glassfish.home does not point to a valid GlassFish installation">
+            <condition>
+                <or>
+                    <length string="${glassfish.home}" trim="true" length="0"/>
+                    <not><available file="${glassfish.home}/bin/asadmin"/></not>
+                </or>
+            </condition>
+        </fail>
+        <condition property="glassfish.v3" value="true">
+            <available file="${glassfish.home}/glassfish" type="dir"/>
+        </condition>
+        <condition property="glassfish.domains.dir" value="${glassfish.home}/glassfish/domains" else="${glassfish.home}/domains">
+            <isset property="glassfish.v3"/>
+        </condition>
+        <fail message="glassfish.domain not set" unless="glassfish.domain"/>
+        <fail message="glassfish.domain not a valid GlassFish domain">
+            <condition>
+                <or>
+                    <length string="${glassfish.domain}" trim="true" length="0"/>
+                    <not><available file="${glassfish.domains.dir}/${glassfish.domain}" type="dir"/></not>
+                </or>
+            </condition>
+        </fail>
+        <copy todir="${glassfish.domains.dir}/${glassfish.domain}/lib/ext" overwrite="true">
+            <fileset dir="${basedir}/lib">
+                <include name="antlr.jar"/>
+                <include name="asm.jar" unless="glassfish.v3"/>
+                <include name="asm-attrs.jar" unless="glassfish.v3"/>
+                <include name="cglib.jar" unless="glassfish.v3"/>
+                <include name="cglib-nodep.jar" if="glassfish.v3"/>
+                <include name="commons-collections.jar"/>
+                <include name="commons-logging.jar"/>
+                <include name="concurrent.jar"/>
+                <include name="dom4j.jar"/>
+                <include name="hibernate.jar"/>
+                <include name="hibernate-*.jar"/>
+                <exclude name="hibernate-search.jar"/>
+                <include name="javassist.jar"/>
+                <include name="jboss-common-core.jar"/>
+                <include name="jta.jar"/>
+                <include name="persistence-api.jar"/>
+                <!-- Include any required JDBC driver JARs below -->
+                <include name="hsqldb.jar"/>
+            </fileset>
+        </copy>
+    </target>
+
+</project>

Added: projects/demos/trainticket-demo/user_registration/trunk/glassfish-readme.txt
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/glassfish-readme.txt	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/glassfish-readme.txt	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,46 @@
+The GlassFish home directory and domain are set in the build.properties file adjacent to this readme.
+
+First, you must prepare GlassFish for a seam-gen project (i.e., deploy Hibernate as a JPA provider)
+
+  ant gf-prepare
+
+Next, you need to start GlassFish:
+
+  ant gf-start
+
+Finally, you can deploy the project:
+
+  ant gf-explode
+
+GlassFish deployment works out of the box for WAR projects. To deploy an EAR project, make the following changes:
+
+  1. Uncomment the <ejb-local-ref> entries in resources/WEB-INF/web.xml (include additional entries as necessary)
+  2. Strip the contents up to and including the # in the element <persistence-unit-name> in resources/WEB-INF/web.xml
+  3. Uncomment the <jar-file> element in resources/META-INF/persistence-dev.xml & resources/META-INF/persistence-prod.xml
+
+If you plan to use the default Derby datasource in GlassFish, named jdbc/__default, then uncomment the following property
+in the build.properties file at the root of the project to prevent the gf-deploy-datasource target from executing:
+
+  glassfish.datasource.useDefault=true
+
+When switching back and forth between a JBoss AS deployment and a GlassFish deployment, be sure to clean the project:
+
+  ant clean
+
+GlassFish command reference:
+
+gf-start - Starts GlassFish
+gf-debug - Starts GlassFish in debug mode
+gf-stop - Stops GlassFish
+gf-reboot - Restarts GlassFish
+gf-deploy-datasource - Deploys the datasource and connection pool to GlassFish
+gf-explode - Deploys the exploded archive to GlassFish (restarts application if already deployed)
+gf-hotdeploy - Hot deploys Java classes, Seam components, and view resources
+gf-reexplode - Cleans, undeploys, and deploys the exploded archive to GlassFish
+gf-deploy - Deploys the packaged archive to GlassFish
+gf-undeploy - Undeploys the exploded or packaged archive from GlassFish
+gf-redeploy - Cleans, undeploys, and deploys the packaged archive to GlassFish
+gf-stage - Prepares an exploded archive targeting GlassFish
+gf-archive - Prepares a packaged archive targeting GlassFish
+gf-prepare - Prepares GlassFish for a seam-gen project deployment (calls gf-deploy-hibernate)
+gf-deploy-hibernate - Deploys Hibernate as a JPA provider on GlassFish

Added: projects/demos/trainticket-demo/user_registration/trunk/hibernate-console.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/hibernate-console.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/hibernate-console.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,10 @@
+#File used by hibernate tools to override <datasource> and other container specific settings in persistence.xml
+hibernate.connection.password=
+hibernate.connection.username=sa
+hibernate.connection.driver_class=org.hsqldb.jdbcDriver
+hibernate.dialect=org.hibernate.dialect.HSQLDialect
+hibernate.connection.url=jdbc:hsqldb:.
+
+hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider
+hibernate.datasource=
+hibernate.transaction.manager_lookup_class=

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/FastInfoset.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/FastInfoset.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/activation.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/activation.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/ant-antlr.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/ant-antlr.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/antlr-runtime.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/antlr-runtime.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/antlr.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/antlr.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/bsh.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/bsh.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/cglib-nodep.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/cglib-nodep.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-beanutils.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-beanutils.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-codec.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-codec.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-collections.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-collections.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-digester.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-digester.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-httpclient.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-httpclient.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-io.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-io.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-lang.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-lang.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-logging.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/commons-logging.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/concurrent.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/concurrent.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/core.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/core.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/darkX.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/darkX.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/dbunit.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/dbunit.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/dom4j.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/dom4j.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-compiler.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-compiler.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-core.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-core.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-decisiontables.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-decisiontables.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-templates.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/drools-templates.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/ehcache.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/ehcache.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/ejb-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/ejb-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/ejb3-persistence.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/ejb3-persistence.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/el-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/el-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/emma.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/emma.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/glassX.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/glassX.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/groovy-all.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/groovy-all.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/guice.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/guice.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/gwt-servlet.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/gwt-servlet.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-annotations.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-annotations.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-commons-annotations.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-commons-annotations.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-core.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-core.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-entitymanager.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-entitymanager.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-search.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-search.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-validator.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/hibernate-validator.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/hsqldb.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/hsqldb.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/htmlparser.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/htmlparser.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/itext-rtf.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/itext-rtf.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/itext.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/itext.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/janino.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/janino.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/javassist.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/javassist.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jaxb-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jaxb-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jaxrs-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jaxrs-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jaxws-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jaxws-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-cache.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-cache.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-common-core.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-common-core.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-deployers-client-spi.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-deployers-client-spi.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-deployers-core-spi.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-deployers-core-spi.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-el.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-el.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-embedded-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-embedded-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-jmx.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-jmx.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-logging-spi.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-logging-spi.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-debug.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-debug.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-excel.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-excel.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-ioc.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-ioc.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-jul.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-jul.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-mail.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-mail.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-pdf.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-pdf.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-remoting.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-remoting.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-rss.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-rss.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-ui.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam-ui.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-seam.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-system.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-system.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-vfs.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jboss-vfs.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jbosscache-core.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jbosscache-core.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jbpm-jpdl.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jbpm-jpdl.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jcommon.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jcommon.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jettison.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jettison.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jfreechart.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jfreechart.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jgroups.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jgroups.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jms.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jms.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/joda-time.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/joda-time.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jsf-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jsf-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jsf-facelets.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jsf-facelets.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jsf-impl.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jsf-impl.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jsp-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jsp-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jsr181-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jsr181-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jsr250-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jsr250-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jta.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jta.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/junit.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/junit.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/jxl.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/jxl.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/laguna.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/laguna.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/log4j.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/log4j.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/lucene-core.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/lucene-core.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/mail.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/mail.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/meldware-mailapi.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/meldware-mailapi.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/meldware-mailjmx.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/meldware-mailjmx.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/metawidget-backend.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/metawidget-backend.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/metawidget-frontend.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/metawidget-frontend.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/metawidget.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/metawidget.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/mvel2.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/mvel2.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/openid4java.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/openid4java.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/openxri-client.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/openxri-client.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/openxri-syntax.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/openxri-syntax.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/persistence-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/persistence-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/portlet-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/portlet-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/quartz.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/quartz.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/resteasy-atom-provider.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/resteasy-atom-provider.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/resteasy-jaxb-provider.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/resteasy-jaxb-provider.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/resteasy-jaxrs.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/resteasy-jaxrs.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/richfaces-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/richfaces-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/richfaces-impl.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/richfaces-impl.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/richfaces-ui.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/richfaces-ui.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/saaj-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/saaj-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/servlet-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/servlet-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/sjsxp.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/sjsxp.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/slf4j-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/slf4j-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/slf4j-log4j12.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/slf4j-log4j12.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/spring.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/spring.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-debug-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-debug-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-excel-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-excel-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-ioc-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-ioc-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-mail-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-mail-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-pdf-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-pdf-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-remoting-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-remoting-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-resteasy-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-resteasy-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-rss-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-rss-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-ui-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-ui-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-wicket-ant-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-wicket-ant-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-wicket-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/src/jboss-seam-wicket-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/stax-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/stax-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/test/hibernate-all.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/test/hibernate-all.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/test/jboss-embedded-all.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/test/jboss-embedded-all.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/test/thirdparty-all.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/test/thirdparty-all.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/testng.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/testng.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/urlrewritefilter.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/urlrewritefilter.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/wicket-datetime.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/wicket-datetime.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/wicket-extensions.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/wicket-extensions.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/wicket-ioc.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/wicket-ioc.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/wicket.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/wicket.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/xml-apis.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/xml-apis.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/xpp3_min.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/xpp3_min.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/xstream.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/xstream.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/lib/yarfraw.jar
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/lib/yarfraw.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/nbproject/debug-jboss.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/nbproject/debug-jboss.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/nbproject/debug-jboss.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,5 @@
+# JBoss server related settings
+# Edit the following parameter according to your JBoss configuration
+jpda.host=localhost
+jpda.address=8787
+jpda.transport=dt_socket

Added: projects/demos/trainticket-demo/user_registration/trunk/nbproject/ide-file-targets.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/nbproject/ide-file-targets.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/nbproject/ide-file-targets.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir=".." name="user_registration-IDE">
+    
+  <property file="nbproject/debug-jboss.properties"/>
+
+  <target name="debug-nb">
+    <nbjpdaconnect name="user_registration" host="${jpda.host}" address="${jpda.address}" transport="${jpda.transport}">
+      <!--classpath>
+        <path path="exploded-archives/user_registration.jar"/>
+      </classpath>
+      <sourcepath>
+        <path path="src"/>
+      </sourcepath-->
+    </nbjpdaconnect>
+  </target>
+</project>

Added: projects/demos/trainticket-demo/user_registration/trunk/nbproject/project.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/nbproject/project.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/nbproject/project.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+    <type>org.netbeans.modules.ant.freeform</type>
+    <configuration>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
+            <!-- Do not use Project Properties customizer when editing this file manually. -->
+            <name>user_registration</name>
+            <properties/>
+            <folders>
+                <source-folder>
+                    <label>main</label>
+                    <type>java</type>
+                    <location>src/main</location>
+                </source-folder>
+                <source-folder>
+                    <label>hot</label>
+                    <type>java</type>
+                    <location>src/hot</location>
+                </source-folder>
+                <source-folder>
+                    <label>test</label>
+                    <type>java</type>
+                    <location>src/test</location>
+                </source-folder>
+                <source-folder>
+                    <label>view</label>
+                    <type>doc_root</type>
+                    <location>view</location>
+                </source-folder>
+            </folders>
+            <ide-actions>
+                <action name="clean">
+                    <target>clean</target>
+                    <target>unexplode</target>
+                </action>
+                <action name="build">
+                    <target>explode</target>
+                </action>
+                <action name="redeploy">
+                    <target>restart</target>
+                </action>
+                <action name="Undeploy">
+                    <target>unexplode</target>
+                </action>
+                <action name="test">
+                    <target>test</target>
+                </action>
+                <action name="debug">
+                    <script>nbproject/ide-file-targets.xml</script>
+                    <target>debug-nb</target>
+                </action>
+                <action name="rebuild">
+                    <target>clean</target>
+                    <target>unexplode</target>
+                    <target>explode</target>
+                </action>
+            </ide-actions>
+            <view>
+                <items>
+                    <source-folder style="packages">
+                        <label>main</label>
+                        <location>src/main</location>
+                    </source-folder>
+                    <source-folder style="packages">
+                        <label>hot</label>
+                        <location>src/hot</location>
+                    </source-folder>
+                    <source-folder style="packages">
+                        <label>test</label>
+                        <location>src/test</location>
+                    </source-folder>
+                    <source-folder style="tree">
+                        <label>view</label>
+                        <location>view</location>
+                    </source-folder>
+                    <source-folder style="tree">
+                        <label>resources</label>
+                        <location>resources</location>
+                    </source-folder>
+                    <source-file>
+                        <location>build.xml</location>
+                    </source-file>
+                </items>
+                <context-menu>
+                    <ide-action name="clean"/>
+                    <ide-action name="build"/>
+                    <ide-action name="redeploy"/>
+                    <ide-action name="Undeploy"/>
+                    <ide-action name="test"/>
+                    <ide-action name="debug"/>
+                    <ide-action name="rebuild"/>
+                </context-menu>
+            </view>
+            <subprojects/>
+        </general-data>
+        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
+            <compilation-unit>
+                <package-root>src/main</package-root>
+                <classpath mode="compile">lib/hibernate-validator.jar:lib/hibernate-core.jar:lib/hibernate-annotations.jar:lib/hibernate-commons-annotations.jar:lib/hibernate-entitymanager.jar:lib/jboss-seam.jar:lib/jboss-seam-debug.jar:lib/jboss-cache.jar:lib/jbpm-jpdl.jar:lib/antlr.jar:lib/jgroups.jar:lib/jsf-facelets.jar:lib/jstl.jar:lib/jsf-api.jar:lib/servlet-api.jar:lib/jboss-el.jar:lib/el-api.jar:lib/mvel2.jar:lib/drools-api.jar:lib/drools-core.jar:lib/drools-compiler.jar:lib/drools-decisiontables.jar:lib/drools-templates.jar:lib/janino.jar:lib/antlr-runtime.jar:lib/mail.jar:lib/persistence-api.jar:lib/ejb-api.jar:lib/jsr250-api.jar:lib/jta.jar:lib/core.jar:lib/jboss-embedded-api.jar:lib/hibernate-search.jar:lib/richfaces-api.jar:lib/richfaces-ui.jar:lib/hsqldb.jar:lib/lucene-core.jar</classpath>
+                <source-level>1.5</source-level>
+            </compilation-unit>
+            <compilation-unit>
+                <package-root>src/hot</package-root>
+                <classpath mode="compile">lib/hibernate-validator.jar:lib/hibernate-core.jar:lib/hibernate-annotations.jar:lib/hibernate-commons-annotations.jar:lib/hibernate-entitymanager.jar:lib/jboss-seam.jar:lib/jboss-seam-debug.jar:lib/jboss-cache.jar:lib/jbpm-jpdl.jar:lib/antlr.jar:lib/jgroups.jar:lib/jsf-facelets.jar:lib/jstl.jar:lib/jsf-api.jar:lib/servlet-api.jar:lib/jboss-el.jar:lib/el-api.jar:lib/mvel2.jar:lib/drools-api.jar:lib/drools-core.jar:lib/drools-compiler.jar:lib/drools-decisiontables.jar:lib/drools-templates.jar:lib/janino.jar:lib/antlr-runtime.jar:lib/mail.jar:lib/persistence-api.jar:lib/ejb-api.jar:lib/jsr250-api.jar:lib/jta.jar:lib/core.jar:lib/jboss-embedded-api.jar:lib/hibernate-search.jar:lib/richfaces-api.jar:lib/richfaces-ui.jar:lib/hsqldb.jar:lib/lucene-core.jar</classpath>
+                <source-level>1.5</source-level>
+            </compilation-unit>
+            <compilation-unit>
+                <package-root>src/test</package-root>
+                <unit-tests/>
+                <classpath mode="compile">bootstrap:lib/hibernate-validator.jar:lib/hibernate-core.jar:lib/hibernate-annotations.jar:lib/hibernate-commons-annotations.jar:lib/hibernate-entitymanager.jar:lib/jboss-seam.jar:lib/jboss-seam-debug.jar:lib/jboss-cache.jar:lib/jbpm-jpdl.jar:lib/antlr.jar:lib/jgroups.jar:lib/jsf-facelets.jar:lib/jstl.jar:lib/jsf-api.jar:lib/servlet-api.jar:lib/testng.jar:lib/jboss-el.jar:lib/el-api.jar:lib/mvel2.jar:lib/drools-api.jar:lib/drools-core.jar:lib/drools-compiler.jar:lib/drools-templates.jar:lib/janino.jar:lib/antlr-runtime.jar:lib/mail.jar:lib/persistence-api.jar:lib/ejb-api.jar:lib/jsr250-api.jar:lib/jta.jar:lib/core.jar:lib/jboss-embedded-api.jar:lib/hibernate-search.jar:lib/richfaces-api.jar:lib/hsqldb.jar:lib/lucene-core.jar</classpath>
+                <source-level>1.5</source-level>
+            </compilation-unit>
+        </java-data>
+        <web-data xmlns="http://www.netbeans.org/ns/freeform-project-web/1">
+            <web-module>
+                <doc-root>view</doc-root>
+                <classpath/>
+                <context-path>/user_registration</context-path>
+                <j2ee-spec-level>1.5</j2ee-spec-level>
+            </web-module>
+        </web-data>
+    </configuration>
+</project>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/application.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/application.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/application.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application xmlns="http://java.sun.com/xml/ns/javaee" 
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
+             version="5">
+    
+   <display-name>user_registration</display-name>
+   
+   <module>
+      <web>
+         <web-uri>user_registration.war</web-uri>
+         <context-root>/user_registration</context-root>
+      </web>
+   </module>
+   
+   <module>
+      <ejb>user_registration.jar</ejb>
+   </module>
+   
+   <!-- Seam and EL -->
+   <module>
+       <ejb>jboss-seam.jar</ejb>
+   </module>    
+    
+</application>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/ejb-jar.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/ejb-jar.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/ejb-jar.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" 
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+         version="3.0">
+         
+   <interceptors>
+      <interceptor>
+         <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
+      </interceptor>
+   </interceptors>
+   
+   <assembly-descriptor>
+      <interceptor-binding>
+         <ejb-name>*</ejb-name>
+         <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
+      </interceptor-binding>
+   </assembly-descriptor>
+   
+</ejb-jar>
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/jboss-app.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/jboss-app.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/jboss-app.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <!DOCTYPE jboss-app
+    PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN"
+    "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
+
+<jboss-app>
+   <loader-repository> 
+      seam.jboss.org:loader=user_registration
+   </loader-repository> 
+</jboss-app> 
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/orm.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/orm.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/orm.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,18 @@
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="
+		http://java.sun.com/xml/ns/persistence/orm
+		http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
+	version="1.0">
+	<!-- Enable for security checks on entity CRUD operations -->
+	<!--
+	<persistence-unit-metadata>
+		<persistence-unit-defaults>
+			<entity-listeners>
+				<entity-listener class="org.jboss.seam.security.EntitySecurityListener"/>
+			</entity-listeners>
+		</persistence-unit-defaults>
+	</persistence-unit-metadata>
+	-->
+</entity-mappings>
+

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-dev.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-dev.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-dev.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Persistence deployment descriptor for dev profile -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" 
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" 
+             version="1.0">
+             
+   <persistence-unit name="user_registration">
+      <provider>org.hibernate.ejb.HibernatePersistence</provider>
+      <jta-data-source>java:JbpmDS</jta-data-source>
+      <!-- The <jar-file> element is necessary if you put the persistence.xml in the WAR and the classes in the JAR -->
+      <!--
+      <jar-file>../../vehicles.jar</jar-file>
+      -->
+      <properties>
+         <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
+         <property name="hibernate.hbm2ddl.auto" value="update"/>
+         <property name="hibernate.show_sql" value="true"/>
+         <property name="hibernate.format_sql" value="true"/>
+         <property name="jboss.entity.manager.factory.jndi.name" value="java:/user_registrationEntityManagerFactory"/>
+      </properties>
+   </persistence-unit>
+    
+</persistence>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-prod.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-prod.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-prod.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Persistence deployment descriptor for prod profile -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" 
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" 
+             version="1.0">
+             
+   <persistence-unit name="user_registration">
+      <provider>org.hibernate.ejb.HibernatePersistence</provider>
+      <jta-data-source>java:JbpmDS</jta-data-source>
+      <!-- The <jar-file> element is necessary if you put the persistence.xml in the WAR and the classes in the JAR -->
+      <!--
+      <jar-file>../../vehicles.jar</jar-file>
+      -->
+      <properties>
+         <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
+         <property name="hibernate.hbm2ddl.auto" value="validate"/>
+         <property name="hibernate.jdbc.batch_size" value="20"/>
+         <property name="jboss.entity.manager.factory.jndi.name" value="java:/user_registrationEntityManagerFactory"/>
+      </properties>
+   </persistence-unit>
+    
+</persistence>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-test.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-test.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/META-INF/persistence-test.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Persistence deployment descriptor for tests -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" 
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" 
+             version="1.0">
+             
+   <persistence-unit name="user_registration">
+      <provider>org.hibernate.ejb.HibernatePersistence</provider>
+      <jta-data-source>java:/DefaultDS</jta-data-source>
+      <properties>
+         <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+         <property name="hibernate.show_sql" value="true"/>
+         <property name="hibernate.cache.use_second_level_cache" value="false"/>
+         <property name="jboss.entity.manager.factory.jndi.name" value="java:/user_registrationEntityManagerFactory"/>
+      </properties>
+   </persistence-unit>
+    
+</persistence>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/components.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/components.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/components.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns="http://jboss.com/products/seam/components"
+            xmlns:core="http://jboss.com/products/seam/core"
+            xmlns:persistence="http://jboss.com/products/seam/persistence"
+            xmlns:drools="http://jboss.com/products/seam/drools"
+            xmlns:bpm="http://jboss.com/products/seam/bpm"
+            xmlns:security="http://jboss.com/products/seam/security"
+            xmlns:mail="http://jboss.com/products/seam/mail"
+            xmlns:web="http://jboss.com/products/seam/web"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation=
+                "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd
+                 http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd
+                 http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.2.xsd
+                 http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.2.xsd
+                 http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.2.xsd
+                 http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.2.xsd
+                 http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.2.xsd
+                 http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd">
+
+   <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
+
+   <core:manager concurrent-request-timeout="500"
+                 conversation-timeout="120000"
+                 conversation-id-parameter="cid"
+                 parent-conversation-id-parameter="pid"/>
+
+   <!-- Make sure this URL pattern is the same as that used by the Faces Servlet -->
+   <web:hot-deploy-filter url-pattern="*.seam"/>
+
+   <persistence:managed-persistence-context name="entityManager" auto-create="true"
+                      persistence-unit-jndi-name="@puJndiName@"/>
+
+   <drools:rule-base name="securityRules">
+      <drools:rule-files>
+         <value>/security.drl</value>
+      </drools:rule-files>
+   </drools:rule-base>
+
+   <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
+
+   <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
+
+   <event type="org.jboss.seam.security.notLoggedIn">
+      <action execute="#{redirect.captureCurrentView}"/>
+   </event>
+   <event type="org.jboss.seam.security.loginSuccessful">
+      <action execute="#{redirect.returnToCapturedView}"/>
+   </event>
+
+   <mail:mail-session host="localhost" port="25"/>
+
+   <!-- For use with jBPM pageflow or process management -->
+   <!--
+   <bpm:jbpm>
+      <bpm:process-definitions></bpm:process-definitions>
+      <bpm:pageflow-definitions></bpm:pageflow-definitions>
+   </bpm:jbpm>
+   -->
+
+</components>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/faces-config.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/faces-config.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/faces-config.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<faces-config version="1.2"
+              xmlns="http://java.sun.com/xml/ns/javaee"
+              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
+
+   <application>
+      <locale-config>
+         <default-locale>en</default-locale>
+         <supported-locale>bg</supported-locale>
+         <supported-locale>de</supported-locale>
+         <supported-locale>en</supported-locale>
+         <supported-locale>fr</supported-locale>
+         <supported-locale>it</supported-locale>
+         <supported-locale>tr</supported-locale>
+      </locale-config>
+      <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+   </application>
+
+</faces-config>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/pages.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/pages.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/pages.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<pages xmlns="http://jboss.com/products/seam/pages"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
+
+       no-conversation-view-id="/home.xhtml"
+       login-view-id="/login.xhtml">
+
+    <page view-id="*">
+        <navigation>
+            <rule if-outcome="home">
+                <redirect view-id="/home.xhtml"/>
+            </rule>
+        </navigation>
+    </page>
+
+    <exception class="org.jboss.seam.framework.EntityNotFoundException">
+        <redirect view-id="/error.xhtml">
+            <message severity="warn">Record not found</message>
+        </redirect>
+    </exception>
+    
+    <exception class="javax.persistence.EntityNotFoundException">
+        <redirect view-id="/error.xhtml">
+            <message severity="warn">Record not found</message>
+        </redirect>
+    </exception>
+    
+    <exception class="javax.persistence.EntityExistsException">
+        <redirect view-id="/error.xhtml">
+            <message severity="warn">Duplicate record</message>
+        </redirect>
+    </exception>
+    
+    <exception class="javax.persistence.OptimisticLockException">
+        <end-conversation/>
+        <redirect view-id="/error.xhtml">
+            <message severity="warn">Another user changed the same data, please try again</message>
+        </redirect>
+    </exception>
+    
+    <exception class="org.jboss.seam.security.AuthorizationException">
+        <redirect view-id="/error.xhtml">
+            <message severity="error">You don't have permission to access this resource</message>
+        </redirect>
+    </exception>
+    
+    <exception class="org.jboss.seam.security.NotLoggedInException">
+        <redirect view-id="/login.xhtml">
+            <message severity="warn">#{messages['org.jboss.seam.NotLoggedIn']}</message>
+        </redirect>
+    </exception>
+    
+    <exception class="javax.faces.application.ViewExpiredException">
+        <redirect view-id="/error.xhtml">
+            <message severity="warn">Your session has timed out, please try again</message>
+        </redirect>
+    </exception>
+    
+    <exception class="org.jboss.seam.ConcurrentRequestTimeoutException" log-level="trace">
+      <http-error error-code="503" />
+    </exception>
+     
+    <exception>
+        <redirect view-id="/error.xhtml">
+            <message severity="error">Unexpected error, please try again</message>
+        </redirect>
+    </exception>
+    
+</pages>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/web.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/web.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/WEB-INF/web.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,119 @@
+<?xml version="1.0" ?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+   version="2.5">
+
+   <!-- RichFaces -->
+
+   <context-param>
+      <param-name>org.richfaces.SKIN</param-name>
+      <param-value>glassX</param-value>
+   </context-param>
+
+   <!-- Suppress spurious stylesheets -->
+
+   <context-param>
+      <param-name>org.richfaces.CONTROL_SKINNING</param-name>
+      <param-value>disable</param-value>
+   </context-param>
+
+   <context-param>
+      <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
+      <param-value>disable</param-value>
+   </context-param>
+
+   <!-- Change load strategy to DEFAULT to disable sending scripts/styles as packs -->
+
+   <context-param>
+      <param-name>org.richfaces.LoadStyleStrategy</param-name>
+      <param-value>ALL</param-value>
+   </context-param>
+
+   <context-param>
+      <param-name>org.richfaces.LoadScriptStrategy</param-name>
+      <param-value>ALL</param-value>
+   </context-param>
+
+   <!-- Seam -->
+
+   <listener>
+      <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
+   </listener>
+
+   <filter>
+      <filter-name>Seam Filter</filter-name>
+      <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
+   </filter>
+
+   <filter-mapping>
+      <filter-name>Seam Filter</filter-name>
+      <url-pattern>/*</url-pattern>
+   </filter-mapping>
+
+   <servlet>
+      <servlet-name>Seam Resource Servlet</servlet-name>
+      <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
+   </servlet>
+
+   <servlet-mapping>
+      <servlet-name>Seam Resource Servlet</servlet-name>
+      <url-pattern>/seam/resource/*</url-pattern>
+   </servlet-mapping>
+
+   <!-- Facelets development mode (disable in production) -->
+
+   <context-param>
+      <param-name>facelets.DEVELOPMENT</param-name>
+      <param-value>@debug@</param-value>
+   </context-param>
+
+   <!-- JSF -->
+
+   <context-param>
+      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+      <param-value>.xhtml</param-value>
+   </context-param>
+
+   <servlet>
+      <servlet-name>Faces Servlet</servlet-name>
+      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+      <load-on-startup>1</load-on-startup>
+   </servlet>
+
+   <servlet-mapping>
+      <servlet-name>Faces Servlet</servlet-name>
+      <url-pattern>*.seam</url-pattern>
+   </servlet-mapping>
+
+   <security-constraint>
+      <display-name>Restrict raw XHTML Documents</display-name>
+      <web-resource-collection>
+         <web-resource-name>XHTML</web-resource-name>
+         <url-pattern>*.xhtml</url-pattern>
+      </web-resource-collection>
+      <auth-constraint/>
+   </security-constraint>
+
+   <!-- uncomment <ejb-local-ref> entries when deploying to GlassFish and (optionally) JBoss AS 5 -->
+   <!--
+   <ejb-local-ref>
+      <ejb-ref-name>user_registration/AuthenticatorBean/local</ejb-ref-name>
+      <ejb-ref-type>Session</ejb-ref-type>
+      <local-home/>
+      <local>org.jbpm.trainticketdemo.userregistration.sessionbeans.Authenticator</local>
+   </ejb-local-ref>
+   -->
+
+   <!-- Add entries for each EJB session bean which is also a Seam component (not required on JBoss AS) -->
+
+   <persistence-unit-ref>
+      <persistence-unit-ref-name>user_registration/pu</persistence-unit-ref-name>
+      <persistence-unit-name>../user_registration.jar#user_registration</persistence-unit-name>
+      <!-- The relative reference doesn't work on GlassFish. Instead, set the <persistence-unit-name> to "user_registration",
+           package persistence.xml in the WAR, and add a <jar-file> element in persistence.xml with value "../../user_registration.jar".
+      <persistence-unit-name>user_registration</persistence-unit-name>
+      -->
+   </persistence-unit-ref>
+
+</web-app>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/components-dev.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/components-dev.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/components-dev.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,6 @@
+# These properties are used to replace Ant-style tokens in the component descriptor (components.xml) at runtime.
+jndiPattern=@ejbJndiPattern@
+debug=@debug@
+seamBootstrapsPu=@seamBootstrapsPu@
+seamEmfRef=@seamEmfRef@
+puJndiName=@puJndiName@

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/components-prod.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/components-prod.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/components-prod.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,6 @@
+# These properties are used to replace Ant-style tokens in the component descriptor (components.xml) at runtime.
+jndiPattern=@ejbJndiPattern@
+debug=@debug@
+seamBootstrapsPu=@seamBootstrapsPu@
+seamEmfRef=@seamEmfRef@
+puJndiName=@puJndiName@

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/components-test.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/components-test.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/components-test.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,6 @@
+# These properties are used to replace Ant-style tokens in the component descriptor (components.xml) at runtime.
+jndiPattern=#{ejbName}/local
+debug=true
+seamBootstrapsPu=true
+seamEmfRef=#{entityManagerFactory}
+puJndiName=#{null}

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/glassfish-resources-dev.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/glassfish-resources-dev.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/glassfish-resources-dev.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE resources PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Resource Definitions //EN"
+    "http://www.sun.com/software/appserver/dtds/sun-resources_1_3.dtd">
+<resources>
+    <jdbc-connection-pool
+        name="user_registrationPool"
+        datasource-classname="org.hsqldb.jdbc.jdbcDataSource"
+        res-type="javax.sql.DataSource">
+        <property name="database" value="jdbc:hsqldb:."/> <!-- HSQLDB uses database instead of url -->
+        <property name="url" value="jdbc:hsqldb:."/>
+        <property name="user" value="sa"/>
+        <property name="password" value=""/> <!-- Use the value "()" for an empty password -->
+    </jdbc-connection-pool>
+    <jdbc-resource
+        jndi-name="user_registrationDatasource"
+        pool-name="user_registrationPool"
+        enabled="true"
+        object-type="user"/>
+</resources>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/glassfish-resources-prod.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/glassfish-resources-prod.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/glassfish-resources-prod.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE resources PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Resource Definitions //EN"
+    "http://www.sun.com/software/appserver/dtds/sun-resources_1_3.dtd">
+<resources>
+    <jdbc-connection-pool
+        name="user_registrationPool"
+        datasource-classname="org.hsqldb.jdbc.jdbcDataSource"
+        res-type="javax.sql.DataSource">
+        <property name="database" value="jdbc:hsqldb:."/> <!-- HSQLDB uses database instead of url -->
+        <property name="url" value="jdbc:hsqldb:."/>
+        <property name="user" value="sa"/>
+        <property name="password" value=""/> <!-- Use the value "()" for an empty password -->
+    </jdbc-connection-pool>
+    <jdbc-resource
+        jndi-name="user_registrationDatasource"
+        pool-name="user_registrationPool"
+        enabled="true"
+        object-type="user"/>
+</resources>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/import-dev.sql
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/import-dev.sql	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/import-dev.sql	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1 @@
+-- SQL statements which are executed at application startup if hibernate.hbm2ddl.auto is 'create' or 'create-drop'

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/import-prod.sql
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/import-prod.sql	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/import-prod.sql	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1 @@
+-- SQL statements which are executed at application startup if hibernate.hbm2ddl.auto is 'create' or 'create-drop'

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/import-test.sql
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/import-test.sql	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/import-test.sql	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1 @@
+-- SQL statements which are executed at application startup if hibernate.hbm2ddl.auto is 'create' or 'create-drop'

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/messages_bg.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/messages_bg.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/messages_bg.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,89 @@
+down = \u2193
+
+javax.faces.component.UIInput.CONVERSION                    = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u0443\u0432\u0430\u043D\u0430 \u043A\u044A\u043C \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u0438\u044F \u0442\u0438\u043F
+javax.faces.component.UIInput.REQUIRED                      = \u043F\u043E\u043B\u0435\u0442\u043E \u0435 \u0437\u0430\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E
+javax.faces.component.UIInput.UPDATE                        = \u0432\u044A\u0437\u043D\u0438\u043A\u043D\u0430\u043B\u0430 \u0435 \u0433\u0440\u0435\u0448\u043A\u0430 \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u043D\u0430 \u0438\u0437\u043F\u0440\u0430\u0442\u0435\u043D\u0430\u0442\u0430 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F
+javax.faces.component.UISelectMany.INVALID                  = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0435 \u043D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430
+javax.faces.component.UISelectOne.INVALID                   = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0435 \u043D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430
+javax.faces.converter.BigDecimalConverter.DECIMAL           = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.BigDecimalConverter.DECIMAL_detail    = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E \u0441\u044A\u0441 \u0437\u043D\u0430\u043A, \u0441\u044A\u0441\u0442\u043E\u044F\u0449\u043E \u0441\u0435 \u043E\u0442 \u043D\u0443\u043B\u0430 \u0438\u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u0446\u0438\u0444\u0440\u0438, \u0441\u043B\u0435\u0434\u0432\u0430\u043D\u043E \u043F\u043E \u0438\u0437\u0431\u043E\u0440 \u043E\u0442 \u0434\u0435\u0441\u0435\u0442\u0438\u0447\u043D\u0430 \u0437\u0430\u043F\u0435\u0442\u0430\u044F \u0438 \u0434\u0440\u043E\u0431\u043D\u0430 \u0447\u0430\u0441\u0442, \u043D\u0430\u043F\u0440. {1}
+javax.faces.converter.BigIntegerConverter.BIGINTEGER        = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0446\u044F\u043B\u043E \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0446\u044F\u043B\u043E \u0447\u0438\u0441\u043B\u043E \u0441\u044A\u0441 \u0437\u043D\u0430\u043A, \u0441\u044A\u0441\u0442\u043E\u044F\u0449\u043E \u0441\u0435 \u043E\u0442 \u043D\u0443\u043B\u0430 \u0438\u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u0446\u0438\u0444\u0440\u0438
+javax.faces.converter.BooleanConverter.BOOLEAN              = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 'true' \u0438\u043B\u0438 'false'
+javax.faces.converter.BooleanConverter.BOOLEAN_detail       = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 'true' \u0438\u043B\u0438 'false' (\u0432\u0441\u044F\u043A\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u0430 \u043E\u0442 'true' \u0449\u0435 \u0441\u0435 \u0441\u043C\u044F\u0442\u0430 \u0437\u0430 'false')
+javax.faces.converter.ByteConverter.BYTE                    = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E \u043C\u0435\u0434\u0436\u0443 0 \u0438 255
+javax.faces.converter.ByteConverter.BYTE_detail             = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E \u043C\u0435\u0434\u0436\u0443 0 \u0438 255
+javax.faces.converter.CharacterConverter.CHARACTER          = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0437\u043D\u0430\u043A
+javax.faces.converter.CharacterConverter.CHARACTER_detail   = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0432\u0430\u043B\u0438\u0434\u0435\u043D ASCII \u0437\u043D\u0430\u043A
+javax.faces.converter.DateTimeConverter.DATE                = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0434\u0430\u0442\u0430
+javax.faces.converter.DateTimeConverter.DATETIME            = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0434\u0430\u0442\u0430 \u0438 \u0447\u0430\u0441
+javax.faces.converter.DateTimeConverter.DATETIME_detail     = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0434\u0430\u0442\u0430 \u0438 \u0447\u0430\u0441, \u043D\u0430\u043F\u0440. {1}
+javax.faces.converter.DateTimeConverter.DATE_detail         = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0434\u0430\u0442\u0430, \u043D\u0430\u043F\u0440. {1}
+javax.faces.converter.DateTimeConverter.PATTERN_TYPE        = \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0437\u0430\u0434\u0430\u0434\u0435\u043D \u043E\u0431\u0440\u0430\u0437\u0435\u0446 \u0438\u043B\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 type, \u0437\u0430 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u0443\u0432\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430
+javax.faces.converter.DateTimeConverter.TIME                = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043E\u0442 \u0442\u0438\u043F \u0447\u0430\u0441
+javax.faces.converter.DateTimeConverter.TIME_detail         = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043E\u0442 \u0442\u0438\u043F \u0447\u0430\u0441, \u043D\u0430\u043F\u0440. {1}
+javax.faces.converter.DoubleConverter.DOUBLE                = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.DoubleConverter.DOUBLE_detail         = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E \u043C\u0435\u0436\u0434\u0443 4.9E-324 \u0438 1.7976931348623157E308
+javax.faces.converter.EnumConverter.ENUM                    = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u0443\u0432\u0430 \u0434\u043E \u0438\u0437\u0431\u0440\u043E\u0435\u043D \u0442\u0438\u043F
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS           = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u0443\u0432\u0430 \u043E\u0442 \u0438\u043B\u0438 \u0434\u043E \u0438\u0437\u0431\u0440\u043E\u0435\u043D \u0442\u0438\u043F, \u043D\u043E \u043D\u0435 \u0435 \u043F\u043E\u0434\u0430\u0434\u0435\u043D \u043A\u043B\u0430\u0441 \u043E\u0442 \u0442\u0430\u043A\u044A\u0432 \u0442\u0438\u043F
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail    = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u0443\u0432\u0430 \u043E\u0442 \u0438\u043B\u0438 \u0434\u043E \u0438\u0437\u0431\u0440\u043E\u0435\u043D \u0442\u0438\u043F, \u043D\u043E \u043D\u0435 \u0435 \u043F\u043E\u0434\u0430\u0434\u0435\u043D \u043A\u043B\u0430\u0441 \u043E\u0442 \u0442\u0430\u043A\u044A\u0432 \u0442\u0438\u043F
+javax.faces.converter.EnumConverter.ENUM_detail             = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u0443\u0432\u0430 \u043E\u0442 \u0438\u043B\u0438 \u0434\u043E \u0438\u0437\u0431\u0440\u043E\u0435\u043D \u0442\u0438\u043F, \u043A\u043E\u0439\u0442\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430 \u043A\u043E\u043D\u0441\u0442\u0430\u043D\u0442\u0430\u0442\u0430 {1}
+javax.faces.converter.FloatConverter.FLOAT                  = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.FloatConverter.FLOAT_detail           = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E \u043C\u0435\u0436\u0434\u0443 1.4E-45 \u0438 3.4028235E38
+javax.faces.converter.IntegerConverter.INTEGER              = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0446\u044F\u043B\u043E \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.IntegerConverter.INTEGER_detail       = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0446\u044F\u043B\u043E \u0447\u0438\u0441\u043B\u043E \u043C\u0435\u0436\u0434\u0443 -2147483648 \u0438 2147483647
+javax.faces.converter.LongConverter.LONG                    = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0446\u044F\u043B\u043E \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.LongConverter.LONG_detail             = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0446\u044F\u043B\u043E \u0447\u0438\u0441\u043B\u043E \u043C\u0435\u0436\u0434\u0443 -9223372036854775808 \u0438 9223372036854775807
+javax.faces.converter.NumberConverter.CURRENCY              = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0441\u0443\u043C\u0430 \u0432\u044A\u0432 \u0432\u0430\u043B\u0443\u0442\u0430 
+javax.faces.converter.NumberConverter.CURRENCY_detail       = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0441\u0443\u043C\u0430 \u0432\u044A\u0432 \u0432\u0430\u043B\u0443\u0442\u0430, \u043D\u0430\u043F\u0440. {1}
+javax.faces.converter.NumberConverter.NUMBER                = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.NumberConverter.NUMBER_detail         = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.NumberConverter.PATTERN               = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.NumberConverter.PATTERN_detail        = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.NumberConverter.PERCENT               = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u0440\u043E\u0446\u0435\u043D\u0442
+javax.faces.converter.NumberConverter.PERCENT_detail        = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u0440\u043E\u0446\u0435\u043D\u0442, \u043D\u0430\u043F\u0440. {1}
+javax.faces.converter.STRING                                = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u0440\u0435\u0432\u044A\u0440\u043D\u0430\u0442\u0430 \u0432 \u043D\u0438\u0437 \u043E\u0442 \u0441\u0438\u043C\u0432\u043E\u043B\u0438
+javax.faces.converter.ShortConverter.SHORT                  = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0446\u044F\u043B\u043E \u0447\u0438\u0441\u043B\u043E
+javax.faces.converter.ShortConverter.SHORT_detail           = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0446\u044F\u043B\u043E \u0447\u0438\u0441\u043B\u043E \u043C\u0435\u0436\u0434\u0443 -32768 \u0438 32767
+javax.faces.validator.DoubleRangeValidator.MAXIMUM          = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u043E-\u043C\u0430\u043B\u043A\u0430 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u0430 \u043D\u0430 {0}
+javax.faces.validator.DoubleRangeValidator.MINIMUM          = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u043E-\u0433\u043E\u043B\u044F\u043C\u0430 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u0430 \u043D\u0430 {0}
+javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE     = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043C\u0435\u0436\u0434\u0443 {0} \u0438 {1}
+javax.faces.validator.DoubleRangeValidator.TYPE             = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u043D\u0435 \u0435 \u043E\u0442 \u043F\u0440\u0430\u0432\u0438\u043B\u043D\u0438\u044F \u0432\u0438\u0434
+javax.faces.validator.LengthValidator.MAXIMUM               = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043D\u0435 \u043F\u043E-\u0434\u044A\u043B\u0433\u0430 \u043E\u0442 {0} \u0437\u043D\u0430\u043A\u0430
+javax.faces.validator.LengthValidator.MINIMUM               = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u043E-\u0434\u044A\u043B\u0433\u0430 \u043E\u0442 {0} \u0437\u043D\u0430\u043A\u0430
+javax.faces.validator.LongRangeValidator.MAXIMUM            = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u043E-\u043C\u0430\u043B\u043A\u0430 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u0430 \u043D\u0430 {0}
+javax.faces.validator.LongRangeValidator.MINIMUM            = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u043E-\u0433\u043E\u043B\u044F\u043C\u0430 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u0430 \u043D\u0430 {0}
+javax.faces.validator.LongRangeValidator.NOT_IN_RANGE       = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043C\u0435\u0436\u0434\u0443 {0} \u0438 {1}
+javax.faces.validator.LongRangeValidator.TYPE               = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u043D\u0435 \u0435 \u043E\u0442 \u043F\u0440\u0430\u0432\u0438\u043B\u043D\u0438\u044F \u0432\u0438\u0434
+javax.faces.validator.NOT_IN_RANGE                          = \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043C\u0435\u0436\u0434\u0443 {0} \u0438 {1}
+
+left = \u2039
+
+org.jboss.seam.IllegalNavigation = \u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F
+org.jboss.seam.NoConversation    = \u0420\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u044A\u0442 \u0435 \u043F\u0440\u0438\u043A\u043B\u044E\u0447\u0438\u043B, \u0438\u0437\u0442\u0435\u043A\u043B\u043E \u043C\u0443 \u0435 \u0432\u0440\u0435\u043C\u0435\u0442\u043E \u0438\u043B\u0438 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0432\u0430 \u0434\u0440\u0443\u0433\u0430 \u0437\u0430\u044F\u0432\u043A\u0430
+org.jboss.seam.ProcessEnded      = \u041F\u0440\u043E\u0446\u0435\u0441 #0 \u0435 \u043F\u0440\u0438\u043A\u043B\u044E\u0447\u0438\u043B
+org.jboss.seam.ProcessNotFound   = \u041F\u0440\u043E\u0446\u0435\u0441 #0 \u043D\u0435 \u0435 \u043D\u0430\u043C\u0435\u0440\u0435\u043D
+org.jboss.seam.TaskEnded         = \u0417\u0430\u0434\u0430\u0447\u0430 #0 \u0435 \u043F\u0440\u0438\u043A\u043B\u044E\u0447\u0438\u043B\u0430
+org.jboss.seam.TaskNotFound      = \u0417\u0430\u0434\u0430\u0447\u0430 #0 \u043D\u0435 \u0435 \u043D\u0430\u043C\u0435\u0440\u0435\u043D\u0430
+org.jboss.seam.TransactionFailed = \u0422\u0440\u0430\u043D\u0437\u0430\u043A\u0446\u0438\u044F \u043D\u0435 \u0435 \u0443\u0441\u043F\u044F\u043B\u0430
+org.jboss.seam.NotLoggedIn       = \u041C\u043E\u043B\u044F \u043F\u044A\u0440\u0432\u043E \u0441\u0435 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0430\u0439\u0442\u0435
+
+org.jboss.seam.loginFailed       = \u041D\u0435\u0443\u0441\u043F\u0435\u0448\u0435\u043D \u0432\u0445\u043E\u0434
+org.jboss.seam.loginSuccessful   = \u0417\u0434\u0440\u0430\u0432\u0435\u0439, #0
+
+right = \u203A
+
+up = \u2191
+
+validator.assertFalse = \u0433\u0440\u0435\u0448\u043A\u0438 \u043F\u0440\u0438 \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u044F
+validator.assertTrue  = \u0433\u0440\u0435\u0448\u043A\u0438 \u043F\u0440\u0438 \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u044F
+validator.email       = \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0432\u0430\u043B\u0438\u0434\u0435\u043D e-mail \u0430\u0434\u0440\u0435\u0441
+validator.future      = \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0431\u044A\u0434\u0435\u0449\u0430 \u0434\u0430\u0442\u0430
+validator.length      = \u0434\u044A\u043B\u0436\u0438\u043D\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043C\u0435\u0436\u0434\u0443 {min} \u0438 {max}
+validator.max         = \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u043E-\u043C\u0430\u043B\u043A\u043E \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u043E \u043D\u0430 {value}
+validator.min         = \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043F\u043E-\u0433\u043E\u043B\u044F\u043C\u043E \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u043E \u043D\u0430 {value}
+validator.notNull     = \u0435 \u0437\u0430\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E
+validator.past        = \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043C\u0438\u043D\u0430\u043B\u0430 \u0434\u0430\u0442\u0430\u0442\u0430
+validator.pattern     = \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0430 \u043D\u0430 "{regex}"
+validator.range       = \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043C\u0435\u0436\u0434\u0443 {min} \u0438 {max}
+validator.size        = \u0440\u0430\u0437\u043C\u0435\u0440\u044A\u0442 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043C\u0435\u0436\u0434\u0443 {min} \u0438 {max}

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/messages_de.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/messages_de.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/messages_de.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,88 @@
+up=\u2191
+down=\u2193
+left=\u2039
+right=\u203A
+
+validator.assertFalse=Validierung fehlgeschlagen
+validator.assertTrue=Validierung fehlgeschlagen
+validator.future=muss einem zuk\u00FCnfitigen Datum entsprechen
+validator.length=die L\u00E4nge muss zwischen {min} und {max} liegen
+validator.max=muss kleiner oder gleich {value} sein
+validator.min=muss gr\u00F6\u00DFer oder gleich {value} sein
+validator.notNull=darf nicht leer sein
+validator.past=muss einem vergangenen Datum entsprechen
+validator.pattern=muss dem regul\u00E4ren Ausdruck "{regex}" entsprechen
+validator.range=muss im Wertebereich von {min} bis {max} liegen
+validator.size=die Gr\u00F6\u00DFe muss zischen {min} und {max} liegen
+validator.email=muss einer wohlgeformten E-Mailadresse entsprechen
+
+org.jboss.seam.loginFailed=Anmeldung fehlgeschlagen
+org.jboss.seam.loginSuccessful=Willkommen, #0!
+
+org.jboss.seam.TransactionFailed=Transaktion fehlgeschlagen
+org.jboss.seam.NoConversation=Der Vorgang wurde bereits beendet, verarbeitet eine andere Abfrage oder ergab eine Zeit\u00FCberschreitung
+org.jboss.seam.IllegalNavigation=Unzul\u00E4ssige Navigation
+org.jboss.seam.ProcessEnded=Prozess #0 wurde bereits beendet
+org.jboss.seam.ProcessNotFound=Prozess #0 nicht gefunden
+org.jboss.seam.TaskEnded=Funktion #0 wurde bereits beendet
+org.jboss.seam.TaskNotFound=Funktion #0 nicht gefunden
+org.jboss.seam.NotLoggedIn=Bitte melden Sie sich zun\u00E4chst an
+
+javax.faces.component.UIInput.CONVERSION=Wert konnte nicht in den erwarteten Typ umgewandelt werden
+javax.faces.component.UIInput.REQUIRED=Wert erforderlich
+javax.faces.component.UIInput.UPDATE=ein Fehler ist bei der Verarbeitung der von Ihnen gesendeten Daten aufgetreten
+javax.faces.component.UISelectOne.INVALID=Wert ung\u00FCltig
+javax.faces.component.UISelectMany.INVALID=Wert ung\u00FCltig
+
+javax.faces.converter.BigDecimalConverter.DECIMAL = ''{0}'' muss eine Dezimalzahl sein.
+javax.faces.converter.BigDecimalConverter.DECIMAL_detail = ''{0}'' muss eine Dezimalzahl aus keinem oder mehr Zeichen gefolgt von einem optionalen Punkt und den Nachkommastellen sein. Beispiel: {1} 
+javax.faces.converter.BigIntegerConverter.BIGINTEGER = ''{0}'' muss eine Zahl aus ein oder mehr Ziffern sein. 
+javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail = ''{0}'' muss eine Zahl aus ein oder mehr Ziffern sein. Beispiel: {1}
+javax.faces.converter.BooleanConverter.BOOLEAN = ''{0}'' muss 'true' oder 'false' sein.
+javax.faces.converter.BooleanConverter.BOOLEAN_detail = ''{0}'' muss 'true' oder 'false' sein.  Jeder Wert au\u00DFer 'true' wird als 'false' interpretiert.
+javax.faces.converter.ByteConverter.BYTE = ''{0}'' muss eine Zahl zwischen 0 und 255 sein.
+javax.faces.converter.ByteConverter.BYTE_detail = ''{0}'' muss eine Zahl zwischen 0 und 255 sein.  Beispiel: {1}
+javax.faces.converter.CharacterConverter.CHARACTER = ''{0}'' muss ein g\u00FCltiges Zeichen sein.
+javax.faces.converter.CharacterConverter.CHARACTER_detail = ''{0}'' muss ein g\u00FCltiges ASCII Zeichen sein.
+javax.faces.converter.DateTimeConverter.DATE = ''{0}'' konnte nicht als Datum erkannt werden.
+javax.faces.converter.DateTimeConverter.DATE_detail = ''{0}'' konnte nicht als Datum erkannt werden. Beispiel: {1} 
+javax.faces.converter.DateTimeConverter.TIME = ''{0}'' konnte nicht als Zeit erkannt werden.
+javax.faces.converter.DateTimeConverter.TIME_detail = ''{0}'' konnte nicht als Zeit erkannt werden. Beispiel: {1} 
+javax.faces.converter.DateTimeConverter.DATETIME = ''{0}'' konnte nicht als Datum und Zeit erkannt werden.
+javax.faces.converter.DateTimeConverter.DATETIME_detail = ''{0}'' konnte nicht als Datum und Zeit erkannt werden. Beispiel: {1} 
+javax.faces.converter.DateTimeConverter.PATTERN_TYPE = Ein 'pattern' oder 'type' Attribut muss angegeben werden um den Wert ''{0}'' zu konvertieren.
+javax.faces.converter.DoubleConverter.DOUBLE = ''{0}'' muss eine Zahl aus ein oder mehr Ziffern sein.
+javax.faces.converter.DoubleConverter.DOUBLE_detail = ''{0}'' muss eine Zahl zwischen 4.9E-324 und 1.7976931348623157E308 sein. Beispiel: {1}
+javax.faces.converter.EnumConverter.ENUM = ''{0}'' muss in eine Enumeration konvertierbar sein.
+javax.faces.converter.EnumConverter.ENUM_detail = ''{0}'' muss in eine Enumeration konvertierbar sein, welche die Konstante ''{1}'' enth\u00E4lt.
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS = ''{0}'' muss in eine Enumeration konvertierbar sein, aber es wurde keine Klasse des Typs Enum bereitgestellt.
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail = ''{0}'' muss in eine Enumeration konvertierbar sein, aber es wurde keine Klasse des Typs Enum bereitgestellt.
+javax.faces.converter.FloatConverter.FLOAT = ''{0}'' muss eine Zahl aus ein oder mehr Ziffern sein.
+javax.faces.converter.FloatConverter.FLOAT_detail = ''{0}'' muss eine Zahl zwischen 1.4E-45 und 3.4028235E38 sein. Beispiel: {1}
+javax.faces.converter.IntegerConverter.INTEGER = ''{0}'' muss eine Zahl aus ein oder mehr Ziffern sein.
+javax.faces.converter.IntegerConverter.INTEGER_detail = ''{0}'' muss eine Zahl zwischen -2147483648 und 2147483647 sein. Beispiel: {1}
+javax.faces.converter.LongConverter.LONG = ''{0}'' muss eine Zahl aus ein oder mehr Ziffern sein.
+javax.faces.converter.LongConverter.LONG_detail = ''{0}'' muss eine Zahl zwischen -9223372036854775808 und 9223372036854775807 sein. Beispiel: {1}
+javax.faces.converter.NumberConverter.CURRENCY = ''{0}'' konnte nicht als ein Geldbetrag erkannt werden.
+javax.faces.converter.NumberConverter.CURRENCY_detail = ''{0}'' konnte nicht als ein Geldbetrag erkannt werden. Beispiel: {1}
+javax.faces.converter.NumberConverter.PERCENT = ''{0}'' konnte nicht als ein Prozentanteil erkannt werden.
+javax.faces.converter.NumberConverter.PERCENT_detail = ''{0}'' konnte nicht als ein Prozentanteil erkannt werden. Beispiel: {1}
+javax.faces.converter.NumberConverter.NUMBER = ''{0}'' ist keine Zahl.
+javax.faces.converter.NumberConverter.NUMBER_detail = ''{0}'' ist keine Zahl. Beispiel: {1}
+javax.faces.converter.NumberConverter.PATTERN = ''{0}'' ist kein Zahlmuster.
+javax.faces.converter.NumberConverter.PATTERN_detail = ''{0}'' ist kein Zahlmuster. Beispiel: {1}
+javax.faces.converter.ShortConverter.SHORT = ''{0}'' muss eine Zahl aus ein oder mehr Ziffern sein.
+javax.faces.converter.ShortConverter.SHORT_detail = ''{0}'' muss eine Zahl zwischen -32768 und 32767 sein. Beispiel: {1}
+javax.faces.converter.STRING = Konnte ''{0}'' nicht in eine Zeichenkette konvertieren.
+
+javax.faces.validator.NOT_IN_RANGE = Validierungsfehler: Der Wert liegt nicht im erwarteten Wertebereich von {0} bis {1}.  
+javax.faces.validator.DoubleRangeValidator.MAXIMUM = Validierungsfehler: Der Wert ist gr\u00F6\u00DFer als das erlaubte Maximum von ''{0}''
+javax.faces.validator.DoubleRangeValidator.MINIMUM = Validierungsfehler: Der Wert ist kleiner als das erlaubte Minimum von ''{0}''
+javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE = Validierungsfehler: Der Wert ist nicht zwischen den erwarteten Werten von {0} und {1}
+javax.faces.validator.DoubleRangeValidator.TYPE = Validierungsfehler: Der Wert ist nicht vom korrekten Typ
+javax.faces.validator.LengthValidator.MAXIMUM = Validierungsfehler: Der Wert ist gr\u00F6\u00DFer als das erlaubte Maximum von ''{0}''
+javax.faces.validator.LengthValidator.MINIMUM = Validierungsfehler: Der Wert ist kleiner als das erlaubte Minimum von ''{0}''
+javax.faces.validator.LongRangeValidator.MAXIMUM = Validierungsfehler: Der Wert ist gr\u00F6\u00DFer als das erlaubte Maximum von ''{0}''
+javax.faces.validator.LongRangeValidator.MINIMUM = Validation Error: Der Wert ist kleiner als das erlaubte Minimum von ''{0}''
+javax.faces.validator.LongRangeValidator.NOT_IN_RANGE = Validierungsfehler: Der Wert ist nicht zwischen den erwarteten Werten von {0} und {1}.
+javax.faces.validator.LongRangeValidator.TYPE = Validierungsfehler: Der Wert ist nicht vom korrekten Typ.

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/messages_en.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/messages_en.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/messages_en.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,90 @@
+up=\u2191
+down=\u2193
+left=\u2039
+right=\u203A
+
+validator.assertFalse=validation failed
+validator.assertTrue=validation failed
+validator.future=must be a future date
+validator.length=length must be between {min} and {max}
+validator.max=must be less than or equal to {value}
+validator.min=must be greater than or equal to {value}
+validator.notNull=may not be null
+validator.past=must be a past date
+validator.pattern=must match "{regex}"
+validator.range=must be between {min} and {max}
+validator.size=size must be between {min} and {max}
+validator.email=must be a well-formed email address
+
+org.jboss.seam.loginFailed=Login failed
+org.jboss.seam.loginSuccessful=
+
+org.jboss.seam.TransactionFailed=Transaction failed
+org.jboss.seam.NoConversation=The conversation ended, timed out or was processing another request
+org.jboss.seam.IllegalNavigation=Illegal navigation
+org.jboss.seam.ProcessEnded=Process #0 already ended
+org.jboss.seam.ProcessNotFound=Process #0 not found
+org.jboss.seam.TaskEnded=Task #0 already ended
+org.jboss.seam.TaskNotFound=Task #0 not found
+org.jboss.seam.NotLoggedIn=Please log in first
+
+javax.faces.component.UIInput.CONVERSION=value could not be converted to the expected type
+javax.faces.component.UIInput.REQUIRED=value is required
+javax.faces.component.UIInput.UPDATE=an error occurred when processing your submitted information
+javax.faces.component.UISelectOne.INVALID=value is not valid
+javax.faces.component.UISelectMany.INVALID=value is not valid
+
+javax.faces.converter.BigDecimalConverter.DECIMAL=value must be a number
+javax.faces.converter.BigDecimalConverter.DECIMAL_detail=value must be a signed decimal number consisting of zero or more digits, optionally followed by a decimal point and fraction, eg. {1}
+javax.faces.converter.BigIntegerConverter.BIGINTEGER=value must be an integer
+javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=value must be a signed integer number consisting of zero or more digits
+javax.faces.converter.BooleanConverter.BOOLEAN=value must be true or false
+javax.faces.converter.BooleanConverter.BOOLEAN_detail=value must be true or false (any value other than true will evaluate to false)
+javax.faces.converter.ByteConverter.BYTE=value must be a number between 0 and 255
+javax.faces.converter.ByteConverter.BYTE_detail=value must be a number between 0 and 255
+javax.faces.converter.CharacterConverter.CHARACTER=value must be a character
+javax.faces.converter.CharacterConverter.CHARACTER_detail=value must be a valid ASCII character
+javax.faces.converter.DateTimeConverter.DATE=value must be a date
+javax.faces.converter.DateTimeConverter.DATE_detail=value must be a date,  eg. {1}
+javax.faces.converter.DateTimeConverter.TIME=value must be a time
+javax.faces.converter.DateTimeConverter.TIME_detail=value must be a time,  eg. {1}
+javax.faces.converter.DateTimeConverter.DATETIME=value must be a date and time
+javax.faces.converter.DateTimeConverter.DATETIME_detail=value must be a date and time,  eg. {1}
+javax.faces.converter.DateTimeConverter.PATTERN_TYPE=a pattern or type attribute must be specified to convert the value
+javax.faces.converter.DoubleConverter.DOUBLE=value must be a number
+javax.faces.converter.DoubleConverter.DOUBLE_detail=value must be a number between 4.9E-324 and 1.7976931348623157E308
+javax.faces.converter.EnumConverter.ENUM=value must be convertible to an enum
+javax.faces.converter.EnumConverter.ENUM_detail=value must be convertible to an enum or from the enum that contains the constant {1}
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS=value must be convertible to an enum or from the enum, but no enum class provided
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=value must be convertible to an enum or from the enum, but no enum class provided
+javax.faces.converter.FloatConverter.FLOAT=value must be a number
+javax.faces.converter.FloatConverter.FLOAT_detail=value must be a number between 1.4E-45 and 3.4028235E38
+javax.faces.converter.IntegerConverter.INTEGER=value must be an integer
+javax.faces.converter.IntegerConverter.INTEGER_detail=value must be an integer number between -2147483648 and 2147483647
+javax.faces.converter.LongConverter.LONG=value must be an integer
+javax.faces.converter.LongConverter.LONG_detail=value must be an integer number between -9223372036854775808 and 9223372036854775807
+javax.faces.converter.NumberConverter.CURRENCY=value must be a currency amount
+javax.faces.converter.NumberConverter.CURRENCY_detail=value must be a currency amount, eg. {1}
+javax.faces.converter.NumberConverter.PERCENT=value must be a percentage amount
+javax.faces.converter.NumberConverter.PERCENT_detail=value must be a percentage amount, eg. {1}
+javax.faces.converter.NumberConverter.NUMBER=value must be a number
+javax.faces.converter.NumberConverter.NUMBER_detail=value must be a number
+javax.faces.converter.NumberConverter.PATTERN=value must be a number
+javax.faces.converter.NumberConverter.PATTERN_detail=value must be a number
+javax.faces.converter.ShortConverter.SHORT=value must be an integer
+javax.faces.converter.ShortConverter.SHORT_detail=value must be an integer number between -32768 and 32767
+
+javax.faces.validator.DoubleRangeValidator.MAXIMUM=value must be less than or equal to {0}
+javax.faces.validator.DoubleRangeValidator.MINIMUM=value must be greater than or equal to {0}
+javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE=value must be between {0} and {1}
+javax.faces.validator.DoubleRangeValidator.TYPE=value is not of the correct type
+javax.faces.validator.LengthValidator.MAXIMUM=value must be shorter than or equal to {0} characters
+javax.faces.validator.LengthValidator.MINIMUM=value must be longer than or equal to {0} characters
+javax.faces.validator.LongRangeValidator.MAXIMUM=value must be less than or equal to {0}
+javax.faces.validator.LongRangeValidator.MINIMUM=value must be greater than or equal to {0}
+javax.faces.validator.LongRangeValidator.NOT_IN_RANGE=value must be between {0} and {1}
+javax.faces.validator.LongRangeValidator.TYPE=value is not of the correct type
+
+javax.faces.validator.NOT_IN_RANGE=value must be between {0} and {1}
+javax.faces.converter.STRING=value could not be converted to a string
+

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/messages_fr.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/messages_fr.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/messages_fr.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,98 @@
+up=\u2191
+down=\u2193
+left=\u2039
+right=\u203A
+
+javax.persistence.EntityNotFoundException                   = Entit� introuvable
+javax.persistence.OptimisticLockException                   = Un autre utilisateur a modifi� les m�mes donn�es. Veuillez essayer de nouveau.
+
+validator.assertFalse = La validation a �chou�
+validator.assertTrue  = La validation a �chou�
+validator.future      = doit �tre une date � venir.
+validator.length      = la longueur doit �tre comprise entre {min} et {max}
+validator.max         = doit �tre inf�rieur(e) ou �gal(e) � {value}
+validator.min         = doit �tre sup�rieur(e) ou �gal(e) � {value}
+validator.notNull     = ne peut �tre nul(le)
+validator.past        = doit �tre une date pass�e
+validator.pattern     = doit correspondre � "{regex}"
+validator.range       = doit �tre compris(e) entre {min} et {max}
+validator.size        = La taille doit �tre comprise entre {min} et {max}
+validator.email       = doit �tre une adresse email valide
+
+org.jboss.seam.framework.EntityNotFoundException = Entit� introuvable
+org.jboss.seam.security.AuthorizationException   = Vous n'avez pas les autorisations n�cessaires pour effectuer ceci
+org.jboss.seam.security.NotLoggedInException     = Veuillez d'abord vous connecter
+org.jboss.seam.unexpected.error                  = Erreur inattendue. Veuillez essayez de nouveau.
+
+org.jboss.seam.loginFailed                       = La connexion a �chou�.
+org.jboss.seam.loginSuccessful                   = Bienvenue, {0}!
+
+org.jboss.seam.TransactionFailed                 = La transaction a �chou�.
+org.jboss.seam.NoConversation                    = La conversation s'est interrompue, a d�pass� les d�lais ou traite une autre requ�te.
+org.jboss.seam.IllegalNavigation                 = Navigation ill�gale
+org.jboss.seam.ProcessEnded                      = Processus #0 d�j� achev�
+org.jboss.seam.ProcessNotFound                   = Le processus #0 n'a pas �t� trouv�.
+org.jboss.seam.TaskEnded                         = T�che #0 d�j� achev�e
+org.jboss.seam.TaskNotFound                      = La t�che #0 n'a pas �t� trouv�e.
+org.jboss.seam.NotLoggedIn                       = Veuillez d'abord vous connecter.
+
+javax.faces.component.UIInput.CONVERSION                    = La valeur ne peut �tre convertie dans le type attendu
+javax.faces.component.UIInput.REQUIRED                      = Une valeur est requise.
+javax.faces.component.UIInput.UPDATE                        = Une erreur est survenue lors du traitement de l'information que vous avez fournie
+javax.faces.component.UISelectMany.INVALID                  = La valeur n'est pas valide.
+javax.faces.component.UISelectOne.INVALID                   = La valeur n'est pas valide.
+
+javax.faces.converter.BigDecimalConverter.DECIMAL           = la valeur doit �tre un nombre
+javax.faces.converter.BigDecimalConverter.DECIMAL_detail    = la valeur doit �tre un nombre d�cimal sign� comprenant z�ro chiffre ou plus, �ventuellement suivi par une virgule d�cimale et une faction, par ex. {1}
+javax.faces.converter.BigIntegerConverter.BIGINTEGER        = la valeur doit �tre un nombre
+javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail = la valeur doit �tre un entier sign� comprenant z�ro chiffre ou plus
+javax.faces.converter.BooleanConverter.BOOLEAN              = la valeur doit �tre "vrai" ou "faux"
+javax.faces.converter.BooleanConverter.BOOLEAN_detail       = la valeur doit �tre "vrai" ou "faux" (toute valeur autre que "vrai" est �valu�e � "faux")
+javax.faces.converter.ByteConverter.BYTE                    = la valeur doit �tre un nombre entre 0 et 255
+javax.faces.converter.ByteConverter.BYTE_detail             = la valeur doit �tre un nombre entre 0 et 255
+javax.faces.converter.CharacterConverter.CHARACTER          = la valeur doit �tre un caract�re
+javax.faces.converter.CharacterConverter.CHARACTER_detail   = la valeur doit �tre un caract�re ASCII valide
+javax.faces.converter.DateTimeConverter.DATE                = la valeur doit �tre une date
+javax.faces.converter.DateTimeConverter.DATE_detail         = la valeur doit �tre une date, par ex. {1}
+javax.faces.converter.DateTimeConverter.TIME                = la valeur doit �tre une heure
+javax.faces.converter.DateTimeConverter.TIME_detail         = la valeur doit �tre une heure, par ex. {1}
+javax.faces.converter.DateTimeConverter.DATETIME            = la valeur doit �tre une date et une heure
+javax.faces.converter.DateTimeConverter.DATETIME_detail     = la valeur doit �tre une date et une heure, par ex. {1}
+javax.faces.converter.DateTimeConverter.PATTERN_TYPE        = un attribut doit indiquer le mod�le ou le type pour convertir la valeur
+javax.faces.converter.DoubleConverter.DOUBLE                = la valeur doit �tre un nombre
+javax.faces.converter.DoubleConverter.DOUBLE_detail         = la valeur doit �tre un nombre entre 4,9E-324 et 17976931348623157E308
+javax.faces.converter.EnumConverter.ENUM                    = la valeur doit �tre convertible en une �num�ration
+javax.faces.converter.EnumConverter.ENUM_detail             = la valeur doit �tre convertible en une �num�ration ou depuis l''�num�ration qui contient la constante {1}
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS           = la valeur doit �tre convertible en une �num�ration ou depuis l'�num�ration, mais aucune classe d'�num�ration n'est fournie
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail    = la valeur doit �tre convertible en une �num�ration ou depuis l'�num�ration, mais aucune classe d'�num�ration n'est fournie
+javax.faces.converter.FloatConverter.FLOAT                  = la valeur doit �tre un nombre
+javax.faces.converter.FloatConverter.FLOAT_detail           = la valeur doit �tre un nombre entre 1,4E-45 et 3,4028235E38
+javax.faces.converter.IntegerConverter.INTEGER              = la valeur doit �tre un nombre
+javax.faces.converter.IntegerConverter.INTEGER_detail       = la valeur doit �tre un nombre entre -2147483648 et 2147483647
+javax.faces.converter.LongConverter.LONG                    = la valeur doit �tre un nombre
+javax.faces.converter.LongConverter.LONG_detail             = la valeur doit �tre un nombre entre -9223372036854775808 et 9223372036854775807
+javax.faces.converter.NumberConverter.CURRENCY              = la valeur doit �tre un  montant mon�taire
+javax.faces.converter.NumberConverter.CURRENCY_detail       = la valeur doit �tre un  montant mon�taire, par ex. {1}
+javax.faces.converter.NumberConverter.NUMBER                = la valeur doit �tre un nombre
+javax.faces.converter.NumberConverter.NUMBER_detail         = la valeur doit �tre un nombre
+javax.faces.converter.NumberConverter.PATTERN               = la valeur doit �tre un nombre
+javax.faces.converter.NumberConverter.PATTERN_detail        = la valeur doit �tre un nombre
+javax.faces.converter.NumberConverter.PERCENT               = la valeur doit �tre un pourcentage
+javax.faces.converter.NumberConverter.PERCENT_detail        = la valeur doit �tre un pourcentage, par ex. {1}
+javax.faces.converter.ShortConverter.SHORT                  = la valeur doit �tre un nombre
+javax.faces.converter.ShortConverter.SHORT_detail           = la valeur doit �tre comprise entre -32768 et 32767
+
+javax.faces.validator.DoubleRangeValidator.MAXIMUM          = La valeur doit �tre inf�rieure ou �gale � {0}
+javax.faces.validator.DoubleRangeValidator.MINIMUM          = La valeur doit �tre sup�rieure ou �gale � {0}
+javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE     = La valeur doit �tre comprise entre {0} et {1}
+javax.faces.validator.DoubleRangeValidator.TYPE             = La valeur n'est pas du type correct
+javax.faces.validator.LengthValidator.MAXIMUM               = La valeur doit comporter {0} caract�res ou moins
+javax.faces.validator.LengthValidator.MINIMUM               = La valeur doit comporter {0} caract�res ou plus
+javax.faces.validator.LongRangeValidator.MAXIMUM            = La valeur doit �tre inf�rieure ou �gale � {0}
+javax.faces.validator.LongRangeValidator.MINIMUM            = La valeur doit �tre sup�rieure ou �gale � {0}
+javax.faces.validator.LongRangeValidator.NOT_IN_RANGE       = La valeur doit �tre comprise entre {0} et {1}
+javax.faces.validator.LongRangeValidator.TYPE               = La valeur n'est pas du type correct
+
+javax.faces.validator.NOT_IN_RANGE                          = La valeur doit �tre comprise entre {0} et {1}
+javax.faces.converter.STRING                                = La valeur ne peut �tre convertie en cha�ne de caract�res
+

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/messages_it.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/messages_it.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/messages_it.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,90 @@
+up=\u2191
+down=\u2193
+left=\u2039
+right=\u203A
+
+validator.assertFalse=validazione fallita
+validator.assertTrue=validazione corretta
+validator.future=deve essere una data futura
+validator.length=la lunghezza deve essere tra {min} e {max}
+validator.max=deve essere minore o uguale a {value}
+validator.min=deve essere maggiore o uguale a {value}
+validator.notNull=non pu\u00F2 essere nullo
+validator.past=deve essere una data passata
+validator.pattern=deve corrispondere a "{regex}"
+validator.range=deve essere tra {min} e {max}
+validator.size=la grandezza deve essere tra {min} e {max}
+validator.email=deve essere un indirizzo di posta elettronica
+
+org.jboss.seam.loginFailed=Autenticazione fallita
+org.jboss.seam.loginSuccessful=Benvenuto/a, #0
+
+org.jboss.seam.TransactionFailed=Transazione fallita
+org.jboss.seam.NoConversation=La conversazione \u00E8 terminata, scaduta oppure \u00E8 stata processata un'altra richiesta
+org.jboss.seam.IllegalNavigation=Navigazione illegale
+org.jboss.seam.ProcessEnded=Il processo \#0 \u00E8 gi\u00E0\u00A0 terminato
+org.jboss.seam.ProcessNotFound=Il processo \#0 non \u00E8 stato trovato
+org.jboss.seam.TaskEnded=Il task \#0 \u00E8 gi\u00E0 terminato
+org.jboss.seam.TaskNotFound=Il task \#0 non \u00E8 stato trovato
+org.jboss.seam.NotLoggedIn=Per favore, eseguire la login
+
+javax.faces.component.UIInput.CONVERSION=il valore non pu\u00F2 essere convertito
+javax.faces.component.UIInput.REQUIRED=\u00C8 richiesto un valore
+javax.faces.component.UIInput.UPDATE=Si \u00E8 verificato un errore nell'elaborazione delle informazioni inviate
+javax.faces.component.UISelectOne.INVALID=il valore non \u00E8 valido
+javax.faces.component.UISelectMany.INVALID=il valore non \u00E8 valido
+
+javax.faces.converter.BigDecimalConverter.DECIMAL=il valore deve essere un numero
+javax.faces.converter.BigDecimalConverter.DECIMAL_detail=il valore deve essere un numero decimale con zero o pi\u00F9 cifre, opzionalmente seguito da un punto e una frazione, es. {1}
+javax.faces.converter.BigIntegerConverter.BIGINTEGER=deve essere un intero
+javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=il valore deve essere un numero intero con zero o pi\u00F9 cifre
+javax.faces.converter.BooleanConverter.BOOLEAN=deve essere vero o falso
+javax.faces.converter.BooleanConverter.BOOLEAN_detail=il valore deve essere vero o falso (qualsiasi valore diverso da vero \u00E8 considerato falso)
+javax.faces.converter.ByteConverter.BYTE=il valore deve essere un numero compreso tra 0 e 255
+javax.faces.converter.ByteConverter.BYTE_detail=il valore deve essere un numero compreso tra 0 e 255
+javax.faces.converter.CharacterConverter.CHARACTER=deve essere un carattere
+javax.faces.converter.CharacterConverter.CHARACTER_detail=il valore deve essere un carattere ASCII valido
+javax.faces.converter.DateTimeConverter.DATE=deve essere una data
+javax.faces.converter.DateTimeConverter.DATE_detail=il valore deve essere una data, es. {1}
+javax.faces.converter.DateTimeConverter.TIME=deve essere un orario
+javax.faces.converter.DateTimeConverter.TIME_detail=il valore deve essere un orario, es. {1}
+javax.faces.converter.DateTimeConverter.DATETIME=deve essere una data ed un orario
+javax.faces.converter.DateTimeConverter.DATETIME_detail=il valore deve essere una data e un orario,  es. {1}
+javax.faces.converter.DateTimeConverter.PATTERN_TYPE=per convetire il valore devono essere specificati un pattern o un attributo tipo 
+javax.faces.converter.DoubleConverter.DOUBLE=deve essere un numero
+javax.faces.converter.DoubleConverter.DOUBLE_detail=il valore deve essere un numero compreso tra 4.9E-324 e 1.7976931348623157E308
+javax.faces.converter.EnumConverter.ENUM=il valore deve essere convertibile in una enum
+javax.faces.converter.EnumConverter.ENUM_detail=il valore deve essere convertibile in una enum o da enum che contiene la costante {1}
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS=il valore deve essere convertibile in una enum o da enum, ma non \u00E8 stata fornita nessuna classe enum 
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=il valore deve essere convertibile in una enum o da enum, ma non \u00E8 stata fornita nessuna classe enum 
+javax.faces.converter.FloatConverter.FLOAT=deve essere un numero
+javax.faces.converter.FloatConverter.FLOAT_detail=il valore deve essere un numero compreso tra 1.4E-45 e 3.4028235E38
+javax.faces.converter.IntegerConverter.INTEGER=deve essere un numero intero
+javax.faces.converter.IntegerConverter.INTEGER_detail=il valore deve essere un numero intero compreso tra -2147483648 e 2147483647
+javax.faces.converter.LongConverter.LONG=deve essere un numero intero
+javax.faces.converter.LongConverter.LONG_detail=il valore deve essere un numero intero compreso tra -9223372036854775808 e 9223372036854775807
+javax.faces.converter.NumberConverter.CURRENCY=il valore deve essere una valuta
+javax.faces.converter.NumberConverter.CURRENCY_detail=il valore deve essere una valuta, es. {1}
+javax.faces.converter.NumberConverter.PERCENT=il valore deve essere una percentuale
+javax.faces.converter.NumberConverter.PERCENT_detail=il valore deve essere una percentuale, es. {1}
+javax.faces.converter.NumberConverter.NUMBER=deve essere un numero
+javax.faces.converter.NumberConverter.NUMBER_detail=deve essere un numero
+javax.faces.converter.NumberConverter.PATTERN=deve essere un numero
+javax.faces.converter.NumberConverter.PATTERN_detail=deve essere un numero
+javax.faces.converter.ShortConverter.SHORT=deve essere un numero intero
+javax.faces.converter.ShortConverter.SHORT_detail=il valore deve essere un numero intero compreso -32768 e 32767
+
+javax.faces.validator.DoubleRangeValidator.MAXIMUM=il valore deve essere minore o uguale a {0}
+javax.faces.validator.DoubleRangeValidator.MINIMUM=il valore deve essere maggiore o uguale a {0}
+javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE=il valore deve essere compreso tra {0} e {1}
+javax.faces.validator.DoubleRangeValidator.TYPE=il valore non \u00E8 del tipo corretto
+javax.faces.validator.LengthValidator.MAXIMUM=il valore deve essere inferiore o uguale {0} caratteri
+javax.faces.validator.LengthValidator.MINIMUM=il valore deve essere superiore o uguale {0} caratteri
+javax.faces.validator.LongRangeValidator.MAXIMUM=il valore deve essere minore o uguale a {0}
+javax.faces.validator.LongRangeValidator.MINIMUM=il valore deve essere superiore o uguale a {0}
+javax.faces.validator.LongRangeValidator.NOT_IN_RANGE=il valore deve essere compreso tra {0} e {1}
+javax.faces.validator.LongRangeValidator.TYPE=il valore non \u00E8 del tipo corretto
+
+javax.faces.validator.NOT_IN_RANGE=il valore deve essere compreso tra {0} e {1}
+javax.faces.converter.STRING=il valore non pu\u00F2 essere convertito a stringa
+

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/messages_tr.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/messages_tr.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/messages_tr.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,90 @@
+up=\u2191
+down=\u2193
+left=\u2039
+right=\u203a
+
+validator.assertFalse=do\u011frulanamad\u0131
+validator.assertTrue=do\u011frulanamad\u0131
+validator.future=gelecek bir tarih olmal\u0131d\u0131r
+validator.length=girilen de\u011ferin uzunlu\u011fu {min} ile {max} aras\u0131nda olmal\u0131d\u0131r
+validator.max=girilen de\u011fer {value} ya da daha k\u00fc\u00e7\u00fck olmal\u0131d\u0131r
+validator.min=girilen de\u011fer {value} ya da daha b\u00fcy\u00fck olmal\u0131d\u0131r
+validator.notNull=bir de\u011fer girilmesi gereklidir
+validator.past=ge\u00e7mi\u015f bir tarih girilmelidir
+validator.pattern=girilen de\u011fer "{regex}" tan\u0131mlamas\u0131na uymal\u0131d\u0131r
+validator.range=girilen de\u011ferin b\u00fcy\u00fckl\u00fc\u011f\u00fc {min} ile {max} aras\u0131nda olmal\u0131d\u0131r
+validator.size=girilen de\u011ferin boyut {min} ile {max} aras\u0131nda olmal\u0131d\u0131r
+validator.email=girilen de\u011fer e-posta adresi format\u0131na uygun olmal\u0131d\u0131r
+
+org.jboss.seam.loginFailed=Oturum a\u00e7\u0131lamad\u0131
+org.jboss.seam.loginSuccessful=Ho\u015fgeldiniz, #0!
+
+org.jboss.seam.TransactionFailed=\u0130\u015flem tamamlanamad\u0131
+org.jboss.seam.NoConversation=Konu\u015fma sonland\u0131, zaman a\u015f\u0131m\u0131na u\u011frad\u0131 ya da ba\u015fka bir talebi i\u015fliyordu
+org.jboss.seam.IllegalNavigation=Ge\u00e7ersiz y\u00f6nleme(navigasyon)
+org.jboss.seam.ProcessEnded=#0 s\u00fcreci sonlanm\u0131\u015f
+org.jboss.seam.ProcessNotFound=#0 s\u00fcreci bulunamad\u0131
+org.jboss.seam.TaskEnded=#0 g\u00f6revi sonlanm\u0131\u015f
+org.jboss.seam.TaskNotFound=#0 g\u00f6revi bulunamad\u0131
+org.jboss.seam.NotLoggedIn=L\u00fctfen \u00f6ncelikle oturum a\u00e7\u0131n
+
+javax.faces.component.UIInput.CONVERSION=girilen de\u011fer, beklenen tipe d\u00f6n\u00fc\u015ft\u00fcr\u00fclemedi
+javax.faces.component.UIInput.REQUIRED=bir de\u011fer girilmesi gereklidir
+javax.faces.component.UIInput.UPDATE=talebiniz i\u015flenirken bir hata olu\u015ftu
+javax.faces.component.UISelectOne.INVALID=ge\u00e7erli bir de\u011fer girilmelidir
+javax.faces.component.UISelectMany.INVALID=ge\u00e7erli bir de\u011fer girilmelidir
+
+javax.faces.converter.BigDecimalConverter.DECIMAL=bir say\u0131 girilmelidir
+javax.faces.converter.BigDecimalConverter.DECIMAL_detail=girilen de\u011fer, s\u0131f\u0131r ya da daha fazla basamak i\u00e7eren, ondal\u0131k ayrac\u0131 ve ondal\u0131k basamak i\u00e7erebilen i\u015faretli bir ondal\u0131k say\u0131 olmal\u0131d\u0131r, \u00f6rn. {1}
+javax.faces.converter.BigIntegerConverter.BIGINTEGER=bir tamsay\u0131 girilmelidir
+javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=girilen de\u011fer bir ya da daha fazla basamak i\u00e7eren bir tamsay\u0131 olmal\u0131d\u0131r
+javax.faces.converter.BooleanConverter.BOOLEAN=girilen de\u011fer true ya da false olmal\u0131d\u0131r
+javax.faces.converter.BooleanConverter.BOOLEAN_detail=girilen de\u011fer true ya da false olmal\u0131d\u0131r (true olmayan her de\u011fer false olarak de\u011ferlendirilecektir)
+javax.faces.converter.ByteConverter.BYTE=girilen de\u011fer 0 ile 255 aras\u0131nda bir say\u0131 olmal\u0131d\u0131r
+javax.faces.converter.ByteConverter.BYTE_detail=girilen de\u011fer 0 ile 255 aras\u0131nda bir say\u0131 olmal\u0131d\u0131r
+javax.faces.converter.CharacterConverter.CHARACTER=girilen de\u011fer bir karakter olmal\u0131d\u0131r
+javax.faces.converter.CharacterConverter.CHARACTER_detail=ge\u00e7erli bir ASCII karakter girilmelidir
+javax.faces.converter.DateTimeConverter.DATE=girilen de\u011fer bir tarih olmal\u0131d\u0131r
+javax.faces.converter.DateTimeConverter.DATE_detail=girilen de\u011fer bir tarih olmal\u0131d\u0131r, \u00f6rn. {1}
+javax.faces.converter.DateTimeConverter.TIME=girilen de\u011fer bir zaman olmal\u0131d\u0131r
+javax.faces.converter.DateTimeConverter.TIME_detail=girilen de\u011fer bir zaman olmal\u0131d\u0131r, \u00f6rn. {1}
+javax.faces.converter.DateTimeConverter.DATETIME=girilen de\u011fer tarih ve zaman i\u00e7ermelidir
+javax.faces.converter.DateTimeConverter.DATETIME_detail=girilen de\u011fer tarih ve zaman i\u00e7ermelidir, \u00f6rn. {1}
+javax.faces.converter.DateTimeConverter.PATTERN_TYPE=girilen de\u011feri d\u00f6n\u00fc\u015ft\u00fcrebilmek i\u00e7in bir desen(pattern) ya da tip \u00f6zniteli\u011fi(attribute) tan\u0131mlanmal\u0131d\u0131r.
+javax.faces.converter.DoubleConverter.DOUBLE=bir say\u0131 girilmelidir
+javax.faces.converter.DoubleConverter.DOUBLE_detail=4.9E-324 ile 1.7976931348623157E308 aras\u0131nda bir say\u0131 girilmelidir
+javax.faces.converter.EnumConverter.ENUM=girilen de\u011fer enum tipine d\u00f6n\u00fc\u015ft\u00fcr\u00fclebilmelidir
+javax.faces.converter.EnumConverter.ENUM_detail=girilen de\u011fer sabit i\u00e7eren bir enum tipinden enum tipine d\u00f6n\u00fc\u015ft\u00fcr\u00fclebilmelidir {1}
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS=girilen de\u011fer enum tipinden enum tipine d\u00f6n\u00fc\u015ft\u00fcr\u00fclebilmelidir. Ancak enum s\u0131n\u0131f\u0131(class) bulunamad\u0131
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=girilen de\u011fer enum tipinden enum tipine d\u00f6n\u00fc\u015ft\u00fcr\u00fclebilmelidir. Ancak enum s\u0131n\u0131f\u0131(class) bulunamad\u0131
+javax.faces.converter.FloatConverter.FLOAT=bir say\u0131 girilmelidir
+javax.faces.converter.FloatConverter.FLOAT_detail=1.4E-45 ile 3.4028235E38 aras\u0131nda bir say\u0131 girilmelidir
+javax.faces.converter.IntegerConverter.INTEGER=bir tamsay\u0131 girilmelidir
+javax.faces.converter.IntegerConverter.INTEGER_detail=-2147483648 ile 2147483647 aras\u0131nda bir tamsay\u0131 girilmelidir
+javax.faces.converter.LongConverter.LONG=bir tamsay\u0131 girilmelidir
+javax.faces.converter.LongConverter.LONG_detail=-9223372036854775808 ile 9223372036854775807 aras\u0131nda bir tamsay\u0131 girilmelidir
+javax.faces.converter.NumberConverter.CURRENCY=para birimi tipinden bir de\u011fer girilmelidir
+javax.faces.converter.NumberConverter.CURRENCY_detail=para birimi tipinden bir de\u011fer girilmelidir, \u00f6rn. {1}
+javax.faces.converter.NumberConverter.PERCENT=y\u00fczdelik tipinden bir de\u011fer girilmelidir
+javax.faces.converter.NumberConverter.PERCENT_detail=y\u00fczdelik tipinden bir de\u011fer girilmelidir, \u00f6rn. {1}
+javax.faces.converter.NumberConverter.NUMBER=bir say\u0131 girilmelidir
+javax.faces.converter.NumberConverter.NUMBER_detail=bir say\u0131 girilmelidir
+javax.faces.converter.NumberConverter.PATTERN=bir say\u0131 girilmelidir
+javax.faces.converter.NumberConverter.PATTERN_detail=bir say\u0131 girilmelidir
+javax.faces.converter.ShortConverter.SHORT=bir tamsay\u0131 girilmelidir
+javax.faces.converter.ShortConverter.SHORT_detail=-32768 ile 32767 aras\u0131nda bir tamsay\u0131 girilmelidir
+
+javax.faces.validator.DoubleRangeValidator.MAXIMUM=girilen de\u011fer {0} ya da daha k\u00fc\u00e7\u00fck olmal\u0131d\u0131r
+javax.faces.validator.DoubleRangeValidator.MINIMUM=girilen de\u011fer {0} ya da daha b\u00fcy\u00fck olmal\u0131d\u0131r
+javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE=girilen de\u011fer {0} ile {1} aras\u0131nda olmal\u0131d\u0131r
+javax.faces.validator.DoubleRangeValidator.TYPE=girilen de\u011ferin tipi yanl\u0131\u015f
+javax.faces.validator.LengthValidator.MAXIMUM=girilen de\u011fer {0} ya da daha az karakter i\u00e7ermelidir
+javax.faces.validator.LengthValidator.MINIMUM=girilen de\u011fer {0} ya da fazla karakter i\u00e7ermelidir
+javax.faces.validator.LongRangeValidator.MAXIMUM=girilen de\u011fer {0} ya da daha k\u00fc\u00e7\u00fck olmal\u0131d\u0131r
+javax.faces.validator.LongRangeValidator.MINIMUM=girilen de\u011fer {0} ya da daha b\u00fcy\u00fck olmal\u0131d\u0131r
+javax.faces.validator.LongRangeValidator.NOT_IN_RANGE=girilen de\u011fer {0} ile {1} aral\u0131\u011f\u0131nda olmal\u0131d\u0131r
+javax.faces.validator.LongRangeValidator.TYPE=yanl\u0131\u015f tipte bir de\u011fer girildi
+
+javax.faces.validator.NOT_IN_RANGE=girilen de\u011fer {0} ile {1} aral\u0131\u011f\u0131nda olmal\u0131d\u0131r
+javax.faces.converter.STRING=girilen de\u011fer bir dizgiye(string) d\u00f6n\u00fc\u015ft\u00fcr\u00fclemedi
+

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/seam-gen.reveng.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/seam-gen.reveng.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/seam-gen.reveng.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE hibernate-reverse-engineering SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
+<hibernate-reverse-engineering>
+
+   <!-- Use this file to customize the generation of JPA entities from database
+	    tables performed either by `seam generate' or the Generate Entities task
+	    in JBoss Tools. You can find detailed instructions on controlling
+	    reverse engineering in the JBoss Tools reference documentation:
+	    http://docs.jboss.org/tools/3.0.0.Beta1/en/hibernatetools/html/index.html
+   -->
+
+   <!-- Uncomment the next line if you want to begin by excluding all tables,
+       then selectively including tables -->
+   <!--<table-filter match-name="*.*" exclude="true"/>-->
+
+   <!-- Uncomment one of the next two lines to include or exclude a single table -->
+   <!--<table-filter match-name="TABLE_NAME" exclude="true"/>-->
+   <!--<table-filter match-name="TABLE_NAME" exclude="false"/>-->
+
+   <!-- An example of a mapping customization -->
+   <!--
+   <table name="TABLE_PREFIX_BILL" class="org.example.model.Bill">
+      <meta attribute="class-code">
+// Code appended to the end of the generated class
+public float calculateTotal() {
+    return this.rate * this.hours;
+}
+      </meta/>
+      <column name="BILL_ID" property="id" type="java.lang.Long"/>
+      <column name="RTE" property="rate"/>
+      <column name="HRS" property="hours"/>
+   </table>
+   -->
+
+</hibernate-reverse-engineering>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/seam.properties
===================================================================

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/security.drl
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/security.drl	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/security.drl	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,6 @@
+package Permissions;
+
+import java.security.Principal;
+
+import org.jboss.seam.security.permission.PermissionCheck;
+import org.jboss.seam.security.Role;
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/user_registration-dev-ds.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/user_registration-dev-ds.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/user_registration-dev-ds.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE datasources
+    PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+    "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
+<datasources>
+   
+   <local-tx-datasource>
+      <jndi-name>user_registrationDatasource</jndi-name>
+      <use-java-context>false</use-java-context>
+      <connection-url>jdbc:hsqldb:.</connection-url>
+      <driver-class>org.hsqldb.jdbcDriver</driver-class>
+      <user-name>sa</user-name>
+      <password></password>
+   </local-tx-datasource>
+    
+</datasources>

Added: projects/demos/trainticket-demo/user_registration/trunk/resources/user_registration-prod-ds.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/resources/user_registration-prod-ds.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/resources/user_registration-prod-ds.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE datasources
+    PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+    "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
+<datasources>
+   
+   <local-tx-datasource>
+      <jndi-name>user_registrationDatasource</jndi-name>
+      <use-java-context>false</use-java-context>
+      <connection-url>jdbc:hsqldb:.</connection-url>
+      <driver-class>org.hsqldb.jdbcDriver</driver-class>
+      <user-name>sa</user-name>
+      <password></password>
+   </local-tx-datasource>
+    
+</datasources>

Added: projects/demos/trainticket-demo/user_registration/trunk/seam-gen.properties
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/seam-gen.properties	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/seam-gen.properties	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,29 @@
+#Generated by seam setup
+#Thu Aug 20 09:08:49 CEST 2009
+hibernate.connection.password=
+workspace.home=/home/jbarrez/dev/blog/jboss_world_demo/workspace
+hibernate.connection.dataSource_class=org.hsqldb.jdbc.jdbcDataSource
+model.package=org.jbpm.trainticketdemo.userregistration.entity
+driver.jar=/home/jbarrez/dev/blog/jboss_world_demo/temp/jboss-seam-2.2.0.GA/lib/hsqldb.jar
+action.package=org.jbpm.trainticketdemo.userregistration.sessionbeans
+test.package=org.jbpm.trainticketdemo.test
+database.type=hsql
+richfaces.skin=glassX
+glassfish.domain=domain1
+hibernate.default_catalog.null=
+hibernate.default_schema.null=
+database.drop=n
+project.name=user_registration
+hibernate.connection.username=sa
+glassfish.home=C\:/Program Files/glassfish-v2.1
+hibernate.connection.driver_class=org.hsqldb.jdbcDriver
+hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
+jboss.domain=default
+project.type=ear
+icefaces.home=
+database.exists=n
+jboss.home=/home/jbarrez/dev/blog/jboss_world_demo/jboss-4.2.3.GA
+driver.license.jar=
+hibernate.dialect=org.hibernate.dialect.HSQLDialect
+hibernate.connection.url=jdbc\:hsqldb\:.
+icefaces=n

Added: projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AddCredits.java
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AddCredits.java	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AddCredits.java	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.trainticketdemo.userregistration.sessionbeans;
+
+import javax.ejb.Local;
+
+/**
+ * @author Joram Barrez
+ */
+ at Local
+public interface AddCredits {
+	
+	public void addCredits();
+	
+	public String getCreditsToAdd();
+	
+	public void setCreditsToAdd(String creditsToAdd);
+	
+	public void reloadDetails();
+
+}

Added: projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AddCreditsAction.java
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AddCreditsAction.java	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AddCreditsAction.java	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,78 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.trainticketdemo.userregistration.sessionbeans;
+
+import javax.ejb.Stateless;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Logger;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+import org.jboss.seam.faces.FacesMessages;
+import org.jboss.seam.log.Log;
+import org.jbpm.trainticketdemo.userregistration.entity.User;
+
+/**
+ * @author Joram Barrez
+ */
+ at Stateless
+ at Name("addCreditsAction")
+public class AddCreditsAction implements AddCredits {
+	
+	@In
+	@Out
+	private User user;
+	
+	@PersistenceContext
+	private EntityManager em;
+	
+	@Logger
+	private Log log;
+	
+	private String creditsToAdd = "";
+	
+	public void addCredits() {
+		try {
+			Double credits = Double.parseDouble(creditsToAdd);
+			user.setCurrentCredit(user.getCurrentCredit() + credits);
+			em.merge(user);
+			FacesMessages.instance().add(credits + " added to balance");
+		} catch (NumberFormatException e) {
+			FacesMessages.instance().add("Invalid amount of credits.");
+		}
+	}
+	
+	public void reloadDetails() {
+		this.user = em.find(User.class, user.getId());
+	}
+
+	public String getCreditsToAdd() {
+		return creditsToAdd;
+	}
+
+	public void setCreditsToAdd(String creditsToAdd) {
+		this.creditsToAdd = creditsToAdd;
+	}
+
+}

Added: projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/Authenticator.java
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/Authenticator.java	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/Authenticator.java	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,10 @@
+package org.jbpm.trainticketdemo.userregistration.sessionbeans;
+
+import javax.ejb.Local;
+
+ at Local
+public interface Authenticator {
+
+    boolean authenticate();
+
+}

Added: projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AuthenticatorBean.java
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AuthenticatorBean.java	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/AuthenticatorBean.java	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,60 @@
+package org.jbpm.trainticketdemo.userregistration.sessionbeans;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.ejb.Stateless;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Logger;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+import org.jboss.seam.log.Log;
+import org.jboss.seam.security.Credentials;
+import org.jboss.seam.security.Identity;
+import org.jbpm.trainticketdemo.userregistration.entity.User;
+
+ at Stateless
+ at Name("authenticator")
+public class AuthenticatorBean implements Authenticator
+{
+    @Logger 
+    private Log log;
+
+    @In 
+    Identity identity;
+    @In 
+    Credentials credentials;
+    
+    @PersistenceContext
+    private EntityManager em;
+    
+    @Out(required = false)
+    private User user;
+    
+
+    @SuppressWarnings("unchecked")
+	public boolean authenticate() {
+    	
+    	// Dummy authentication! Do not use in production!
+        log.info("authenticating {0}", credentials.getUsername());
+        
+        List<User> users = new ArrayList<User>();
+        if (credentials.getUsername().equalsIgnoreCase("emulator")) {
+        	users = em.createQuery("select user from User user where user.name='jBPMPhone' ").getResultList();
+        } else {
+        	users = em.createQuery(
+        			"select user from User user where user.cellPhoneNr= #{credentials.username} "
+        			+" and user.password = #{credentials.password}").getResultList();
+        }
+        
+        if (users.size() == 1) {
+        	user = users.get(0);
+        }
+        		 
+        return user != null;
+    }
+
+}

Added: projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/Register.java
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/Register.java	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/Register.java	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.trainticketdemo.userregistration.sessionbeans;
+
+import javax.ejb.Local;
+
+/**
+ * @author Joram Barrez
+ */
+ at Local
+public interface Register {
+
+	String register();
+	
+}

Added: projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/RegisterAction.java
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/RegisterAction.java	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/src/hot/org/jbpm/trainticketdemo/userregistration/sessionbeans/RegisterAction.java	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.trainticketdemo.userregistration.sessionbeans;
+
+import java.util.List;
+
+import javax.ejb.Stateless;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Logger;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.faces.FacesMessages;
+import org.jboss.seam.log.Log;
+import org.jbpm.trainticketdemo.userregistration.entity.User;
+
+/**
+ * @author Joram Barrez
+ */
+ at Stateless
+ at Name("registerAction")
+public class RegisterAction implements Register {
+
+	@In
+	private User user;
+
+	@PersistenceContext
+	private EntityManager em;
+	
+	@Logger
+	private Log log;
+
+	public String register() {
+		
+		List existingCellPhone = em.createQuery(
+				"select name from User where cellPhoneNr = #{user.cellPhoneNr}")
+				.getResultList();
+
+		if (existingCellPhone.size() == 0) {
+			user.setCurrentCredit(0.0);
+			em.persist(user);
+			log.info("Registered new cellphone nr #{user.cellPhoneNr} for #{user.name}");
+			return "/registered.xhtml";
+		} else {
+			FacesMessages.instance().add("Cellphone number #{user.cellPhoneNr} already registered");
+			return null;
+		}
+
+	}
+
+}

Added: projects/demos/trainticket-demo/user_registration/trunk/src/main/org/jbpm/trainticketdemo/userregistration/entity/User.java
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/src/main/org/jbpm/trainticketdemo/userregistration/entity/User.java	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/src/main/org/jbpm/trainticketdemo/userregistration/entity/User.java	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,116 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.trainticketdemo.userregistration.entity;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+/**
+ * @author Joram Barrez
+ */
+ at Entity
+ at Name("user")
+ at Scope(ScopeType.SESSION)
+ at Table(name = "USERS")
+public class User {
+	
+	private long id;
+	
+	private String cellPhoneNr;
+	
+	private String name;
+	
+	private String password;
+	
+	private Double currentCredit;
+	
+	public User() {
+		
+	}
+
+	@Id
+	@GeneratedValue(strategy = GenerationType.AUTO)
+	@Column(name = "ID")
+	public long getId() {
+		return id;
+	}
+
+	public void setId(long id) {
+		this.id = id;
+	}
+
+	@Column(name = "NAME")
+	@NotNull
+	@NotEmpty
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	@Column(name = "CELL_PHONE")
+	@NotNull
+	@NotEmpty
+	public String getCellPhoneNr() {
+		return cellPhoneNr;
+	}
+
+	public void setCellPhoneNr(String cellPhoneNr) {
+		this.cellPhoneNr = cellPhoneNr;
+	}
+	
+	@Column(name = "CREDIT")
+	@NotNull
+	public Double getCurrentCredit() {
+		return currentCredit;
+	}
+
+	public void setCurrentCredit(Double currentCredit) {
+		this.currentCredit = currentCredit;
+	}
+
+	@Column(name = "PASSWORD")
+	@NotNull
+	@NotEmpty
+	public String getPassword() {
+		return password;
+	}
+
+	public void setPassword(String password) {
+		this.password = password;
+	}
+	
+	
+
+}

Added: projects/demos/trainticket-demo/user_registration/trunk/src/test/readme.txt
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/src/test/readme.txt	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/src/test/readme.txt	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,29 @@
+If you want to run tests using the Eclipse TestNG plugin, you'll need to add
+these jars to the top of your TestNG classpath. Using the Run Dialog, select the
+XML suite to run, and select these entries from the project tree:
+
+/lib/test/jboss-embedded-all.jar
+/lib/test/hibernate-all.jar
+/lib/test/thirdparty-all.jar
+/lib/jboss-embedded-api.jar
+/lib/jboss-deployers-client-spi.jar
+/lib/jboss-deployers-core-spi.jar
+
+You also need to add the Embedded JBoss bootstrap folder, which you can do by
+clicking on the Advanced... button.
+
+/bootstrap
+
+Seam uses JBoss Embedded in its unit and integration testing. This has an
+additional requirement when using JDK 6. Add the following VM argument to the VM
+args tab in the TestNG launch configuration for your suite.
+
+-Dsun.lang.ClassLoader.allowArraySyntax=true 
+
+Please be sure to use JDK 6 Update 4 or better (>= 1.6.0_04) if you are using
+JDK 6. The Update 4 release upgraded to JAXB 2.1 which removes a problem with
+earlier versions of Sun's JDK 6 which required overriding the JAXB libraries
+using the endorsed directory. 
+
+To add tests to your project create a TestNG xml descriptor called *Test.xml
+(e.g. FooTest.xml) next to your test classes and run ant test.

Added: projects/demos/trainticket-demo/user_registration/trunk/user_registration.iml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/user_registration.iml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/user_registration.iml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,418 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module relativePaths="true" type="JAVA_MODULE" version="4">
+  <component name="FacetManager">
+    <facet type="web" name="Web">
+      <configuration>
+        <descriptors>
+          <deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/resources/WEB-INF/web.xml" optional="false" version="2.5" />
+        </descriptors>
+        <webroots>
+          <root url="file://$MODULE_DIR$/view" relative="/" />
+        </webroots>
+        <sourceRoots>
+          <root url="file://$MODULE_DIR$/src/hot" />
+          <root url="file://$MODULE_DIR$/src/main" />
+        </sourceRoots>
+        <building>
+          <setting name="EXPLODED_URL" value="file://" />
+          <setting name="EXPLODED_ENABLED" value="false" />
+          <setting name="JAR_URL" value="file://" />
+          <setting name="JAR_ENABLED" value="false" />
+          <setting name="EXCLUDE_EXPLODED_DIRECTORY" value="true" />
+        </building>
+        <packaging>
+          <containerElement type="module" name="user_registration">
+            <attribute name="method" value="1" />
+            <attribute name="URI" value="/WEB-INF/classes" />
+          </containerElement>
+        </packaging>
+      </configuration>
+      <facet type="jsf" name="JSF">
+        <configuration />
+      </facet>
+    </facet>
+    <facet type="jpa" name="JPA">
+      <configuration>
+        <setting name="validation-enabled" value="true" />
+        <setting name="provider-name" value="Hibernate" />
+        <datasource-mapping>
+          <factory-entry name="user_registration" value="86c824fb-f41b-4fd1-986c-be634e7b9cfc" />
+        </datasource-mapping>
+        <deploymentDescriptor name="persistence.xml" url="file://$MODULE_DIR$/resources/META-INF/persistence-dev-war.xml" optional="false" version="1.0" />
+      </configuration>
+    </facet>
+    <facet type="Seam" name="Seam">
+      <configuration />
+    </facet>
+  </component>
+  <component name="NewModuleRootManager" inherit-compiler-output="false">
+    <output url="file://$MODULE_DIR$/classes" />
+    <output-test url="file://$MODULE_DIR$/test-build" />
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src/hot" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/src/main" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
+      <excludeFolder url="file://$MODULE_DIR$/dist" />
+      <excludeFolder url="file://$MODULE_DIR$/exploded-archives" />
+    </content>
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="file://$MODULE_DIR$/bootstrap" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/hibernate-validator.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/hibernate-core.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/hibernate-annotations.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/hibernate-commons-annotations.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/hibernate-entitymanager.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jboss-seam.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES>
+          <root url="jar://$MODULE_DIR$/lib/src/jboss-seam-sources.jar!/" />
+        </SOURCES>
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jboss-seam-ui.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES>
+          <root url="jar://$MODULE_DIR$/lib/src/jboss-seam-ui-sources.jar!/" />
+        </SOURCES>
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jboss-seam-debug.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jboss-cache.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jbpm-jpdl.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/antlr.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jgroups.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jsf-facelets.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jsf-api.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/servlet-api.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/testng.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jboss-el.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/el-api.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/mvel2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/drools-api.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/drools-core.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/drools-compiler.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/drools-decisiontables.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/drools-templates!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/janino.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/antlr-runtime.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/mail.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/persistence-api.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/ejb-api.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jsr250-api.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jta.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/core.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jboss-embedded-api.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/hibernate-search.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/richfaces-api.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/hsqldb.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/lucene-core.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/lib/jsf-impl.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+  </component>
+</module>
+

Added: projects/demos/trainticket-demo/user_registration/trunk/user_registration.ipr
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/user_registration.ipr	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/user_registration.ipr	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,268 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project relativePaths="true" version="4">
+  <component name="AntConfiguration">
+    <defaultAnt bundledAnt="true" />
+  </component>
+  <component name="BuildJarProjectSettings">
+    <option name="BUILD_JARS_ON_MAKE" value="false" />
+  </component>
+  <component name="CodeStyleSettingsManager">
+    <option name="PER_PROJECT_SETTINGS" />
+    <option name="USE_PER_PROJECT_SETTINGS" value="false" />
+  </component>
+  <component name="CompilerConfiguration">
+    <option name="DEFAULT_COMPILER" value="Javac" />
+    <option name="DEPLOY_AFTER_MAKE" value="0" />
+    <resourceExtensions>
+      <entry name=".+\.(properties|xml|html|dtd|tld)" />
+      <entry name=".+\.(gif|png|jpeg|jpg)" />
+    </resourceExtensions>
+    <wildcardResourcePatterns>
+      <entry name="?*.properties" />
+      <entry name="?*.xml" />
+      <entry name="?*.gif" />
+      <entry name="?*.png" />
+      <entry name="?*.jpeg" />
+      <entry name="?*.jpg" />
+      <entry name="?*.html" />
+      <entry name="?*.dtd" />
+      <entry name="?*.tld" />
+      <entry name="?*.ftl" />
+    </wildcardResourcePatterns>
+  </component>
+  <component name="DataSourceManagerImpl">
+    <DataSource DataSourceSourceName="LOCAL">
+      <option name="DRIVER_CLASS" value="org.hsqldb.jdbcDriver" />
+      <option name="DATABASE_URL" value="jdbc:hsqldb:." />
+      <option name="DRIVER_PATH" />
+      <option name="DATBASE_USERNAME" value="sa" />
+      <option name="ENCODED_DATABASE_PASSWORD" value="" />
+      <option name="DEFAULT_SCHEMA_NAME" />
+      <option name="TABLE_PATTERN" value="" />
+      <option name="UUID" value="e73c7eb0-2abf-4e85-b26d-46c545728ae9" />
+      <option name="NAME" value="user_registrationDatasource" />
+      <libraries>
+        <library>
+          <url>jar://$PROJECT_DIR$/lib/hsqldb.jar!/</url>
+        </library>
+      </libraries>
+    </DataSource>
+  </component>
+  <component name="DependenciesAnalyzeManager">
+    <option name="myForwardDirection" value="false" />
+  </component>
+  <component name="DependencyValidationManager">
+    <option name="SKIP_IMPORT_STATEMENTS" value="false" />
+  </component>
+  <component name="EclipseCompilerSettings">
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="true" />
+    <option name="DEPRECATION" value="false" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+    <option name="MAXIMUM_HEAP_SIZE" value="128" />
+  </component>
+  <component name="EclipseEmbeddedCompilerSettings">
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="true" />
+    <option name="DEPRECATION" value="false" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+    <option name="MAXIMUM_HEAP_SIZE" value="128" />
+  </component>
+  <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
+  <component name="EntryPointsManager">
+    <entry_points version="2.0" />
+  </component>
+  <component name="IdProvider" IDEtalkID="347211BFE083C9A041EFAF04DAA1B135" />
+  <component name="InspectionProjectProfileManager">
+    <option name="PROJECT_PROFILE" value="Project Default" />
+    <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
+    <scopes />
+    <profiles>
+      <profile version="1.0" is_locked="false">
+        <option name="myName" value="Project Default" />
+        <option name="myLocal" value="false" />
+      </profile>
+    </profiles>
+    <list size="0" />
+  </component>
+  <component name="JavacSettings">
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="false" />
+    <option name="DEPRECATION" value="true" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+    <option name="MAXIMUM_HEAP_SIZE" value="128" />
+  </component>
+  <component name="JavadocGenerationManager">
+    <option name="OUTPUT_DIRECTORY" />
+    <option name="OPTION_SCOPE" value="protected" />
+    <option name="OPTION_HIERARCHY" value="true" />
+    <option name="OPTION_NAVIGATOR" value="true" />
+    <option name="OPTION_INDEX" value="true" />
+    <option name="OPTION_SEPARATE_INDEX" value="true" />
+    <option name="OPTION_DOCUMENT_TAG_USE" value="false" />
+    <option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />
+    <option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />
+    <option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
+    <option name="OPTION_DEPRECATED_LIST" value="true" />
+    <option name="OTHER_OPTIONS" value="" />
+    <option name="HEAP_SIZE" />
+    <option name="LOCALE" />
+    <option name="OPEN_IN_BROWSER" value="true" />
+  </component>
+  <component name="JikesSettings">
+    <option name="JIKES_PATH" value="" />
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="DEPRECATION" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="false" />
+    <option name="IS_EMACS_ERRORS_MODE" value="true" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+  </component>
+  <component name="Palette2">
+    <group name="Swing">
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
+      </item>
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
+        <initial-values>
+          <property name="text" value="Button" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="RadioButton" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="CheckBox" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="Label" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
+          <preferred-size width="-1" height="20" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
+      </item>
+    </group>
+  </component>
+  <component name="ProjectDetails">
+    <option name="projectName" value="user_registration" />
+  </component>
+  <component name="ProjectFileVersion" converted="true" />
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/user_registration.iml" filepath="$PROJECT_DIR$/user_registration.iml" />
+    </modules>
+  </component>
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_5" assert-keyword="true" jdk-15="true" project-jdk-name="1.6" project-jdk-type="JavaSDK">
+    <output url="file://$PROJECT_DIR$/classes" />
+  </component>
+  <component name="RmicSettings">
+    <option name="IS_EANABLED" value="false" />
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="false" />
+    <option name="GENERATE_IIOP_STUBS" value="false" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+  </component>
+  <component name="SvnBranchConfigurationManager">
+    <option name="myVersion" value="123" />
+  </component>
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="" />
+  </component>
+  <component name="WebServicesPlugin" addRequiredLibraries="true" />
+</project>
+

Added: projects/demos/trainticket-demo/user_registration/trunk/user_registration.launch
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/user_registration.launch	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/user_registration.launch	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Hibernate Console launch configuration -->
+<launchConfiguration type="org.hibernate.eclipse.launch.ConsoleConfigurationLaunchConfigurationType">
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="user_registration"/>
+<stringAttribute key="org.hibernate.eclipse.launch.PROPERTY_FILE" value="/user_registration/hibernate-console.properties"/>
+<stringAttribute key="org.hibernate.eclipse.launch.CONFIGURATION_FACTORY" value="JPA"/>
+</launchConfiguration>

Added: projects/demos/trainticket-demo/user_registration/trunk/validate.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/validate.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/validate.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,84 @@
+<?xml version="1.0"?>
+<project basedir=".">
+	
+	<property name="seam.dir" value="${basedir}" />
+
+	<property name="seam.schemaLocations" value="
+	http://jboss.com/products/seam/async ${src.schema.dir}/async-${schema.version}.xsd 
+	http://jboss.com/products/seam/bpm ${src.schema.dir}/bpm-${schema.version}.xsd 
+	http://jboss.com/products/seam/components ${src.schema.dir}/components-${schema.version}.xsd 
+	http://jboss.com/products/seam/core ${src.schema.dir}/core-${schema.version}.xsd 
+	http://jboss.com/products/seam/drools ${src.schema.dir}/drools-${schema.version}.xsd 
+	http://jboss.com/products/seam/framework ${src.schema.dir}/framework-${schema.version}.xsd 
+	http://jboss.com/products/seam/international ${src.schema.dir}/international-${schema.version}.xsd 
+	http://jboss.com/products/seam/jms ${src.schema.dir}/jms-${schema.version}.xsd 
+	http://jboss.com/products/seam/mail ${src.schema.dir}/mail-${schema.version}.xsd 
+	http://jboss.com/products/seam/navigation ${src.schema.dir}/navigation-${schema.version}.xsd 
+	http://jboss.com/products/seam/pageflow ${src.schema.dir}/pageflow-${schema.version}.xsd 
+	http://jboss.com/products/seam/pages ${src.schema.dir}/pages-${schema.version}.xsd 
+	http://jboss.com/products/seam/pdf ${seam.dir}/src/pdf/org/jboss/seam/pdf/pdf-${schema.version}.xsd 
+	http://jboss.com/products/seam/persistence ${src.schema.dir}/persistence-${schema.version}.xsd 
+	http://jboss.com/products/seam/remoting ${src.schema.dir}/remoting-${schema.version}.xsd 
+	http://jboss.com/products/seam/resteasy ${seam.dir}/src/resteasy/org/jboss/seam/resteasy/resteasy-${schema.version}.xsd
+	http://jboss.com/products/seam/security ${src.schema.dir}/security-${schema.version}.xsd 
+	http://jboss.com/products/seam/theme ${src.schema.dir}/theme-${schema.version}.xsd 
+	http://jboss.com/products/seam/transaction ${src.schema.dir}/transaction-${schema.version}.xsd 
+	http://jboss.com/products/seam/web ${src.schema.dir}/web-${schema.version}.xsd " />
+	
+	<property name="xsdLocation" value="http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd" />
+
+	<taskdef name="xmlvalidate.task" classname="org.apache.tools.ant.taskdefs.optional.XMLValidateTask">
+		<classpath>
+			<fileset dir="${seam.dir}/lib" />
+		</classpath>
+	</taskdef>
+
+	<fileset id="validate.resources" dir="${validate.resources.dir}">
+		<include name="**/META-INF/application.xml" />
+		<include name="**/META-INF/ejb-jar.xml" />
+		<include name="**/META-INF/persistence.xml" />
+		<include name="**/META-INF/jboss-app.xml" />
+		<include name="**/META-INF/orm.xml" />
+		<include name="**/WEB-INF/components.xml" />
+		<include name="**/WEB-INF/pages.xml" />
+		<include name="**/WEB-INF/faces-config.xml" />
+		<include name="**/WEB-INF/web.xml" />
+		<include name="**/WEB-INF/jboss-web.xml" />
+		<include name="**/${example.ds}" />
+		<include name="**/hibernate.cfg.xml" />
+		<include name="**/*.jpdl.xml" />
+		<exclude name="**/.gpd.*.jpdl.xml" />
+	</fileset>
+	
+	<fileset id="validate.schemas" dir="${seam.dir}">
+		<include name="src/**/*.xsd" />
+	</fileset>
+
+	<target name="validateConfiguration" description="Validate XML Configuration Files">
+		<validateConfiguration>
+			<fileset refid="validate.resources" />
+		</validateConfiguration>
+	</target>
+	
+	<target name="validatexsd" description="Validate all XML Schemas">
+		<validateConfiguration>
+			<fileset refid="validate.schemas" />
+		</validateConfiguration>
+	</target>
+
+	<presetdef name="validateConfiguration" >
+		<xmlvalidate.task classname="org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser">
+			<attribute name="http://xml.org/sax/features/validation" value="true" />
+			<attribute name="http://apache.org/xml/features/validation/schema" value="true" />
+			<attribute name="http://xml.org/sax/features/namespaces" value="true" />
+			<property name="http://apache.org/xml/properties/schema/external-schemaLocation" value="${seam.schemaLocations} ${xsdLocation}" />
+			<xmlcatalog>
+				<dtd publicId="-//JBoss/Seam Component Configuration DTD 2.0//EN" location="${src.schema.dir}/components-${schema.version}.dtd" />
+				<dtd publicId="-//JBoss/Seam Pages Configuration DTD 2.0//EN" location="${src.schema.dir}/pages-${schema.version}.dtd" />
+			</xmlcatalog>
+			<classpath>
+				<fileset dir="${seam.dir}/lib" />
+			</classpath>
+		</xmlvalidate.task>
+	</presetdef>
+</project>
\ No newline at end of file

Added: projects/demos/trainticket-demo/user_registration/trunk/view/error.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/error.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/error.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,19 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:s="http://jboss.com/products/seam/taglib"
+    xmlns:ui="http://java.sun.com/jsf/facelets"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:h="http://java.sun.com/jsf/html"
+    template="layout/template.xhtml">
+
+    <ui:param name="showGlobalMessages" value="false"/>
+    <ui:define name="body">
+
+        <h1>Error</h1>
+        <p>Something bad happened :-(</p>
+
+        <h:messages id="errorMessage" styleClass="message"/>
+
+    </ui:define>
+</ui:composition>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/favicon.ico
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/favicon.ico
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/home.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/home.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/home.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,37 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:s="http://jboss.com/products/seam/taglib"
+    xmlns:ui="http://java.sun.com/jsf/facelets"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:rich="http://richfaces.org/rich"
+    template="layout/template.xhtml">
+
+    <ui:define name="body">
+
+        <h1>Welcome to Seam!</h1>
+        <rich:panel>
+            <h:panelGrid columns="2">
+                <h:graphicImage value="/img/seamlogo.png" alt="Seam logo"/>
+                <s:div styleClass="info">
+                    <p><strong>Your seam-gen project is deployed!</strong> Here are some of the features this project provides:</p>
+                    <ul class="bullets">
+                        <li>Ant build script</li>
+                        <li>Deployment to JBoss AS (EAR or WAR)</li>
+                        <li>Development and production profiles</li>
+                        <li>Integration testing using TestNG and Embedded JBoss</li>
+                        <li>JavaBean or EJB 3.0 Seam components</li>
+                        <li>JPA entity classes</li>
+                        <li>A configurable DataSource and JPA EntityManager</li>
+                        <li>Templated Facelets views</li>
+                        <li>RichFaces panels and tables</li>
+                        <li>Default CSS stylesheet</li>
+                        <li>Internationalization support</li>
+                    </ul>
+                </s:div>
+            </h:panelGrid>
+        </rich:panel>
+
+    </ui:define>
+</ui:composition>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnmanageroles.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnmanageroles.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnmanageusers.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnmanageusers.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnnewpermission.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnnewpermission.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnnewrole.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnnewrole.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnnewuser.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/btnnewuser.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/dtpick.gif
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/dtpick.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/error.gif
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/error.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/false.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/false.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/manytoone.gif
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/manytoone.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/msgerror.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/msgerror.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/msginfo.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/msginfo.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/msgwarn.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/msgwarn.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/onetomany.gif
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/onetomany.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/seamlogo.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/seamlogo.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/img/true.png
===================================================================
(Binary files differ)


Property changes on: projects/demos/trainticket-demo/user_registration/trunk/view/img/true.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/demos/trainticket-demo/user_registration/trunk/view/index.html
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/index.html	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/index.html	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1 @@
+<html><head><meta http-equiv="Refresh" content="0; URL=login.seam"/></head></html>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/layout/display.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/layout/display.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/layout/display.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,16 @@
+<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
+                 xmlns:ui="http://java.sun.com/jsf/facelets"
+                 xmlns:h="http://java.sun.com/jsf/html"
+                 xmlns:f="http://java.sun.com/jsf/core"
+                 xmlns:s="http://jboss.com/products/seam/taglib">
+
+    <div class="prop">
+        <span class="name">
+            <ui:insert name="label"/>
+        </span>
+        <span class="value">
+            <ui:insert/>
+        </span>
+    </div>
+
+</ui:composition>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/layout/edit.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/layout/edit.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/layout/edit.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,27 @@
+<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
+                 xmlns:ui="http://java.sun.com/jsf/facelets"
+                 xmlns:h="http://java.sun.com/jsf/html"
+                 xmlns:f="http://java.sun.com/jsf/core"
+                 xmlns:s="http://jboss.com/products/seam/taglib">
+
+    <div class="prop">
+
+        <s:label styleClass="name #{invalid?'errors':''}">
+            <ui:insert name="label"/>
+            <s:span styleClass="required" rendered="#{required}">*</s:span>
+        </s:label>
+
+        <span class="value #{invalid?'errors':''}">
+            <s:validateAll>
+                <ui:insert/>
+            </s:validateAll>
+        </span>
+
+        <span class="error">
+            <h:graphicImage value="/img/error.gif" rendered="#{invalid}" styleClass="errors"/>
+            <s:message styleClass="errors"/>
+        </span>
+
+    </div>
+
+</ui:composition>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/layout/menu.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/layout/menu.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/layout/menu.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,18 @@
+<rich:toolBar
+    xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:ui="http://java.sun.com/jsf/facelets"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:s="http://jboss.com/products/seam/taglib"
+    xmlns:rich="http://richfaces.org/rich">
+    <rich:toolBarGroup>
+        <h:outputText value="#{projectName}:"/>
+        <s:link id="menuHomeId" view="/login.xhtml" value="Home" propagation="none"/>
+    </rich:toolBarGroup>
+    <!-- @newMenuItem@ -->
+    <rich:toolBarGroup location="right">
+        <h:outputText id="menuWelcomeId" value="signed in as: #{user.name}" rendered="#{identity.loggedIn}"/>
+        <s:link id="menuLoginId" view="/login.xhtml" value="Login" rendered="#{not identity.loggedIn}" propagation="none"/>
+        <s:link id="menuLogoutId" view="/home.xhtml" action="#{identity.logout}" value="Logout" rendered="#{identity.loggedIn}" propagation="none"/>
+    </rich:toolBarGroup>
+</rich:toolBar>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/layout/sort.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/layout/sort.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/layout/sort.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,11 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:ui="http://java.sun.com/jsf/facelets"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:c="http://java.sun.com/jstl/core"
+    xmlns:s="http://jboss.com/products/seam/taglib">
+    <s:link styleClass="columnHeader" value="#{propertyLabel} #{entityList.orderColumn == propertyPath ? (entityList.orderDirection == 'desc' ? messages.down : messages.up) : ''}">
+        <f:param name="sort" value="#{propertyPath}"/>
+        <f:param name="dir" value="#{entityList.orderColumn == propertyPath and entityList.orderDirection == 'asc' ? 'desc' : 'asc'}"/>
+    </s:link>
+</ui:composition>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/layout/template.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/layout/template.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/layout/template.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,34 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<f:view xmlns="http://www.w3.org/1999/xhtml"
+   xmlns:ui="http://java.sun.com/jsf/facelets"
+   xmlns:f="http://java.sun.com/jsf/core"
+   xmlns:h="http://java.sun.com/jsf/html"
+   xmlns:a="http://richfaces.org/a4j"
+   xmlns:s="http://jboss.com/products/seam/taglib"
+   contentType="text/html">
+<html>
+   <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>jBPM on Rails user registration</title>
+      <link rel="shortcut icon" href="#{request.contextPath}/favicon.ico"/>
+      <a:loadStyle src="resource:///stylesheet/theme.xcss"/>
+      <a:loadStyle src="/stylesheet/theme.css"/>
+      <ui:insert name="head"/>
+   </head>
+   <body>
+      <ui:include src="menu.xhtml">
+         <ui:param name="projectName" value="user_registration"/>
+      </ui:include>
+      <div class="body">
+         <h:messages id="messages" globalOnly="true" styleClass="message"
+            errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
+            rendered="#{showGlobalMessages != 'false'}"/>
+         <ui:insert name="body"/>
+      </div>
+      <div class="footer">
+         <p>Powered by <a href="http://seamframework.org">Seam</a> #{org.jboss.seam.version} and <a href="http://www.jboss.org/jbossrichfaces">RichFaces</a>.</p>
+      </div>
+   </body>
+</html>
+</f:view>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/login.page.xml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/login.page.xml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/login.page.xml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<page xmlns="http://jboss.com/products/seam/pages"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd">
+
+   <navigation from-action="#{identity.login}">
+      <rule if="#{identity.loggedIn}">
+         <redirect view-id="/user_details.xhtml"/>
+      </rule>
+   </navigation>
+
+</page>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/login.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/login.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/login.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,44 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:s="http://jboss.com/products/seam/taglib"
+    xmlns:ui="http://java.sun.com/jsf/facelets"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:rich="http://richfaces.org/rich"
+    template="layout/template.xhtml">
+
+<ui:define name="body">
+
+    <h:form id="loginForm">
+
+        <rich:panel>
+            <f:facet name="header">Login</f:facet>
+
+            <p>Please login here</p>
+
+            <div class="dialog">
+                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
+                    <h:outputLabel for="username">Cellphone number</h:outputLabel>
+                    <h:inputText id="username" value="#{credentials.username}"/>
+                    <h:outputLabel for="password">Password</h:outputLabel>
+                    <h:inputSecret id="password" value="#{credentials.password}"/>
+                    <h:outputLabel for="rememberMe">Remember me</h:outputLabel>
+                    <h:selectBooleanCheckbox id="rememberMe" value="#{rememberMe.enabled}"/>
+                </h:panelGrid>
+            </div>
+
+            <p>
+              <b>New user?</b> Please register <s:link view="/register.xhtml">here</s:link>.
+            </p>
+
+        </rich:panel>
+
+        <div class="actionButtons">
+            <h:commandButton id="submit" value="Login" action="#{identity.login}"/>
+        </div>
+
+    </h:form>
+
+ </ui:define>
+</ui:composition>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/register.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/register.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/register.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:s="http://jboss.com/products/seam/taglib"
+	xmlns:ui="http://java.sun.com/jsf/facelets"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml">
+
+	<ui:define name="body">
+
+		<rich:panel>
+
+			<f:facet name="header">Login</f:facet>
+
+			<f:view>
+				<h:form>
+					<s:validateAll>
+						<h:panelGrid columns="2">
+                  		Name: <h:inputText value="#{user.name}"	required="true" />
+						Cellphone number: <h:inputText value="#{user.cellPhoneNr}" required="true" />
+                  		Password: <h:inputSecret value="#{user.password}" required="true" />
+						</h:panelGrid>
+					</s:validateAll>
+					<h:messages />
+					<h:commandButton value="Register"
+						action="#{registerAction.register}" />
+				</h:form>
+			</f:view>
+		</rich:panel>
+	</ui:define>
+</ui:composition>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/registered.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/registered.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/registered.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:s="http://jboss.com/products/seam/taglib"
+	xmlns:ui="http://java.sun.com/jsf/facelets"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml">
+
+	<ui:define name="body">
+
+		<rich:panel>
+
+			<f:facet name="header">Successfully Registered New User</f:facet>
+
+			<f:view>
+            	Welcome, #{user.name}, cellphone number #{user.cellPhoneNr} successfully registered!.
+        	</f:view>
+        	
+		</rich:panel>
+	</ui:define>
+</ui:composition>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/theme.css
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/theme.css	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/theme.css	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,218 @@
+html {
+	overflow-y: scroll;
+}
+
+body {
+	font-size: 12px;
+	margin: 0px;
+}
+
+a img {
+	border: none;
+}
+
+h1 {
+	font-size: 1.6em;
+	margin-top: 0;
+}
+
+input[type=submit], input[type=button] {
+	font-size: 11px;
+	margin: 5px 5px 5px 0;
+	cursor: pointer;
+}
+
+input[type=text], input[type=password], textarea {
+	font-size: 12px;
+	padding-left: 1px;
+}
+
+select {
+	font-size: 13px;
+}
+
+.tableControl, .actionButtons {
+	width: 100%;
+}
+
+.tableControl a {
+	padding-left: 10px;
+}
+
+.tableControl {
+	text-align: right;
+}
+
+.footer {
+	text-align: center;
+	font-size: 11px;
+	margin-bottom: 10px;
+}
+
+.rich-table {
+	width: 100%;
+}
+
+.body {
+	padding: 30px;
+}
+.message {
+	padding: 5px;
+	list-style: none;
+	border: 0;
+	background: none;
+	padding: 0;
+	color: #000000;
+	margin: 5px 0 8px 0;
+	font-size: 12px;
+}
+
+.message li {
+	background: no-repeat left center;
+	padding-top: 1px;
+	padding-left: 20px;
+	margin-left: 3px;
+}
+
+.message li.infomsg {
+	background-image: url(../img/msginfo.png);
+}
+
+.message li.errormsg {
+	background-image: url(../img/msgerror.png);
+}
+
+.message li.warnmsg {
+	background-image: url(../img/msgwarn.png);
+}
+
+.name {
+	vertical-align: top;
+	font-weight: bold;
+	width: 115px;
+	float: left;
+	padding: 5px;
+	margin-top: 3px;
+	clear: left;
+}
+
+.value {
+	float: left;
+	padding: 5px;
+}
+
+.error {
+	float: left;
+	padding: 5px;
+}
+
+.errors {
+	color: #FF0000;
+	vertical-align: middle;
+}
+
+img.errors {
+	padding-right: 5px;
+}
+
+.errors input, .errors textarea, .errors select {
+	border: 1px solid red !important;
+}
+
+.required {
+	color: #FF0000;
+	padding-left: 2px;
+}
+
+.rich-stglpanel-body {
+	overflow: auto;
+} 
+
+/* the specificity here is necessary to override the defaults */
+/*
+.rich-panel .rich-panel-header,
+.rich-stglpanel .rich-stglpanel-header {
+	padding: 2px 3px;
+}*/
+
+.rich-panel input[type=submit], .rich-panel input[type=button],
+.rich-tabpanel input[type=submit], .rich-tabpanel input[type=button] {
+	margin-bottom: 0;
+}
+
+.tableControl input[type=submit], .tableControl input[type=button], .tableControl select {
+	margin: 5px 0 5px 5px;
+}
+
+/* I don't know why this is necessary, but the select is off by a pixel on the top and is padding too much on the left */
+.tableControl select {
+	margin-left: 2px;
+	position: relative;
+	top: 1px;
+}
+
+.actionButtons {
+	padding-left: 1px;
+}
+
+.actionButtons select {
+	margin: 5px 5px 5px 0;
+	vertical-align: bottom;
+}
+
+.rich-toolbar-item a {
+	text-decoration: none;
+}
+
+.rich-toolbar-item a:hover, .rich-ddmenu-label-select {
+	text-decoration: underline;
+}
+
+.rich-toolbar-item .rich-menu-item a:hover {
+	text-decoration: none;
+}
+
+.rich-datalist {
+	list-style: square;
+	margin: 6px 0 1px 0;
+	padding-left: 18px;
+}
+
+.rich-list-item {
+	padding-bottom: 4px;
+}
+
+div.info {
+	font-size: 1.2em;
+}
+
+ul.bullets {
+	list-style: square;
+}
+
+ul.bullets li {
+	padding-bottom: 2px;
+}
+
+td.action {
+	text-align: center;
+	width: 8em;
+	white-space: nowrap;
+}
+
+td.action a {
+	padding-left: 1px;
+	padding-right: 1px;
+}
+
+table.radio {
+   border: 0;
+}
+
+table.radio td {
+   padding: 0 2px;
+}
+
+table.radio input[type=radio] {
+   vertical-align: bottom;
+}

Added: projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/theme.xcss
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/theme.xcss	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/theme.xcss	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:template xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:f="http:/jsf.exadel.com/template"
+	xmlns:u="http:/jsf.exadel.com/template/util">
+	<u:selector name="body">
+		<u:style name="font-family" skin="generalFamilyFont"/>
+		<u:style name="color" skin="generalTextColor"/>
+	</u:selector>
+	<u:selector name="h1">
+		<u:style name="font-family" skin="generalFamilyFont"/>
+		<u:style name="color" skin="tabDisabledTextColor"/>
+	</u:selector>
+	<u:selector name="a:active, a:link, a:visited">
+		<u:style name="color" skin="generalLinkColor"/>
+	</u:selector>
+	<u:selector name="a:hover">
+		<u:style name="color" skin="hoverLinkColor"/>
+	</u:selector>
+	<u:selector name="input[type=text], input[type=password], textarea, select">
+		<u:style name="background-color" skin="controlBackgroundColor"/>
+		<u:style name="color" skin="controlTextColor"/>
+		<u:style name="background-position" value="left top"/>
+		<u:style name="background-repeat" value="repeat-x"/>
+		<u:style name="background-image">
+			<f:resource f:key="org.richfaces.renderkit.html.images.SliderFieldGradient"/>
+		</u:style>
+		<u:style name="border" value="1px solid"/>
+		<u:style name="border-color" skin="tableBorderColor" />
+	</u:selector>
+	<u:selector name="select">
+		<u:style name="background-color" value="transparent"/>
+		<u:style name="background-image">
+			<f:resource f:key="org.richfaces.renderkit.html.images.SliderFieldGradient"/>
+		</u:style>
+	</u:selector>
+	<u:selector name="option">
+		<u:style name="background-color" skin="generalBackgroundColor"/>
+	</u:selector>
+	<u:selector name="select[multiple]">
+		<u:style name="background-color" skin="controlBackgroundColor"/>
+	</u:selector>
+	<u:selector name="select[multiple] option">
+		<u:style name="background-color" value="transparent"/>
+	</u:selector>
+	<u:selector name="input[type=submit], input[type=button]">
+		<u:style name="padding" value="1px 4px"/>
+		<u:style name="background-image">
+			<f:resource f:key="org.richfaces.renderkit.html.GradientA"/>
+		</u:style>
+		<u:style name="border" value="1px solid"/>
+		<u:style name="border-color" skin="headerBackgroundColor"/>
+		<u:style name="color" skin="headerTextColor"/>
+		<u:style name="font-weight" value="bold"/>
+	</u:selector>
+	<u:selector name="input[type=submit][disabled], input[type=button][disabled]">
+		<u:style name="opacity" value="0.33"/>
+	</u:selector>
+	<!-- hack for IE to just get rid of border since it doubles the border if you use one -->
+	<u:selector name="* html input[type=submit], * html input[type=button], *+html input[type=submit], *+html input[type=button]">
+		<u:style name="border" value="0"/>
+		<u:style name="font-size" value="11px"/>
+	</u:selector>
+	<u:selector name=".rich-table-subheadercell">
+		<u:style name="background-image">
+			<f:resource f:key="org.richfaces.renderkit.images.TabGradientB"/>
+		</u:style>
+	</u:selector>
+	<u:selector name=".rich-toolbar a:link, .rich-toolbar a:visited, .rich-toolbar a:active, .rich-toolbar a:hover">
+		<u:style name="color" skin="headerTextColor"/>
+	</u:selector>
+	<u:selector name=".rich-toolbar a:hover">
+		<u:style name="color" skin="generalTextColor"/>
+	</u:selector>
+	<u:selector name=".rich-toolbar .rich-menu-item, .rich-toolbar .rich-menu-item a, .rich-toolbar .rich-menu-item a:hover, .rich-toolbar .rich-menu-item a:visited">
+		<u:style name="color" skin="generalTextColor" />
+	</u:selector>
+	<u:selector name=".rich-table-subheadercell a:hover">
+		<u:style name="color" skin="calendarHolidaysTextColor"/>
+	</u:selector>
+	<!-- Define static styles in the CDATA block below (you can also move this block to the top) -->
+	<f:verbatim><![CDATA[
+]]></f:verbatim>
+</f:template>

Added: projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/useradmin.css
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/useradmin.css	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/stylesheet/useradmin.css	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,112 @@
+input.newuser {
+  background: url(../img/btnnewuser.png) top left no-repeat;
+  height: 39px;
+  width: 113px;
+  margin: 4px 4px 4px 4px;
+  border: 0px;
+  cursor: pointer;  
+}
+
+input.newrole {
+  background: url(../img/btnnewrole.png) top left no-repeat;
+  height: 39px;
+  width: 113px;
+  margin: 4px 4px 4px 4px;
+  border: 0px;
+  cursor: pointer;  
+}
+
+input.newpermission {
+  background: url(../img/btnnewpermission.png) top left no-repeat;
+  height: 39px;
+  width: 113px;
+  margin: 4px 4px 4px 4px;
+  border: 0px;
+  cursor: pointer;  
+}
+
+input.manageusers {
+  display: block;
+  background: url(../img/btnmanageusers.png) top left no-repeat;
+  height: 88px;
+  width: 300px;
+  padding-left: 10px;
+  font-size: 19px;
+  font-weight: bold;
+  color: #333333;
+  border: 0px;
+  cursor: pointer;
+  margin-top: 20px;
+  margin-left: 20px;
+}
+
+input.manageroles {
+  display: block;
+  background: url(../img/btnmanageroles.png) top left no-repeat;
+  height: 88px;
+  width: 300px;
+  padding-left: 10px;
+  font-size: 19px;
+  font-weight: bold;
+  color: #333333;
+  border: 0px;
+  cursor: pointer;  
+  margin-top: 20px;
+  margin-left: 20px;
+}
+
+.roles {
+  width: 120px;
+  border: 1px solid #7F9DB9;
+  background-color: #E7EDF7;
+}
+
+div.selectMany label {
+  float: none;
+}
+
+div.selectMany input[type="checkbox"] {
+  vertical-align: middle;
+}
+
+div.status-true {
+  background: url(../img/true.png) top left no-repeat;
+  width: 14px;
+  height: 15px;
+  margin-left: auto;
+  margin-right: auto;    
+}
+
+div.status-false {
+  background: url(../img/false.png) top left no-repeat;
+  width: 14px;
+  height: 15px;
+  margin-left: auto;
+  margin-right: auto;
+}
+
+table.useradmin, div.useradmin {
+  width: 500px;
+}
+
+/*
+table.useradmin tr.odd {
+  background-color: #FFFFFF;
+}
+
+table.useradmin tr.even {
+  background-color: #E9F5FF;
+}
+*/
+
+td.enabled {
+  text-align: center;
+}
+
+fieldset.roles .roles {
+  border: none;
+}
+
+table.iceSelMnyCb td {
+  text-align: left;
+}

Added: projects/demos/trainticket-demo/user_registration/trunk/view/user_details.xhtml
===================================================================
--- projects/demos/trainticket-demo/user_registration/trunk/view/user_details.xhtml	                        (rev 0)
+++ projects/demos/trainticket-demo/user_registration/trunk/view/user_details.xhtml	2009-08-26 16:52:36 UTC (rev 5554)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:s="http://jboss.com/products/seam/taglib"
+	xmlns:ui="http://java.sun.com/jsf/facelets"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:a4j="http://richfaces.org/a4j"
+	xmlns:rich="http://richfaces.org/rich" 
+	template="layout/template.xhtml">
+
+	<ui:define name="body">
+	
+		<a4j:region>
+	        <h:form>
+	            <a4j:poll id="poll" interval="3000" reRender="poll,currentBalance" actionListener="#{addCreditsAction.reloadDetails}" />
+	        </h:form>
+    	</a4j:region>
+
+		<rich:panel id="userDetails">
+			<f:facet name="header">User details</f:facet>
+
+			<f:view>
+				<h:form>
+					<s:validateAll>
+						<h:panelGrid columns="2">
+	                  		Name: <h:outputText value="#{user.name}" />
+							Registered cellphone: <h:outputText value="#{user.cellPhoneNr}" />
+							<b>Current balance: <h:outputText id="currentBalance" value="#{user.currentCredit}" /></b>
+						</h:panelGrid>
+						<br/>
+						<h:panelGrid columns="2">
+							Add credits to balance: <h:inputText value="#{addCreditsAction.creditsToAdd}" />
+						</h:panelGrid>
+					</s:validateAll>
+					<h:messages />
+					<h:commandButton value="OK" action="#{addCreditsAction.addCredits}" />
+				</h:form>
+			</f:view>
+		</rich:panel>
+	</ui:define>
+</ui:composition>



More information about the jbpm-commits mailing list