[jboss-cvs] JBossAS SVN: r66157 - in projects/docs/branches/JBEAP42CP01: Sample_Applications and 20 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Oct 16 02:30:28 EDT 2007


Author: mhideo at redhat.com
Date: 2007-10-16 02:30:28 -0400 (Tue, 16 Oct 2007)
New Revision: 66157

Added:
   projects/docs/branches/JBEAP42CP01/Sample_Applications/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/Todo.class
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/TodoBean.class
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/TodoDao.class
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/TodoDaoInt.class
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/app.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/app.war
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/jsfejb3.ear
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/application.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/jboss-app.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/persistence.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/faces-config.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/navigation.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/web.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/import.sql
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/Todo.java
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoBean.java
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoDao.java
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoDaoInt.java
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/create.xhtml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/edit.xhtml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/error.png
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/index.html
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/index.xhtml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/style.css
   projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/todos.xhtml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/cglib.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/commons-beanutils-1.7.0.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/commons-codec-1.3.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/commons-digester-1.6.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/ejb3-persistence.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/el-api.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/commons-beanutils-1.7.0.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/commons-codec-1.3.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/commons-digester-1.6.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/default.persistence.properties
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/ejb3-interceptors-aop.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/embedded-jboss-beans.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jboss-jms-beans.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jndi.properties
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/log4j.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/login-config.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/security-beans.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/hibernate-all.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/javax.servlet.jsp.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jboss-aop-jdk50.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jboss-cache-jdk50.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jboss-ejb3-all.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jgroups.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jstl.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/mailstuff.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/portlet-api-lib.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/servlet-api.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/thirdparty-all.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/hibernate-annotations.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/hibernate-entitymanager.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/hibernate3.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/javassist.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-archive-browsing.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-debug.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-gen.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-ioc.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-mail.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-pdf.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-remoting.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-ui.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jbpm-3.1.2.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jsf-api.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jsf-facelets.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/antlr-2.7.5H3.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/commons-collections.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/commons-logging.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/concurrent.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/dom4j.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/hsqldb.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-common-jdbc-wrapper.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-common.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-container.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-dependency.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-j2ee.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-j2se.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-jca.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-local-jdbc.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-microcontainer.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-security.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-system.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-transaction.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jnpserver.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/log4j.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/namespace.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/xercesImpl.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/xml-apis.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/testng-4.5.1-jdk15.jar
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/build.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/nbproject/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/nbproject/project.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/application.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/ejb-jar.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/jboss-app.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/persistence.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/components.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/faces-config.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/navigation.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/pages.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/web.xml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/import.sql
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/seam.properties
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/Todo.java
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/TodoDao.java
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/TodoDaoInt.java
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/create.xhtml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/edit.xhtml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/error.png
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/index.html
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/index.xhtml
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/style.css
   projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/todos.xhtml
Log:
init

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/Todo.class
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/Todo.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/TodoBean.class
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/TodoBean.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/TodoDao.class
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/TodoDao.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/TodoDaoInt.class
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/classes/TodoDaoInt.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/app.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/app.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/app.war
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/app.war
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/jsfejb3.ear
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build/jars/jsfejb3.ear
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/build.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="HelloWorld"
+         default="main" basedir=".">
+    
+  <description>Hello World</description>
+  <property name="projname" value="jsfejb3" />
+
+  <property file="../build.properties"/>
+  <property name="jboss.deploy"
+    location="${jboss.home}/server/default/deploy"/>
+
+  <property name="lib" location="../lib" />
+  <property name="testlib" location="../lib/embeddedejb3" />
+  <property name="applib" location="lib" />
+  <path id="lib.classpath">
+    <fileset dir="${lib}" includes="*.jar"/>
+    <fileset dir="${testlib}" includes="*.jar"/>
+    <fileset dir="${applib}" includes="*.jar"/>
+  </path>
+  
+  <property name="resources" location="resources" />
+  
+  <property name="src" location="src" />
+  <property name="test" location="test" />
+  <property name="view" location="view" />
+  
+  <property name="build.classes" location="build/classes" />
+  <property name="build.jars" location="build/jars" />
+  <property name="build.test" location="build/test" />
+  <property name="build.testout" location="build/testout" />
+
+  <target name="clean">
+    <delete dir="build"/>
+  </target>
+
+  <target name="main" depends="compile,war,ejb3jar,ear"/>
+
+  <target name="compile">
+    <mkdir dir="${build.classes}"/>
+    <javac destdir="${build.classes}"
+           classpathref="lib.classpath"
+           debug="true">
+      <src path="${src}"/>
+    </javac>
+  </target>
+
+  <target name="war" depends="compile">
+    <mkdir dir="${build.jars}"/>
+
+    <war destfile="${build.jars}/app.war"
+         webxml="${resources}/WEB-INF/web.xml">
+
+      <fileset dir="${build.classes}">
+        <include name="TodoBean.class"/>
+      </fileset>
+      <webinf dir="${resources}/WEB-INF">
+        <include name="faces-config.xml" />
+        <include name="navigation.xml" />
+      </webinf>
+      <lib dir="${lib}">
+        <include name="jsf-facelets.jar" />
+      </lib>
+      <fileset dir="${view}"/>
+
+    </war>
+  </target>
+
+  <target name="ejb3jar" depends="compile">
+    <mkdir dir="${build.jars}"/>
+
+    <jar destfile="${build.jars}/app.jar">
+      <fileset dir="${build.classes}">
+        <include name="Todo.class"/>
+        <include name="TodoDao.class"/>
+        <include name="TodoDaoInt.class"/>
+      </fileset>
+      <fileset dir="${resources}">
+        <include name="import.sql" />
+      </fileset>
+      <fileset dir="${applib}">
+        <include name="*.jar" />
+      </fileset>
+      <metainf dir="${resources}/META-INF">
+        <include name="persistence.xml" />
+        <include name="ejb-jar.xml" />
+      </metainf>
+    </jar>
+  </target>
+
+  <target name="ear">
+    <mkdir dir="${build.jars}"/>
+
+    <ear destfile="${build.jars}/${projname}.ear"
+      appxml="${resources}/META-INF/application.xml">
+      <fileset dir="${build.jars}"
+        includes="*.jar, *.war"/>
+      <metainf dir="${resources}/META-INF">
+        <include name="jboss-app.xml" />
+      </metainf>
+    </ear>
+  </target>
+
+  <target name="deploy">
+    <copy file="${build.jars}/${projname}.ear"
+      todir="${jboss.deploy}"/>
+  </target>
+
+  <target name="undeploy">
+    <delete
+        file="${jboss.deploy}/${projname}.ear"/>
+  </target>
+
+</project>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/application.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/application.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/application.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,15 @@
+<application>
+  <display-name>Seam Hello World</display-name>
+
+  <module>
+    <web>
+      <web-uri>app.war</web-uri>
+      <context-root>/jsfejb3</context-root>
+    </web>
+  </module>
+
+  <module>
+    <ejb>app.jar</ejb>
+  </module>
+  
+</application>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/jboss-app.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/jboss-app.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/jboss-app.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,5 @@
+<jboss-app>
+  <loader-repository>
+    jsfejb3:archive=jsfejb3.ear
+  </loader-repository>
+</jboss-app>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/persistence.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/persistence.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/META-INF/persistence.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,10 @@
+<persistence>
+   <persistence-unit name="helloworld">
+      <provider>org.hibernate.ejb.HibernatePersistence</provider>
+      <jta-data-source>java:/DefaultDS</jta-data-source>
+      <properties>
+         <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
+         <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+      </properties>
+   </persistence-unit>
+</persistence>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/faces-config.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/faces-config.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/faces-config.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config 
+    PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+    
+<faces-config>
+
+  <application>
+    <view-handler>
+      com.sun.facelets.FaceletViewHandler
+    </view-handler>
+  </application>
+
+  <managed-bean>
+    <description>Dao</description>
+    <managed-bean-name>todoBean</managed-bean-name>
+    <managed-bean-class>TodoBean</managed-bean-class>
+    <managed-bean-scope>request</managed-bean-scope>
+  </managed-bean>
+
+</faces-config>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/navigation.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/navigation.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/navigation.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config 
+    PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+    
+<faces-config>
+
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>persisted</from-outcome>
+      <to-view-id>/index.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+  
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>updated</from-outcome>
+      <to-view-id>/index.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+  
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>removed</from-outcome>
+      <to-view-id>/index.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>create</from-outcome>
+      <to-view-id>/create.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>todos</from-outcome>
+      <to-view-id>/todos.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+
+</faces-config>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/web.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/web.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/WEB-INF/web.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" 
+	xmlns="http://java.sun.com/xml/ns/j2ee"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+          
+  <context-param>
+    <param-name>javax.faces.CONFIG_FILES</param-name>
+    <param-value>/WEB-INF/navigation.xml</param-value>
+  </context-param>
+  
+    <!-- MyFaces -->
+    <!--
+    <listener>
+        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+    </listener>
+    -->
+    
+    <context-param>
+        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+        <param-value>client</param-value>
+    </context-param>
+    
+    <context-param>
+        <param-name>facelets.DEVELOPMENT</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+    <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>
+
+    <!-- Faces Servlet Mapping -->
+    <servlet-mapping>
+	<servlet-name>Faces Servlet</servlet-name>
+	<url-pattern>*.faces</url-pattern>
+    </servlet-mapping>
+	
+</web-app>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/import.sql
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/import.sql	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/resources/import.sql	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,50 @@
+insert into Todo (id, title, description) values (1, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (2, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (3, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (4, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (5, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (6, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (7, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (8, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (9, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (10, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (11, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (12, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (13, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (14, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (15, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (16, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (17, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (18, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (19, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (20, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (21, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (22, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (23, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (24, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (25, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (26, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (27, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (28, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (29, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (30, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (31, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (32, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (33, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (34, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (35, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (36, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (37, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (38, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (39, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (40, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (41, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (42, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (43, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (44, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (45, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (46, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (47, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (48, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (49, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (50, 'This is a title', 'The description is here!')

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/Todo.java
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/Todo.java	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/Todo.java	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,32 @@
+
+import java.io.Serializable;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Table;
+
+ at Entity
+public class Todo implements Serializable {
+
+  private long id;
+  private String title;
+  private String description;
+
+  public Todo () {
+    title ="";
+    description ="";
+  }
+
+  @Id @GeneratedValue
+  public long getId() { return id;}
+  public void setId(long id) { this.id = id; }
+
+  public String getTitle() { return title; }
+  public void setTitle(String title) {this.title = title;}
+
+  public String getDescription() { return description; }
+  public void setDescription(String description) {
+    this.description = description;
+  }
+
+}

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoBean.java
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoBean.java	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoBean.java	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,59 @@
+import javax.naming.InitialContext;
+import java.util.*;
+import javax.faces.model.*;
+import javax.faces.context.*;
+
+public class TodoBean {
+
+  private Todo todo;
+
+  public TodoBean () {
+    FacesContext fc = FacesContext.getCurrentInstance();
+    Map requestParams = fc.getExternalContext().getRequestParameterMap();
+    String id = (String) requestParams.get("tid");
+    if (id != null) {
+      todo = getDao().findTodo(id);
+    } else {
+      todo = new Todo ();
+    }
+  }
+
+  private TodoDaoInt getDao () {
+    try {
+      InitialContext ctx = new InitialContext();
+      return (TodoDaoInt) ctx.lookup("jsfejb3/TodoDao/local");
+    } catch (Exception e) {
+      e.printStackTrace();
+      throw new RuntimeException("couldn't lookup Dao", e);
+    }
+  }
+ 
+  public String persist () {
+    getDao().persist (todo);
+    return "persisted";
+  }
+
+  public DataModel getTodos () {
+    return (new ListDataModel (getDao().findTodos()));
+  }
+
+  public Todo getTodo () {
+    return todo;
+  }
+
+  public void setTodo (Todo todo) {
+    this.todo = todo;
+  }
+
+  public String delete () {
+    getDao().delete( todo );
+    return "removed";
+  }
+
+  public String update () {
+    getDao().update( todo );
+    return "updated";
+  }
+
+}
+

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoDao.java
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoDao.java	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoDao.java	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,35 @@
+import java.util.List;
+import javax.ejb.*;
+import javax.persistence.*;
+import static javax.persistence.PersistenceContextType.EXTENDED;
+
+ at Stateless
+public class TodoDao implements TodoDaoInt {
+
+  @PersistenceContext
+  private EntityManager em;
+
+  public void persist (Todo todo) {
+    em.persist (todo);
+  }
+
+  public void delete (Todo todo) {
+    Todo t = em.merge (todo);
+    em.remove( t );
+  }
+
+  public void update (Todo todo) {
+    em.merge (todo);
+  }
+
+  public List <Todo> findTodos () {
+    return (List <Todo>) em.createQuery("select t from Todo t")
+                                  .getResultList();
+  }
+
+  public Todo findTodo (String id) {
+    return (Todo) em.find(Todo.class, Long.parseLong(id));
+  }
+
+}
+

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoDaoInt.java
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoDaoInt.java	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/src/TodoDaoInt.java	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,11 @@
+import java.util.List;
+
+public interface TodoDaoInt {
+
+  public void persist (Todo todo);
+  public void delete (Todo todo);
+  public void update (Todo todo);
+
+  public List <Todo> findTodos ();
+  public Todo findTodo (String id);
+}

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/create.xhtml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/create.xhtml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/create.xhtml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,43 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+<head>
+ <link href="style.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<body>
+<h2>DataModel, Validation and Restful Page Demo</h2>
+
+<h:form id="create">
+
+<table>
+
+  <tr>
+    <td>Title:</td>
+    <td>
+      <h:inputText id="title" value="#{todoBean.todo.title}" size="15">
+        <f:validateLength minimum="2"/>
+      </h:inputText>
+    </td>
+  </tr>
+
+  <tr>
+    <td>Description:</td>
+    <td>
+      <h:inputTextarea id="description" value="#{todoBean.todo.description}">
+        <f:validateLength minimum="2" maximum="250"/>
+      </h:inputTextarea>
+    </td>
+  </tr>
+
+</table>
+
+<h:commandButton type="submit" id="create" value="Create"
+                 action="#{todoBean.persist}"/>
+</h:form>
+
+</body>
+</html>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/edit.xhtml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/edit.xhtml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/edit.xhtml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+<head>
+ <link href="style.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<body>
+<h2>Edit #{todoBean.todo.title}</h2>
+
+<h:form id="edit">
+  
+<input type="hidden" name="tid" value="#{todoBean.todo.id}"/>
+
+<table>
+
+  <tr>
+    <td>Title:</td>
+    <td>
+      <h:inputText id="title" value="#{todoBean.todo.title}" size="15">
+        <f:validateLength minimum="2"/>
+      </h:inputText>
+    </td>
+  </tr>
+
+  <tr>
+    <td>Description:</td>
+    <td>
+      <h:inputTextarea id="description" value="#{todoBean.todo.description}">
+        <f:validateLength minimum="2" maximum="250"/>
+      </h:inputTextarea>
+    </td>
+  </tr>
+
+</table>
+
+<h:commandButton type="submit" id="update" value="Update"
+                 action="#{todoBean.update}"/>
+&nbsp;
+<h:commandButton type="submit" id="delete" value="Delete"
+                 action="#{todoBean.delete}"/>
+</h:form>
+
+</body>
+</html>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/error.png
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/error.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/index.html
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/index.html	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/index.html	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,5 @@
+<html>
+<head>
+  <meta http-equiv="Refresh" content="0; URL=index.faces">
+</head>
+</html>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/index.xhtml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/index.xhtml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/index.xhtml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+<head>
+ <link href="style.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<body>
+<h2>Seam POJO</h2>
+
+<p>Actions:</p>
+
+<h:form>
+
+<ul>
+  <li><h:commandLink type="submit" value="Create New Todo" action="create"/></li>
+  <li><h:commandLink type="submit" value="Show All Todos" action="todos"/></li>
+</ul>
+
+</h:form>
+
+</body>
+</html>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/style.css
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/style.css	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/style.css	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,18 @@
+.error {
+  color: red;
+  border: solid red;
+  padding: .4em;
+  margin: 10px
+}
+
+.errorImg {
+  vertical-align: middle;
+  width: 16px;
+  height: 16px;
+}
+
+.errorMsg {
+  display: block;
+  margin: 5px;
+  padding: .1em;
+}

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/todos.xhtml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/todos.xhtml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/jsfejb3/view/todos.xhtml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,35 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+<body>
+
+<h2>The Todo List</h2>
+
+<h:form>
+
+<h:dataTable value="#{todoBean.todos}" var="todo">
+  <h:column>
+    <f:facet name="header">Title</f:facet>
+    #{todo.title}
+  </h:column>
+  <h:column>
+    <f:facet name="header">Description</f:facet>
+    #{todo.description}
+  </h:column>
+  <h:column>
+    <a href="edit.faces?tid=#{todo.id}">Edit</a>
+  </h:column>
+</h:dataTable>
+
+<center>
+  <h:commandButton action="create"
+            value="Create New Todo" type="submit"/>
+</center>
+
+</h:form>
+
+</body>
+</html>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/cglib.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/cglib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/commons-beanutils-1.7.0.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/commons-beanutils-1.7.0.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/commons-codec-1.3.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/commons-codec-1.3.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/commons-digester-1.6.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/commons-digester-1.6.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/ejb3-persistence.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/ejb3-persistence.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/el-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/el-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/commons-beanutils-1.7.0.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/commons-beanutils-1.7.0.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/commons-codec-1.3.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/commons-codec-1.3.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/commons-digester-1.6.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/commons-digester-1.6.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/default.persistence.properties
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/default.persistence.properties	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/default.persistence.properties	2007-10-16 06:30:28 UTC (rev 66157)
@@ -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


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/default.persistence.properties
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/ejb3-interceptors-aop.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/ejb3-interceptors-aop.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/ejb3-interceptors-aop.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,376 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE aop PUBLIC
+   "-//JBoss//DTD JBOSS AOP 1.0//EN"
+   "http://www.jboss.org/aop/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.annotation.security.SecurityDomain->*(..))">
+         <interceptor-ref name="Basic Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * @javax.annotation.security.RunAs->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.annotation.ejb.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.annotation.ejb.PoolClass)">
+         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000)
+      </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.annotation.security.SecurityDomain->*(..))">
+         <interceptor-ref name="JACC Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * @javax.annotation.security.RunAs->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.annotation.ejb.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.annotation.ejb.PoolClass)">
+         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000)
+      </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.annotation.security.SecurityDomain->*(..))">
+         <interceptor-ref name="Basic Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * @javax.annotation.security.RunAs->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.annotation.ejb.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.annotation.ejb.Clustered->*(..)) AND !execution(public * *->@javax.ejb.Remove(..))">
+         <interceptor-ref name="org.jboss.ejb3.cache.StatefulReplicationInterceptor"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
+         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000)
+      </annotation>
+   </domain>
+
+   <domain name="Stateful Bean" extends="Base Stateful Bean" inheritBindings="true">
+      <!-- NON Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.Cache) AND !class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.simple.SimpleStatefulCache.class)
+      </annotation>
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.simple.PersistenceManager) AND !class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.simple.PersistenceManager (org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.class)
+      </annotation>
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.simple.CacheConfig) AND !class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.simple.CacheConfig (maxSize=100000, idleTimeoutSeconds=300)
+      </annotation>
+
+      <!-- Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.Cache) AND class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.tree.StatefulTreeCache.class)
+      </annotation>
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.tree.CacheConfig) AND class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.tree.CacheConfig (name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000, idleTimeoutSeconds=300)
+      </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.annotation.security.SecurityDomain->*(..))">
+         <interceptor-ref name="JACC Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * @javax.annotation.security.RunAs->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(public * @org.jboss.annotation.ejb.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.annotation.ejb.Clustered->*(..)) AND !execution(public * *->@javax.ejb.Remove(..))">
+         <interceptor-ref name="org.jboss.ejb3.cache.StatefulReplicationInterceptor"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
+         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000)
+      </annotation>
+
+      <!-- NON Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.Cache) AND !class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.simple.SimpleStatefulCache.class)
+      </annotation>
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.simple.PersistenceManager) AND !class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.simple.PersistenceManager (org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.class)
+      </annotation>
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.simple.CacheConfig) AND !class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.simple.CacheConfig (maxSize=100000, idleTimeoutSeconds=300)
+      </annotation>
+
+      <!-- Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.Cache) AND class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.tree.StatefulTreeCache.class)
+      </annotation>
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.tree.CacheConfig) AND class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.tree.CacheConfig (name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000, idleTimeoutSeconds=300)
+      </annotation>
+   </domain>
+
+   <domain name="Embedded Stateful Bean" extends="Base Stateful Bean" inheritBindings="true">
+      <!-- NON Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.Cache)">
+         @org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.NoPassivationCache.class)
+      </annotation>
+
+   </domain>
+
+   <domain name="Message Driven Bean">
+      <bind pointcut="execution(public * @javax.annotation.security.RunAs->*(..))">
+         <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"/>
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
+         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000)
+      </annotation>
+   </domain>
+
+   <domain name="Message Inflow Driven Bean">
+      <bind pointcut="execution(public * @javax.annotation.security.RunAs->*(..))">
+         <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"/>
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+      <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
+         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000)
+      </annotation>
+   </domain>
+
+   <domain name="Consumer Bean">
+      <bind pointcut="execution(public * @javax.annotation.security.RunAs->*(..))">
+         <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.annotation.ejb.CurrentMessage(..)) OR hasfield(* *->@org.jboss.annotation.ejb.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.annotation.ejb.PoolClass)">
+         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000)
+      </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.annotation.security.SecurityDomain->*(..))">
+         <interceptor-ref name="Basic Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * @javax.annotation.security.RunAs->*(..))">
+         <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>
+   </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.annotation.security.SecurityDomain->*(..))">
+         <interceptor-ref name="Basic Authorization"/>
+      </bind>
+      <bind pointcut="execution(public * @javax.annotation.security.RunAs->*(..))">
+         <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>
+   </domain>
+
+
+</aop>
\ No newline at end of file


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/ejb3-interceptors-aop.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/embedded-jboss-beans.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/embedded-jboss-beans.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/embedded-jboss-beans.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
+            xmlns="urn:jboss:bean-deployer">
+   <bean name="Naming" class="org.jnp.server.SingletonNamingServer"/>
+
+   <bean name="InitialContextProperties" class="java.util.Hashtable">
+      <constructor>
+      <parameter class="java.util.Map">
+            <map keyClass="java.lang.String" valueClass="java.lang.String">
+               <entry>
+                  <key>java.naming.factory.initial</key>
+                  <value>org.jnp.interfaces.LocalOnlyContextFactory</value>
+               </entry>
+               <entry>
+                   <key>java.naming.factory.url.pkgs</key>
+                   <value>org.jboss.naming:org.jnp.interfaces</value>
+               </entry>
+            </map>
+      </parameter>
+      </constructor>
+   </bean>
+
+   <bean name="java:comp/Initializer" class="org.jboss.ejb3.embedded.JavaCompInitializer">
+      <property name="jndiProperties"><inject bean="InitialContextProperties"/></property>
+   </bean>
+
+   <bean name="XidFactory" class="org.jboss.tm.XidFactoryImpl"/>
+
+   <bean name="XidFactoryMBean" class="org.jboss.ejb3.embedded.XidFactoryMBean">
+      <constructor>
+         <parameter class="org.jboss.tm.XidFactoryBase">
+            <inject bean="XidFactory"/>
+         </parameter>
+      </constructor>
+   </bean>
+
+   <bean name="TransactionManagerInitializer" class="org.jboss.tm.TransactionManagerInitializer">
+      <property name="xidFactory"><inject bean="XidFactory"/></property>
+      <property name="initialContextProperties"><inject bean="InitialContextProperties"/></property>
+   </bean>
+
+   <bean name="UserTransaction" class="org.jboss.ejb3.embedded.UserTransactionImpl">
+      <demand>TransactionManagerInitializer</demand>
+   </bean>
+
+   <bean name="UserTransactionBinding" class="org.jboss.ejb3.embedded.JndiBinder">
+      <property name="jndiProperties"><inject bean="InitialContextProperties"/></property>
+      <property name="target"><inject bean="UserTransaction"/></property>
+      <property name="bindTo">UserTransaction</property>
+      <property name="serializable">false</property>
+   </bean>
+
+
+   <bean name="TransactionManager" class="java.lang.Object">
+      <constructor factoryMethod="getTransactionManager">
+         <factory bean="TransactionManagerInitializer"/>
+      </constructor>
+   </bean>
+   <bean name="CachedConnectionManager" class="org.jboss.resource.connectionmanager.CachedConnectionManagerReference">
+      <property name="transactionManager"><inject bean="TransactionManager"/></property>
+   </bean>
+
+   <!--
+      <bean class="org.jboss.jdbc.HypersonicDatabase"
+        name="jboss:service=Hypersonic,database=localDB">
+        <property name="database">localDB</property>
+        <property name="inProcessMode">true</property>
+        <property name="dbDataDir">.</property>
+      </bean>
+   -->
+
+   <bean name="DefaultDSBootstrap" class="org.jboss.resource.adapter.jdbc.local.LocalTxDataSource">
+      <property name="driverClass">org.hsqldb.jdbcDriver</property>
+      <property name="connectionURL">jdbc:hsqldb:.</property>
+      <!--      <property name="connectionURL">jdbc:hsqldb:./hypersonic/localDB</property> -->
+      <property name="userName">sa</property>
+      <property name="jndiName">java:/DefaultDS</property>
+      <property name="minSize">0</property>
+      <property name="maxSize">10</property>
+      <property name="blockingTimeout">1000</property>
+      <property name="idleTimeout">100000</property>
+      <property name="transactionManager"><inject bean="TransactionManager"/></property>
+      <property name="cachedConnectionManager"><inject bean="CachedConnectionManager"/></property>
+      <property name="initialContextProperties"><inject bean="InitialContextProperties"/></property>
+   </bean>
+
+   <bean name="DefaultDS" class="java.lang.Object">
+      <constructor factoryMethod="getDatasource">
+         <factory bean="DefaultDSBootstrap"/>
+      </constructor>
+   </bean>
+
+
+</deployment>
\ No newline at end of file


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/embedded-jboss-beans.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jboss-jms-beans.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jboss-jms-beans.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jboss-jms-beans.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
+            xmlns="urn:jboss:bean-deployer">
+   <bean name="jboss.mq:service=JMSProviderLoader,name=JMSProvider" class="org.jboss.jms.jndi.JNDIProviderAdapter">
+      <property name="factoryRef">java:/XAConnectionFactory</property>
+      <property name="queueFactoryRef">java:/XAConnectionFactory</property>
+      <property name="topicFactoryRef">java:/XAConnectionFactory</property>
+      <property name="properties" class="java.util.Properties">
+               <map keyClass="java.lang.String" valueClass="java.lang.String">
+                  <entry>
+                     <key>java.naming.factory.initial</key>
+                     <value>org.jnp.interfaces.LocalOnlyContextFactory</value>
+                  </entry>
+                  <entry>
+                      <key>java.naming.factory.url.pkgs</key>
+                      <value>org.jboss.naming:org.jnp.interfaces</value>
+                  </entry>
+               </map>
+      </property>
+   </bean>
+
+   <bean name="b1" class="org.jboss.ejb3.embedded.JndiBinder">
+      <property name="jndiProperties"><inject bean="InitialContextProperties"/></property>
+      <property name="target"><inject bean="jboss.mq:service=JMSProviderLoader,name=JMSProvider"/></property>
+      <property name="bindTo">java:/DefaultJMSProvider</property>
+      <property name="serializable">true</property>
+   </bean>
+
+   <bean name="jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool" class="org.jboss.jms.asf.StdServerSessionPoolFactory">
+      <property name="name">StdJMSPool</property>
+      <property name="xidFactory"><inject bean="XidFactoryMBean"/></property>
+      <property name="transactionManager"><inject bean="TransactionManager"/></property>
+   </bean>
+
+   <bean name="b2" class="org.jboss.ejb3.embedded.JndiBinder">
+      <property name="jndiProperties"><inject bean="InitialContextProperties"/></property>
+      <property name="target"><inject bean="jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool"/></property>
+      <property name="bindTo">java:/StdJMSPool</property>
+      <property name="serializable">false</property>
+   </bean>
+
+
+   <bean name="jboss.mq:service=PersistenceManager" class="org.jboss.mq.kernel.JDBC2PersistenceManager">
+      <property name="transactionManager">
+         <inject bean="TransactionManager"/>
+      </property>
+      <property name="datasource">
+         <inject bean="DefaultDS"/>
+      </property>
+      <property name="sqlProperties">
+
+            BLOB_TYPE=OBJECT_BLOB
+            INSERT_TX = INSERT INTO JMS_TRANSACTIONS (TXID) values(?)
+            INSERT_MESSAGE = INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?)
+            SELECT_ALL_UNCOMMITED_TXS = SELECT TXID FROM JMS_TRANSACTIONS
+            SELECT_MAX_TX = SELECT MAX(TXID) FROM JMS_MESSAGES
+            SELECT_MESSAGES_IN_DEST = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE DESTINATION=?
+            SELECT_MESSAGE = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=?
+            MARK_MESSAGE = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE MESSAGEID=? AND DESTINATION=?
+            UPDATE_MESSAGE = UPDATE JMS_MESSAGES SET MESSAGEBLOB=? WHERE MESSAGEID=? AND DESTINATION=?
+            UPDATE_MARKED_MESSAGES = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE TXOP=?
+            UPDATE_MARKED_MESSAGES_WITH_TX = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE TXOP=? AND TXID=?
+            DELETE_MARKED_MESSAGES_WITH_TX = DELETE FROM JMS_MESSAGES WHERE TXOP=? AND JMS_MESSAGES.TXID IN (SELECT TXID FROM JMS_TRANSACTIONS)
+            DELETE_TX = DELETE FROM JMS_TRANSACTIONS WHERE TXID = ?
+            DELETE_MARKED_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXID=? AND TXOP=?
+            DELETE_MESSAGE = DELETE FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=?
+            CREATE_MESSAGE_TABLE = CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID INTEGER NOT NULL, \
+               DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP CHAR(1), \
+               MESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) )
+            CREATE_IDX_MESSAGE_TXOP_TXID = CREATE INDEX JMS_MESSAGES_TXOP_TXID ON JMS_MESSAGES (TXOP, TXID)
+            CREATE_IDX_MESSAGE_DESTINATION = CREATE INDEX JMS_MESSAGES_DESTINATION ON JMS_MESSAGES (DESTINATION)
+            CREATE_TX_TABLE = CREATE CACHED TABLE JMS_TRANSACTIONS ( TXID INTEGER, PRIMARY KEY (TXID) )
+            CREATE_TABLES_ON_STARTUP = TRUE
+            DELETE_TEMPORARY_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXOP='T'
+
+      </property>
+   </bean>
+
+   <bean name="jboss.mq:service=MessageCache" class="org.jboss.mq.kernel.MessageCache">
+      <property name="persistenceManager"><inject bean="jboss.mq:service=PersistenceManager"/></property>
+      <property name="highMemoryMark">50</property>
+      <property name="maxMemoryMark">60</property>
+   </bean>
+
+   <bean name="jboss.mq:service=StateManager" class="org.jboss.mq.kernel.JDBCStateManager">
+      <property name="transactionManager">
+         <inject bean="TransactionManager"/>
+      </property>
+      <property name="datasource">
+         <inject bean="DefaultDS"/>
+      </property>
+      <property name="sqlProperties">
+
+            CREATE_TABLES_ON_STARTUP = TRUE
+            CREATE_USER_TABLE = CREATE TABLE JMS_USERS (USERID VARCHAR(32) NOT NULL, PASSWD VARCHAR(32) NOT NULL, \
+                                                       CLIENTID VARCHAR(128), PRIMARY KEY(USERID))
+            CREATE_ROLE_TABLE = CREATE TABLE JMS_ROLES (ROLEID VARCHAR(32) NOT NULL, USERID VARCHAR(32) NOT NULL, \
+                                                       PRIMARY KEY(USERID, ROLEID))
+            CREATE_SUBSCRIPTION_TABLE = CREATE TABLE JMS_SUBSCRIPTIONS (CLIENTID VARCHAR(128) NOT NULL, \
+                                                       SUBNAME VARCHAR(128) NOT NULL, TOPIC VARCHAR(255) NOT NULL, \
+                                                       SELECTOR VARCHAR(255), PRIMARY KEY(CLIENTID, SUBNAME))
+            GET_SUBSCRIPTION = SELECT TOPIC, SELECTOR FROM JMS_SUBSCRIPTIONS WHERE CLIENTID=? AND SUBNAME=?
+            LOCK_SUBSCRIPTION = SELECT TOPIC, SELECTOR FROM JMS_SUBSCRIPTIONS WHERE CLIENTID=? AND SUBNAME=?
+            GET_SUBSCRIPTIONS_FOR_TOPIC = SELECT CLIENTID, SUBNAME, SELECTOR FROM JMS_SUBSCRIPTIONS WHERE TOPIC=?
+            INSERT_SUBSCRIPTION = INSERT INTO JMS_SUBSCRIPTIONS (CLIENTID, SUBNAME, TOPIC, SELECTOR) VALUES(?,?,?,?)
+            UPDATE_SUBSCRIPTION = UPDATE JMS_SUBSCRIPTIONS SET TOPIC=?, SELECTOR=? WHERE CLIENTID=? AND SUBNAME=?
+            REMOVE_SUBSCRIPTION = DELETE FROM JMS_SUBSCRIPTIONS WHERE CLIENTID=? AND SUBNAME=?
+            GET_USER_BY_CLIENTID = SELECT USERID, PASSWD, CLIENTID FROM JMS_USERS WHERE CLIENTID=?
+            GET_USER = SELECT PASSWD, CLIENTID FROM JMS_USERS WHERE USERID=?
+            POPULATE.TABLES.01 = INSERT INTO JMS_USERS (USERID, PASSWD) VALUES ('guest', 'guest')
+            POPULATE.TABLES.02 = INSERT INTO JMS_USERS (USERID, PASSWD) VALUES ('j2ee', 'j2ee')
+            POPULATE.TABLES.03 = INSERT INTO JMS_USERS (USERID, PASSWD, CLIENTID) VALUES ('john', 'needle', 'DurableSubscriberExample')
+            POPULATE.TABLES.04 = INSERT INTO JMS_USERS (USERID, PASSWD) VALUES ('nobody', 'nobody')
+            POPULATE.TABLES.05 = INSERT INTO JMS_USERS (USERID, PASSWD) VALUES ('dynsub', 'dynsub')
+            POPULATE.TABLES.06 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('guest','guest')
+            POPULATE.TABLES.07 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('j2ee','guest')
+            POPULATE.TABLES.08 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('john','guest')
+            POPULATE.TABLES.09 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('subscriber','john')
+            POPULATE.TABLES.10 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('publisher','john')
+            POPULATE.TABLES.11 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('publisher','dynsub')
+            POPULATE.TABLES.12 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('durpublisher','john')
+            POPULATE.TABLES.13 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('durpublisher','dynsub')
+            POPULATE.TABLES.14 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('noacc','nobody')
+
+      </property>
+   </bean>
+
+
+   <bean name="BasicQueueParameters" class="org.jboss.mq.server.BasicQueueParameters"/>
+
+   <bean name="jboss.mq:service=ThreadPool" class="org.jboss.util.threadpool.BasicThreadPool">
+      <property name="name">JMSThread</property>
+      <property name="threadGroupName">JBossMQ Server Threads</property>
+      <!-- The max number of threads in the pool -->
+      <property name="maximumPoolSize">10</property>
+      <!-- The max number of tasks before the queue is full -->
+      <property name="maximumQueueSize">1000</property>
+      <!-- The behavior of the pool when a task is added and the queue is full.
+      abort - a RuntimeException is thrown
+      run - the calling thread executes the task
+      wait - the calling thread blocks until the queue has room
+      discard - the task is silently discarded without being run
+      discardOldest - check to see if a task is about to complete and enque
+         the new task if possible, else run the task in the calling thread
+      -->
+      <property name="blockingModeString">run</property>
+   </bean>
+
+   <bean name="jboss.mq:service=DestinationManager" class="org.jboss.mq.server.JMSDestinationManager">
+      <constructor>
+         <parameter class="org.jboss.mq.server.BasicQueueParameters">
+            <inject bean="BasicQueueParameters"/>
+         </parameter>
+      </constructor>
+      <property name="persistenceManager"><inject bean="jboss.mq:service=PersistenceManager"/></property>
+      <property name="messageCache"><inject bean="jboss.mq:service=MessageCache"/></property>
+      <property name="stateManager"><inject bean="jboss.mq:service=StateManager"/></property>
+      <property name="threadPool"><inject bean="jboss.mq:service=ThreadPool"/></property>
+      <property name="threadGroup"><inject bean="jboss.mq:service=ThreadPool" property="threadGroup"/></property>
+      <start method="startServer"/>
+      <stop method="stopServer"/>
+   </bean>
+
+   <bean name="jboss.mq.destination:service=Queue,name=DLQ" class="org.jboss.mq.kernel.Queue">
+     <property name="destinationManagerPojo"><inject bean="jboss.mq:service=DestinationManager"/></property>
+     <property name="initialContextProperties"><inject bean="InitialContextProperties"/></property>
+      <property name="destinationName">DLQ</property>
+   </bean>
+
+   <bean name="jboss.mq:service=Invoker" class="org.jboss.mq.server.JMSServerInvoker">
+      <property name="next"><inject bean="jboss.mq:service=DestinationManager"/></property>
+   </bean>
+
+   <bean name="jboss.mq:service=InvocationLayer,type=JVM" class="org.jboss.mq.kernel.JVMIL">
+      <property name="jmsInvoker"><inject bean="jboss.mq:service=Invoker"/></property>
+     <property name="connectionFactoryJNDIRef">java:/ConnectionFactory</property>
+     <property name="xAConnectionFactoryJNDIRef">java:/XAConnectionFactory</property>
+     <property name="pingPeriod">0</property>
+      <property name="initialContextProperties"><inject bean="InitialContextProperties"/></property>
+   </bean>
+
+</deployment>
\ No newline at end of file


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jboss-jms-beans.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jndi.properties
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jndi.properties	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jndi.properties	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,2 @@
+java.naming.factory.initial org.jnp.interfaces.LocalOnlyContextFactory
+java.naming.factory.url.pkgs org.jboss.naming:org.jnp.interfaces


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/jndi.properties
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/log4j.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/log4j.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/log4j.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Log4j Configuration                                                  -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml,v 1.9 2006/07/04 01:14:18 gavin Exp $ -->
+
+<!--
+   | For more configuration infromation and examples see the Jakarta Log4j
+   | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<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">
+         <param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{1}] %m%n"/>
+      </layout>
+   </appender>
+
+   <!-- 
+   <category name="org.hibernate">
+      <priority value="DEBUG"/>
+   </category>
+   -->
+
+   <!-- 
+   <category name="org.jboss.seam">
+      <priority value="DEBUG"/>
+   </category>
+   -->
+   
+   <!-- 
+   <category name="org.jboss.ejb3">
+      <priority value="DEBUG"/>
+   </category>
+   -->
+
+   <!-- 
+   <category name="org.jboss.kernel">
+      <priority value="DEBUG"/>
+   </category>
+   -->
+
+   <root>
+      <priority value="INFO"/>
+      <appender-ref ref="CONSOLE"/>
+   </root>
+   
+</log4j:configuration>


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/log4j.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/login-config.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/login-config.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/login-config.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,63 @@
+<?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: 1.1 $
+-->
+
+<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/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/security-beans.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/security-beans.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/conf/security-beans.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
+            xmlns="urn:jboss:bean-deployer">
+
+   <bean class="org.jboss.ejb3.embedded.JaasSecurityManagerService"
+         name="jboss.security:service=JaasSecurityManager">
+      <property name="initialContextProperties">
+         <inject bean="InitialContextProperties"/>
+      </property>
+   </bean>
+</deployment>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/hibernate-all.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/hibernate-all.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/javax.servlet.jsp.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/javax.servlet.jsp.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jboss-aop-jdk50.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jboss-aop-jdk50.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jboss-cache-jdk50.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jboss-cache-jdk50.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jboss-ejb3-all.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jboss-ejb3-all.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jgroups.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jgroups.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jstl.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/jstl.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/mailstuff.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/mailstuff.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/portlet-api-lib.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/portlet-api-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/servlet-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/servlet-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/thirdparty-all.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/embeddedejb3/thirdparty-all.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/hibernate-annotations.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/hibernate-annotations.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/hibernate-entitymanager.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/hibernate-entitymanager.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/hibernate3.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/hibernate3.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/javassist.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/javassist.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-archive-browsing.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-archive-browsing.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-debug.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-debug.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-gen.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-gen.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-ioc.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-ioc.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-mail.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-mail.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-pdf.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-pdf.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-remoting.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-remoting.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-ui.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam-ui.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jboss-seam.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jbpm-3.1.2.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jbpm-3.1.2.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jsf-api.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jsf-api.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jsf-facelets.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/jsf-facelets.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/antlr-2.7.5H3.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/antlr-2.7.5H3.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/commons-collections.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/commons-collections.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/commons-logging.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/commons-logging.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/concurrent.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/concurrent.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/dom4j.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/dom4j.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/hsqldb.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/hsqldb.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-common-jdbc-wrapper.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-common-jdbc-wrapper.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-common.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-common.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-container.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-container.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-dependency.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-dependency.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-j2ee.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-j2ee.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-j2se.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-j2se.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-jca.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-jca.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-local-jdbc.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-local-jdbc.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-microcontainer.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-microcontainer.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-security.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-security.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-system.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-system.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-transaction.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jboss-transaction.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jnpserver.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/jnpserver.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/log4j.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/log4j.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/namespace.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/namespace.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/xercesImpl.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/xercesImpl.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/xml-apis.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/microcontainer/xml-apis.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/testng-4.5.1-jdk15.jar
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/lib/testng-4.5.1-jdk15.jar
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/build.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/build.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/build.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="HelloWorld"
+         default="main" basedir=".">
+    
+  <description>Hello World</description>
+  <property name="projname" value="seamejb3" />
+
+  <property file="../build.properties"/>
+  <property name="jboss.deploy"
+    location="${jboss.home}/server/default/deploy"/>
+
+  <property name="lib" location="../lib" />
+  <property name="testlib" location="../lib/embeddedejb3" />
+  <property name="applib" location="lib" />
+  <path id="lib.classpath">
+    <fileset dir="${lib}" includes="*.jar"/>
+    <fileset dir="${testlib}" includes="*.jar"/>
+    <fileset dir="${applib}" includes="*.jar"/>
+  </path>
+  
+  <property name="resources" location="resources" />
+  
+  <property name="src" location="src" />
+  <property name="test" location="test" />
+  <property name="view" location="view" />
+  
+  <property name="build.classes" location="build/classes" />
+  <property name="build.jars" location="build/jars" />
+  <property name="build.test" location="build/test" />
+  <property name="build.testout" location="build/testout" />
+
+  <target name="clean">
+    <delete dir="build"/>
+  </target>
+
+  <target name="main" depends="compile,war,ejb3jar,ear"/>
+
+  <target name="compile">
+    <mkdir dir="${build.classes}"/>
+    <javac destdir="${build.classes}"
+           classpathref="lib.classpath"
+           debug="true">
+      <src path="${src}"/>
+    </javac>
+  </target>
+
+  <target name="war" depends="compile">
+    <mkdir dir="${build.jars}"/>
+
+    <war destfile="${build.jars}/app.war"
+         webxml="${resources}/WEB-INF/web.xml">
+      <webinf dir="${resources}/WEB-INF">
+        <include name="faces-config.xml" />
+        <include name="components.xml" />
+        <include name="navigation.xml" />
+        <include name="pages.xml" />
+      </webinf>
+      <lib dir="${lib}">
+        <include name="jboss-seam-ui.jar" />
+        <include name="jboss-seam-debug.jar" />
+        <include name="jsf-facelets.jar" />
+      </lib>
+      <fileset dir="${view}"/>
+    </war>
+  </target>
+
+  <target name="ejb3jar" depends="compile">
+    <mkdir dir="${build.jars}"/>
+
+    <jar destfile="${build.jars}/app.jar">
+      <fileset dir="${build.classes}">
+        <include name="**/*.class"/>
+      </fileset>
+      <fileset dir="${resources}">
+        <include name="import.sql" />
+        <include name="seam.properties" />
+      </fileset>
+      <fileset dir="${applib}">
+        <include name="*.jar" />
+      </fileset>
+      <metainf dir="${resources}/META-INF">
+        <include name="persistence.xml" />
+        <include name="ejb-jar.xml" />
+      </metainf>
+    </jar>
+  </target>
+
+  <target name="ear">
+    <mkdir dir="${build.jars}"/>
+
+    <ear destfile="${build.jars}/${projname}.ear"
+      appxml="${resources}/META-INF/application.xml">
+      <fileset dir="${build.jars}"
+        includes="*.jar, *.war"/>
+      <metainf dir="${resources}/META-INF">
+        <include name="jboss-app.xml" />
+      </metainf>
+      <fileset dir="${lib}">
+        <include name="jboss-seam.jar"/>
+      </fileset>
+    </ear>
+  </target>
+
+  <target name="deploy">
+    <copy file="${build.jars}/${projname}.ear"
+      todir="${jboss.deploy}"/>
+  </target>
+
+  <target name="undeploy">
+    <delete
+        file="${jboss.deploy}/${projname}.ear"/>
+  </target>
+
+</project>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/nbproject/project.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/nbproject/project.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/nbproject/project.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,75 @@
+<?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>seampojo</name>
+            <properties/>
+            <folders>
+                <source-folder>
+                    <label>src</label>
+                    <type>java</type>
+                    <location>src</location>
+                </source-folder>
+                <source-folder>
+                    <label>test</label>
+                    <type>java</type>
+                    <location>test</location>
+                </source-folder>
+            </folders>
+            <ide-actions>
+                <action name="build">
+                    <target>main</target>
+                </action>
+                <action name="clean">
+                    <target>clean</target>
+                </action>
+                <action name="run">
+                    <target>deploy</target>
+                </action>
+                <action name="rebuild">
+                    <target>clean</target>
+                    <target>main</target>
+                </action>
+            </ide-actions>
+            <view>
+                <items>
+                    <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-folder style="packages">
+                        <label>src</label>
+                        <location>src</location>
+                    </source-folder>
+                    <source-folder style="packages">
+                        <label>test</label>
+                        <location>test</location>
+                    </source-folder>
+                    <source-file>
+                        <location>build.xml</location>
+                    </source-file>
+                </items>
+                <context-menu>
+                    <ide-action name="build"/>
+                    <ide-action name="clean"/>
+                    <ide-action name="run"/>
+                    <ide-action name="rebuild"/>
+                </context-menu>
+            </view>
+            <subprojects/>
+        </general-data>
+        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/1">
+            <compilation-unit>
+                <package-root>src</package-root>
+                <classpath mode="compile">../lib/ejb3-persistence.jar:../lib/hibernate-annotations.jar:../lib/hibernate-entitymanager.jar:../lib/hibernate3.jar:../lib/jboss-archive-browsing.jar:../lib/jboss-seam-debug.jar:../lib/jboss-seam-ui.jar:../lib/jboss-seam.jar:../lib/myfaces-api-1.1.4.jar:../lib/myfaces-impl-1.1.4.jar:../lib/embeddedejb3/jboss-ejb3-all.jar</classpath>
+                <source-level>1.5</source-level>
+            </compilation-unit>
+        </java-data>
+    </configuration>
+</project>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/application.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/application.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/application.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,19 @@
+<application>
+  <display-name>Seam Hello World</display-name>
+
+  <module>
+    <web>
+      <web-uri>app.war</web-uri>
+      <context-root>/seamejb3</context-root>
+    </web>
+  </module>
+
+  <module>
+    <ejb>app.jar</ejb>
+  </module>
+  
+  <module>
+    <java>jboss-seam.jar</java>
+  </module>
+  
+</application>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/ejb-jar.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/ejb-jar.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/ejb-jar.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,12 @@
+<ejb-jar>
+  
+  <assembly-descriptor>
+    <interceptor-binding>
+      <ejb-name>*</ejb-name>
+      <interceptor-class>
+        org.jboss.seam.ejb.SeamInterceptor
+      </interceptor-class>
+    </interceptor-binding>
+  </assembly-descriptor>
+  
+</ejb-jar>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/jboss-app.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/jboss-app.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/jboss-app.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,5 @@
+<jboss-app>
+  <loader-repository>
+    seamejb3:archive=seamejb3.ear
+  </loader-repository>
+</jboss-app>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/persistence.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/persistence.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/META-INF/persistence.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,10 @@
+<persistence>
+   <persistence-unit name="helloworld">
+      <provider>org.hibernate.ejb.HibernatePersistence</provider>
+      <jta-data-source>java:/DefaultDS</jta-data-source>
+      <properties>
+         <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
+         <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+      </properties>
+   </persistence-unit>
+</persistence>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/components.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/components.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/components.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns="http://jboss.com/products/seam/components"
+            xmlns:core="http://jboss.com/products/seam/core"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation=
+              "http://jboss.com/products/seam/core 
+               http://jboss.com/products/seam/core-1.1.xsd
+               http://jboss.com/products/seam/components 
+               http://jboss.com/products/seam/components-1.1.xsd">
+
+  <core:init 
+    jndi-pattern="seamejb3/#{ejbName}/local" 
+    debug="true"/>
+
+  <core:manager conversation-timeout="120000"/>
+  
+</components>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/faces-config.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/faces-config.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/faces-config.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config 
+    PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+    
+<faces-config>
+
+  <!-- Select one of the three standard persistence lifecycle models for the Seam application -->
+
+  <lifecycle>
+    <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener> 
+  </lifecycle>
+  
+  <!-- Facelets support -->
+
+  <application>
+    <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
+  </application>
+
+</faces-config>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/navigation.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/navigation.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/navigation.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config 
+    PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+    
+<faces-config>
+
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>persisted</from-outcome>
+      <to-view-id>/index.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+  
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>updated</from-outcome>
+      <to-view-id>/index.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+  
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>removed</from-outcome>
+      <to-view-id>/index.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>create</from-outcome>
+      <to-view-id>/create.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>todos</from-outcome>
+      <to-view-id>/todos.xhtml</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+
+</faces-config>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/pages.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/pages.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/pages.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,12 @@
+<!DOCTYPE pages PUBLIC
+  "-//JBoss/Seam Pages Configuration DTD 1.1//EN"
+  "http://jboss.com/products/seam/pages-1.1.dtd">
+
+<pages>
+  
+  <page view-id="/edit.xhtml">
+    <param name="tid" value="#{todoDao.id}" 
+           converterId="javax.faces.Long"/>
+  </page>
+  
+</pages>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/web.xml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/web.xml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/WEB-INF/web.xml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" 
+	xmlns="http://java.sun.com/xml/ns/j2ee"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+          
+  <context-param>
+    <param-name>javax.faces.CONFIG_FILES</param-name>
+    <param-value>/WEB-INF/navigation.xml</param-value>
+  </context-param>
+  
+  <!-- Seam -->
+    
+    <listener>
+        <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
+    </listener>
+    
+    <servlet>
+        <servlet-name>Seam Resource Servlet</servlet-name>
+        <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>Seam Resource Servlet</servlet-name>
+        <url-pattern>/seam/resource/*</url-pattern>
+    </servlet-mapping>
+
+    <filter>
+        <filter-name>Seam Filter</filter-name>
+        <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
+    </filter>
+
+    <filter-mapping>
+        <filter-name>Seam Filter</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping> 
+
+    <!-- MyFaces -->
+    <!--
+    <listener>
+        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+    </listener>
+    -->
+    
+    <context-param>
+        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+        <param-value>client</param-value>
+    </context-param>
+    
+    <context-param>
+        <param-name>facelets.DEVELOPMENT</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+    <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>
+
+    <!-- Faces Servlet Mapping -->
+    <servlet-mapping>
+	<servlet-name>Faces Servlet</servlet-name>
+	<url-pattern>*.seam</url-pattern>
+    </servlet-mapping>
+	
+</web-app>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/import.sql
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/import.sql	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/import.sql	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,50 @@
+insert into Todo (id, title, description) values (1, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (2, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (3, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (4, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (5, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (6, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (7, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (8, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (9, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (10, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (11, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (12, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (13, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (14, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (15, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (16, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (17, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (18, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (19, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (20, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (21, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (22, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (23, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (24, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (25, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (26, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (27, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (28, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (29, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (30, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (31, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (32, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (33, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (34, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (35, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (36, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (37, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (38, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (39, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (40, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (41, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (42, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (43, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (44, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (45, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (46, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (47, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (48, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (49, 'This is a title', 'The description is here!')
+insert into Todo (id, title, description) values (50, 'This is a title', 'The description is here!')

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/seam.properties
===================================================================


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/resources/seam.properties
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/Todo.java
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/Todo.java	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/Todo.java	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,39 @@
+
+import java.io.Serializable;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Table;
+
+import org.jboss.seam.annotations.*;
+import org.hibernate.validator.*;
+
+ at Entity
+ at Name("todo")
+public class Todo implements Serializable {
+
+  private long id;
+  private String title;
+  private String description;
+
+  public Todo () {
+    title ="";
+    description ="";
+  }
+
+  @Id @GeneratedValue
+  public long getId() { return id;}
+  public void setId(long id) { this.id = id; }
+
+  @NotNull
+  public String getTitle() { return title; }
+  public void setTitle(String title) {this.title = title;}
+
+  @NotNull
+  @Length(max=250) 
+  public String getDescription() { return description; }
+  public void setDescription(String description) {
+    this.description = description;
+  }
+
+}

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/TodoDao.java
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/TodoDao.java	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/TodoDao.java	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,67 @@
+
+import java.util.List;
+import javax.ejb.*;
+import org.jboss.seam.annotations.*;
+import org.jboss.seam.annotations.datamodel.*;
+import org.jboss.seam.ejb.*;
+import org.hibernate.validator.Valid;
+
+import javax.persistence.*;
+
+import static javax.persistence.PersistenceContextType.EXTENDED;
+
+ at Stateful
+ at Name("todoDao")
+public class TodoDao implements TodoDaoInt {
+
+  @In (required=false) @Out (required=false)
+  private Todo todo;
+
+  @PersistenceContext (type=EXTENDED)
+  private EntityManager em;
+
+  // Injected from pages.xml
+  Long id;
+ 
+  public String persist () {
+    em.persist (todo);
+    return "persisted";
+  }
+
+  @DataModel
+  private List <Todo> todos;
+
+  @Factory("todos")
+  public void findTodos () {
+    todos = em.createQuery("select t from Todo t")
+                                  .getResultList();
+  }
+
+  public void setId (Long id) {
+    this.id = id;
+    
+    if (id != null) {
+      todo = (Todo) em.find(Todo.class, id);
+    } else {
+      todo = new Todo ();
+    }
+  }
+  
+  public Long getId () {
+    return id;
+  }
+
+  public String delete () {
+    em.remove( todo );
+    return "removed";
+  }
+
+  public String update () {
+    return "updated";
+  }
+
+  @Remove @Destroy
+  public void destroy() {}
+
+}
+

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/TodoDaoInt.java
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/TodoDaoInt.java	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/src/TodoDaoInt.java	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,14 @@
+
+public interface TodoDaoInt {
+
+  public String persist ();
+  public String delete ();
+  public String update ();
+
+  public void findTodos ();
+
+  public Long getId ();
+  public void setId (Long id);
+
+  public void destroy ();
+}

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/create.xhtml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/create.xhtml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/create.xhtml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,58 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+<head>
+ <link href="style.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<body>
+<h2>DataModel, Validation and Restful Page Demo</h2>
+
+<h:form id="create">
+
+<f:facet name="beforeInvalidField">
+  <h:graphicImage styleClass="errorImg" value="error.png"/>
+</f:facet>
+<f:facet name="afterInvalidField">
+  <s:message styleClass="errorMsg" />
+</f:facet>
+<f:facet name="aroundInvalidField">
+  <s:div styleClass="error"/>
+</f:facet>
+
+<s:validateAll>
+
+<table>
+
+  <tr>
+    <td>Title:</td>
+    <td>
+      <s:decorate>
+        <h:inputText id="title" value="#{todo.title}" size="15"/>
+      </s:decorate>
+    </td>
+  </tr>
+
+  <tr>
+    <td>Description:</td>
+    <td>
+      <s:decorate>
+        <h:inputTextarea id="description" value="#{todo.description}"/>
+      </s:decorate>
+    </td>
+  </tr>
+
+</table>
+
+</s:validateAll>
+
+<h:commandButton type="submit" id="create" value="Create"
+                 action="#{todoDao.persist}"/>
+</h:form>
+
+</body>
+</html>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/edit.xhtml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/edit.xhtml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/edit.xhtml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,61 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+<head>
+ <link href="style.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<body>
+<h2>Edit #{todo.title}</h2>
+
+<h:form id="edit">
+  
+<f:facet name="beforeInvalidField">
+  <h:graphicImage styleClass="errorImg" value="error.png"/>
+</f:facet>
+<f:facet name="afterInvalidField">
+  <s:message styleClass="errorMsg" />
+</f:facet>
+<f:facet name="aroundInvalidField">
+  <s:div styleClass="error"/>
+</f:facet>
+
+<s:validateAll>
+
+<table>
+
+  <tr>
+    <td>Title:</td>
+    <td>
+      <s:decorate>
+        <h:inputText id="title" value="#{todo.title}" size="15"/>
+      </s:decorate>
+    </td>
+  </tr>
+
+  <tr>
+    <td>Description:</td>
+    <td>
+      <s:decorate>
+        <h:inputTextarea id="description" value="#{todo.description}"/>
+      </s:decorate>
+    </td>
+  </tr>
+
+</table>
+
+</s:validateAll>
+
+<h:commandButton type="submit" id="update" value="Update"
+                 action="#{todoDao.update}"/>
+&nbsp;
+<h:commandButton type="submit" id="delete" value="Delete"
+                 action="#{todoDao.delete}"/>
+</h:form>
+
+</body>
+</html>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/error.png
===================================================================
(Binary files differ)


Property changes on: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/error.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/index.html
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/index.html	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/index.html	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,5 @@
+<html>
+<head>
+  <meta http-equiv="Refresh" content="0; URL=index.seam">
+</head>
+</html>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/index.xhtml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/index.xhtml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/index.xhtml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+<head>
+ <link href="style.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<body>
+<h2>Seam POJO</h2>
+
+<p>Actions:</p>
+
+<h:form>
+
+<ul>
+  <li><h:commandLink type="submit" value="Create New Todo" action="create"/></li>
+  <li><h:commandLink type="submit" value="Show All Todos" action="todos"/></li>
+</ul>
+
+</h:form>
+
+</body>
+</html>

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/style.css
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/style.css	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/style.css	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,18 @@
+.error {
+  color: red;
+  border: solid red;
+  padding: .4em;
+  margin: 10px
+}
+
+.errorImg {
+  vertical-align: middle;
+  width: 16px;
+  height: 16px;
+}
+
+.errorMsg {
+  display: block;
+  margin: 5px;
+  padding: .1em;
+}

Added: projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/todos.xhtml
===================================================================
--- projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/todos.xhtml	                        (rev 0)
+++ projects/docs/branches/JBEAP42CP01/Sample_Applications/seamejb3/view/todos.xhtml	2007-10-16 06:30:28 UTC (rev 66157)
@@ -0,0 +1,36 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+<body>
+
+<h2>The Todo List</h2>
+
+<h:form>
+
+<h:dataTable value="#{todos}" var="todo">
+  <h:column>
+    <f:facet name="header">Title</f:facet>
+    #{todo.title}
+  </h:column>
+  <h:column>
+    <f:facet name="header">Description</f:facet>
+    #{todo.description}
+  </h:column>
+  <h:column>
+    <a href="edit.seam?tid=#{todo.id}">Edit</a>
+  </h:column>
+</h:dataTable>
+
+<center>
+  <h:commandButton action="create"
+            value="Create New Todo" type="submit"/>
+</center>
+
+</h:form>
+
+</body>
+</html>




More information about the jboss-cvs-commits mailing list