[jboss-cvs] JBossAS SVN: r82983 - in projects/ejb3/trunk/docs/tutorial: reference21_30 and 35 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jan 16 10:22:27 EST 2009


Author: jaikiran
Date: 2009-01-16 10:22:26 -0500 (Fri, 16 Jan 2009)
New Revision: 82983

Added:
   projects/ejb3/trunk/docs/tutorial/reference21_30/
   projects/ejb3/trunk/docs/tutorial/reference21_30/build.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/pom.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Bean.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Remote.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/ejb-jar.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/jboss.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/pom.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Bean.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Remote.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/ejb-jar.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/jboss.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/
   projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/META-INF/
   projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/META-INF/application.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/pom.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/jndi.properties
   projects/ejb3/trunk/docs/tutorial/reference21_30/log4j.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/pom.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/pom.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/org/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/org/jboss/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/org/jboss/tutorial/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/org/jboss/tutorial/reference21_30/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/org/jboss/tutorial/reference21_30/servlet/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/org/jboss/tutorial/reference21_30/servlet/EJBReferenceServlet.java
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/WEB-INF/
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/WEB-INF/web.xml
   projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/index.html
Log:
Working version of References between EJB2.1 bean and EJB3 bean, for JBossAS-5.0 GA

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/build.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/build.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/build.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,159 @@
+<?xml version="1.0"?>
+
+<!-- ======================================================================= -->
+<!-- JBoss build file                                                       -->
+<!-- ======================================================================= -->
+
+<project name="JBoss" default="ear" basedir=".">
+
+   	<property environment="env"/>
+	<property name="ejb3app.home" value="${basedir}/ejb3_app"/>
+	<property name="ejb21app.home" value="${basedir}/ejb21_app"/>
+	<property name="webapp.home" value="${basedir}/webapp"/>
+  	<property name="ejb3app.src.dir" value="${ejb3app.home}/src/main/java"/>
+	<property name="ejb21app.src.dir" value="${ejb21app.home}/src/main/java"/>
+	<property name="webapp.src.dir" value="${webapp.home}/src/main/java"/>
+   	<property name="ejb3app.build.dir" value="${ejb3app.home}/build"/>
+	<property name="ejb21app.build.dir" value="${ejb21app.home}/build"/>
+   	<property name="ejb3app.build.classes.dir" value="${ejb3app.build.dir}/classes"/>
+	<property name="ejb21app.build.classes.dir" value="${ejb21app.build.dir}/classes"/>
+   	<property name="webapp.build.dir" value="${webapp.home}/build"/>
+  	<property name="webapp.build.classes.dir" value="${webapp.build.dir}/classes"/>
+	<property name="ear.home" value="${basedir}/enterprise_app"/>
+	<property name="ear.build.dir" value="${ear.home}/build"/>
+   	<property name="build.war.artifact" value="jboss-ejb3-tutorial-reference21_30_webapp.war"/>
+	<property name="build.ear.artifact" value="jboss-ejb3-tutorial-ejbreferences.ear"/>
+	<property name="build.ejb3.artifact" value="jboss-ejb3-tutorial-reference21_30_ejb3_app.jar"/>
+	<property name="build.ejb21.artifact" value="jboss-ejb3-tutorial-reference21_30_ejb21_app.jar"/>
+	<property name="jboss.home" value="${env.JBOSS_HOME}"/>
+	<property name="jboss.server.config" value="default"/>
+
+   <!-- Build classpath -->
+   <path id="classpath">
+      <!-- So that we can get jndi.properties for InitialContext -->
+      <pathelement location="${basedir}"/>
+   		<!-- Only the jbossall-client.jar should ideally be sufficient -->
+      <fileset dir="${jboss.home}/client">
+         <include name="**/jbossall-client.jar"/>
+      </fileset>
+      	<pathelement location="${ejb21app.build.classes.dir}"/>
+   		<pathelement location="${ejb3app.build.classes.dir}"/>
+   		<pathelement location="${webapp.build.classes.dir}"/>
+   </path>
+
+   <property name="build.classpath" refid="classpath"/>
+
+   <!-- =================================================================== -->
+   <!-- Prepares the build directory                                        -->
+   <!-- =================================================================== -->
+   <target name="prepare">
+      	<mkdir dir="${ejb21app.build.classes.dir}"/>
+	  	<mkdir dir="${ejb3app.build.classes.dir}"/>
+   		<mkdir dir="${webapp.build.classes.dir}"/>
+		<mkdir dir="${ear.build.dir}"/>
+   </target>
+
+   <!-- =================================================================== -->
+   <!-- Compiles the source code                                            -->
+   <!-- =================================================================== -->
+   <target name="compile" depends="prepare">
+		<!-- First compile the EJB2.1 app -->
+   		<javac srcdir="${ejb21app.src.dir}"
+	         destdir="${ejb21app.build.classes.dir}"
+	         debug="on"
+	         deprecation="on"
+	         optimize="off"
+	         includes="**">
+	         <classpath refid="classpath"/>
+	      </javac>
+   		<!-- Now the EJB3 app -->
+	    <javac srcdir="${ejb3app.src.dir}"
+	       destdir="${ejb3app.build.classes.dir}"
+	       debug="on"
+	       deprecation="on"
+	       optimize="off"
+	       includes="**">
+	       <classpath refid="classpath"/>
+	    </javac>
+
+      	<!-- The web app -->
+        <javac srcdir="${webapp.src.dir}"
+           destdir="${webapp.build.classes.dir}"
+           debug="on"
+           deprecation="on"
+           optimize="off"
+           includes="**">
+           <classpath refid="classpath"/>
+        </javac>
+
+   </target>
+
+   <target name="ear" depends="compile">
+   	
+  	 <!-- The EJB21 jar -->
+     <jar jarfile="${ejb21app.build.dir}/${build.ejb21.artifact}">
+        <fileset dir="${ejb21app.build.classes.dir}">
+           <include name="**/*.class"/>
+        </fileset>
+     	<fileset dir="${ejb21app.home}/src/main/resources">
+     		<include name="META-INF/*.xml"/>
+     	</fileset>
+     </jar>
+   	<!-- EJB3 jar -->
+    <jar jarfile="${ejb3app.build.dir}/${build.ejb3.artifact}">
+       <fileset dir="${ejb3app.build.classes.dir}">
+          <include name="**/*.class"/>
+       </fileset>
+    	<fileset dir="${ejb3app.home}/src/main/resources">
+    		<include name="META-INF/*.xml"/>
+    	</fileset>
+    </jar>
+  	 <!-- The war -->
+     <zip zipfile="${webapp.build.dir}/${build.war.artifact}">
+        <zipfileset dir="${webapp.build.classes.dir}" prefix="WEB-INF/classes">
+           <include name="**/*.class"/>
+        </zipfileset>
+        <zipfileset dir="${webapp.home}/src/main/webapp">
+        	<include name="WEB-INF/web.xml"/>
+           <include name="index.html"/>
+        </zipfileset>
+     </zip>
+  		<!-- Finally the EAR -->
+     <zip zipfile="${ear.build.dir}/${build.ear.artifact}">
+        <zipfileset dir="${webapp.build.dir}">
+           <include name="${build.war.artifact}"/>
+        </zipfileset>
+        <zipfileset dir="${ejb3app.build.dir}">
+           <include name="${build.ejb3.artifact}"/>
+        </zipfileset>
+        <zipfileset dir="${ejb21app.build.dir}">
+           <include name="${build.ejb21.artifact}"/>
+        </zipfileset>
+        <zipfileset dir="${ear.home}">
+           <include name="META-INF/application.xml"/>
+        </zipfileset>
+
+     </zip>
+
+      <copy file="${ear.build.dir}/${build.ear.artifact}" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
+   </target>
+
+
+   <!-- =================================================================== -->
+   <!-- Cleans up generated stuff                                           -->
+   <!-- =================================================================== -->
+   <target name="clean.db">
+      <delete dir="${jboss.home}/server/${jboss.server.config}/data/hypersonic"/>
+   </target>
+
+   <target name="clean">
+      	<delete dir="${ejb21app.build.dir}"/>
+   		<delete dir="${ejb3app.build.dir}"/>
+   		<delete dir="${webapp.build.dir}"/>
+   		<delete dir="${ear.build.dir}"/>
+      	<delete file="${jboss.home}/server/${jboss.server.config}/deploy/${build.ear.artifact}"/>
+   </target>
+
+
+</project>
+


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/build.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/pom.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/pom.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  
+
+  	
+  
+   
+  <!-- Model Version -->
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.jboss.ejb3</groupId>
+    <artifactId>jboss-ejb3-tutorial-reference21_30</artifactId>
+    <version>0.1.0-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+	
+  <artifactId>jboss-ejb3-tutorial-reference21_30_ejb21_app</artifactId>
+  <version>0.1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <name>EJB2.1 application for "reference21_30" tutorial</name>
+  <url>http://labs.jboss.com/jbossejb3/</url>
+  <description>
+    An EJB2.1 application (to be used with reference21_30 tutorial).
+  </description>
+  
+</project>


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/pom.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import java.rmi.RemoteException;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version <tt>$Revision: 61136 $</tt>
+ */
+public interface Stateless2 extends javax.ejb.EJBObject
+{
+   void testAccess() throws RemoteException;
+
+   void sayHello(String name) throws RemoteException;
+}


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Bean.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Bean.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Bean.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,81 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import javax.ejb.SessionContext;
+import javax.naming.InitialContext;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version <tt>$Revision: 61136 $</tt>
+ */
+public class Stateless2Bean
+implements javax.ejb.SessionBean
+{
+   private static final Logger log = Logger.getLogger(Stateless2Bean.class);
+    
+   public void testAccess()
+   {
+      try
+      {
+         InitialContext jndiContext = new InitialContext();
+         Stateless3 session = (Stateless3)jndiContext.lookup("java:comp/env/ejb/Stateless3");
+         session.sayHello(this.getClass().getSimpleName());
+      }
+      catch (Exception e)
+      {
+         e.printStackTrace();
+      }
+   }
+   
+   public void ejbCreate()
+   {
+    
+   }
+   
+   public void ejbActivate()
+   {
+   
+   }
+   
+   public void ejbPassivate()
+   {
+      
+   }
+   
+   public void ejbRemove()
+   {
+      
+   }
+   
+   public void setSessionContext(SessionContext context)
+   {
+      
+   }
+   
+   public void sayHello(String name)
+   {
+      log.info(this.getClass().getSimpleName() + " says hello to " + name);
+   }
+}


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Bean.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import javax.ejb.*;
+
+/**
+ * @version <tt>$Revision: 61136 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface Stateless2Home extends EJBHome {
+    
+  public Stateless2 create() throws java.rmi.RemoteException, javax.ejb.CreateException;
+} 
+


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version <tt>$Revision: 61136 $</tt>
+ */
+public interface Stateless3
+{
+   void testAccess() throws Exception;
+   
+   void sayHello(String name);
+}


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import javax.ejb.EJBHome;
+
+/**
+ * @version <tt>$Revision: 61136 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface Stateless3Home extends EJBHome
+{
+
+   public Stateless3Remote create() throws java.rmi.RemoteException, javax.ejb.CreateException;
+}


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Remote.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Remote.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Remote.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import javax.ejb.EJBObject;
+
+/**
+ * Stateless3Remote
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public interface Stateless3Remote extends Stateless3, EJBObject
+{
+
+}

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/ejb-jar.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/ejb-jar.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/ejb-jar.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,22 @@
+<?xml version='1.0' ?>
+<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" 
+                         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
+<ejb-jar>
+	<enterprise-beans>
+		<session>
+        	<ejb-name>ejb/Stateless2</ejb-name>
+         	<home>org.jboss.tutorial.reference21_30.bean.Stateless2Home</home>
+         	<remote>org.jboss.tutorial.reference21_30.bean.Stateless2</remote>
+         	<ejb-class>org.jboss.tutorial.reference21_30.bean.Stateless2Bean</ejb-class>
+         	<session-type>Stateless</session-type>
+         	<transaction-type>Container</transaction-type>
+            <ejb-ref>
+				<ejb-ref-name>ejb/Stateless3</ejb-ref-name>
+				<ejb-ref-type>Session</ejb-ref-type>
+				<home>org.jboss.tutorial.reference21_30.bean.Stateless3Home</home>
+				<remote>org.jboss.tutorial.reference21_30.bean.Stateless3</remote>
+			</ejb-ref> 
+    	</session>
+	</enterprise-beans>
+</ejb-jar>
+


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/ejb-jar.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/jboss.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/jboss.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/jboss.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss>
+   <enterprise-beans>
+      <session>
+         <ejb-name>ejb/Stateless2</ejb-name>
+         <jndi-name>Stateless2</jndi-name>
+         <ejb-ref>
+				<ejb-ref-name>ejb/Stateless3</ejb-ref-name>
+				<jndi-name>Stateless3</jndi-name>
+			</ejb-ref>
+      </session>
+   </enterprise-beans>
+</jboss>


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb21_app/src/main/resources/META-INF/jboss.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/pom.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/pom.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  
+
+  	
+  
+   
+  <!-- Model Version -->
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.jboss.ejb3</groupId>
+    <artifactId>jboss-ejb3-tutorial-reference21_30</artifactId>
+    <version>0.1.0-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+  
+
+	
+  <artifactId>jboss-ejb3-tutorial-reference21_30_ejb3_app</artifactId>
+  <version>0.1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <name>EJB3 application for "reference21_30" tutorial</name>
+  <url>http://labs.jboss.com/jbossejb3/</url>
+  <description>
+    An sample EJB3 application to be used in "reference21_30" tutorial
+  </description>
+  
+</project>


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/pom.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import java.rmi.RemoteException;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version <tt>$Revision: 61136 $</tt>
+ */
+public interface Stateless2 extends javax.ejb.EJBObject
+{
+   void testAccess() throws RemoteException;
+
+   void sayHello(String name) throws RemoteException;
+}


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import javax.ejb.*;
+
+/**
+ * @version <tt>$Revision: 61136 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface Stateless2Home extends EJBHome {
+    
+  public Stateless2 create() throws java.rmi.RemoteException, javax.ejb.CreateException;
+} 
+


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless2Home.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version <tt>$Revision: 61136 $</tt>
+ */
+public interface Stateless3
+{
+   void testAccess() throws Exception;
+   
+   void sayHello(String name);
+}


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Bean.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Bean.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Bean.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import javax.ejb.EJB;
+import javax.ejb.EJBs;
+import javax.ejb.Remote;
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateless;
+import javax.naming.InitialContext;
+
+import org.jboss.ejb3.Container;
+import org.jboss.ejb3.annotation.RemoteBinding;
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version <tt>$Revision: 61136 $</tt>
+ */
+ at Stateless
+ at Remote(Stateless3.class)
+ at RemoteBinding(jndiBinding = "Stateless3")
+ at RemoteHome(Stateless3Home.class)
+ at EJBs(
+{@EJB(name = "injected/Stateless2", mappedName = "Stateless2")})
+public class Stateless3Bean
+{
+   private static final Logger log = Logger.getLogger(Stateless3Bean.class);
+   
+   @EJB (name="ejb/Stateless2")
+   private Stateless2Home stateless2Home;
+
+   public void testAccess() throws Exception
+   {
+      try
+      {
+         InitialContext jndiContext = new InitialContext();
+         Stateless2Home home = (Stateless2Home) jndiContext.lookup(Container.ENC_CTX_NAME + "/env/injected/Stateless2");
+         Stateless2 test2 = home.create();
+         System.out.println("Using the Stateless2 bean from the ENC, configured through xml");
+         test2.sayHello(this.getClass().getSimpleName());
+         
+         System.out.println("Using an injected reference of Stateless2 bean");
+         // let's use the one injected in ejb/Stateless2
+         Stateless2 bean = stateless2Home.create();
+         bean.sayHello(this.getClass().getSimpleName());
+      }
+      catch (Exception e)
+      {
+         e.printStackTrace();
+      }
+   }
+   
+   public void sayHello(String name)
+   {
+      log.info(this.getClass().getSimpleName() + " says hello to " + name);
+   }
+}


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Bean.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import javax.ejb.EJBHome;
+
+/**
+ * @version <tt>$Revision: 61136 $</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface Stateless3Home extends EJBHome
+{
+
+   public Stateless3Remote create() throws java.rmi.RemoteException, javax.ejb.CreateException;
+}


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Home.java
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Remote.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Remote.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/java/org/jboss/tutorial/reference21_30/bean/Stateless3Remote.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.bean;
+
+import javax.ejb.EJBObject;
+
+/**
+ * Stateless3Remote
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public interface Stateless3Remote extends Stateless3, EJBObject
+{
+
+}

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/ejb-jar.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/ejb-jar.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/ejb-jar.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,18 @@
+<?xml version='1.0' ?>
+<ejb-jar
+        xmlns="http://java.sun.com/xml/ns/javaee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+                            http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+        version="3.0">
+	<enterprise-beans>
+		<session>
+			<ejb-name>Stateless3Bean</ejb-name>
+			<ejb-ref>
+				<ejb-ref-name>ejb/Stateless2</ejb-ref-name>
+				<ejb-ref-type>Session</ejb-ref-type>
+			</ejb-ref>            
+		</session>
+	</enterprise-beans>
+</ejb-jar>
+


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/ejb-jar.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/jboss.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/jboss.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/jboss.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<jboss xmlns:xs="http://www.jboss.org/j2ee/schema"
+       xs:schemaLocation="http://www.jboss.org/j2ee/schema jboss_5_0.xsd"
+             version="5.0"> 
+	<enterprise-beans>
+		<session>
+			<ejb-name>Stateless3Bean</ejb-name>
+			<ejb-ref>
+				<ejb-ref-name>ejb/Stateless2</ejb-ref-name>
+				<jndi-name>Stateless2</jndi-name>
+			</ejb-ref>
+		</session>
+	</enterprise-beans>
+</jboss>
+


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/ejb3_app/src/main/resources/META-INF/jboss.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/META-INF/application.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/META-INF/application.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/META-INF/application.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application PUBLIC
+	"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
+	"http://java.sun.com/dtd/application_1_3.dtd">
+<application>
+  <display-name>jboss-ejb3-tutorial-ejbreferences</display-name>
+  <description>Enterprise application showing EJB3 referencing EJB2.1 and vice versa</description>
+  <module>
+    <web>
+      <web-uri>jboss-ejb3-tutorial-reference21_30_webapp.war</web-uri>
+      <context-root>/jboss-ejb3-tutorial-reference21_30_webapp</context-root>
+    </web>
+  </module>
+  <module>
+    <ejb>jboss-ejb3-tutorial-reference21_30_ejb3_app.jar</ejb>
+  </module>
+  <module>
+    <ejb>jboss-ejb3-tutorial-reference21_30_ejb21_app.jar</ejb>
+  </module>
+
+</application>

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/pom.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/pom.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  
+	<properties>
+		
+		<!-- This tutorial doesn't have to run standalone client, just deploy/undeploy is good for us. So
+		set the skip property -->
+		<jboss.ejb3.tutorial.client.skip>true</jboss.ejb3.tutorial.client.skip>
+		
+	  	<!--  Versions -->
+	    <version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb21_app>0.1.0-SNAPSHOT</version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb21_app>
+	    <version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb3_app>0.1.0-SNAPSHOT</version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb3_app>
+	    <version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_webapp>0.1.0-SNAPSHOT</version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_webapp>
+  	</properties>
+  	
+  
+   
+  <!-- Model Version -->
+  <modelVersion>4.0.0</modelVersion>
+  
+  <!-- 
+	Our parent will be jboss-ejb3-tutorial-common, which will provide
+	the framework for deploy/undeploy into AS  
+   -->
+  <parent>
+    <groupId>org.jboss.ejb3</groupId>
+    <artifactId>jboss-ejb3-tutorial-common</artifactId>
+    <version>0.1.0-SNAPSHOT</version>
+    <relativePath>../../common</relativePath>
+  </parent>
+
+  
+
+	
+  <artifactId>jboss-ejb3-tutorial-ejbreferences</artifactId>
+  <version>0.1.0-SNAPSHOT</version>
+  <packaging>ear</packaging>
+  <name>Enterprise application for referencing EJB2.1 with EJB3 and vice versa</name>
+  <url>http://labs.jboss.com/jbossejb3/</url>
+  <description>
+    Tutorial demonstrating how EJB2.1 and EJB3 can reference one another.
+  </description>
+  
+	
+  
+  
+	<!-- Dependencies -->
+	<dependencies>
+  		
+      
+      <dependency>
+            <groupId>org.jboss.ejb3</groupId>
+            <artifactId>jboss-ejb3-tutorial-reference21_30_ejb3_app</artifactId>
+            <version>${version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb3_app}</version>
+			<type>ejb</type>
+        </dependency>
+        <dependency>
+            <groupId>org.jboss.ejb3</groupId>
+            <artifactId>jboss-ejb3-tutorial-reference21_30_ejb21_app</artifactId>
+            <version>${version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb21_app}</version>
+			<type>ejb</type>
+        </dependency>
+         <dependency>
+            <groupId>org.jboss.ejb3</groupId>
+            <artifactId>jboss-ejb3-tutorial-reference21_30_webapp</artifactId>
+            <version>${version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_webapp}</version>
+			<type>war</type>
+        </dependency>
+      <dependency>
+            <groupId>org.jboss.jbossas</groupId>
+            <artifactId>jboss-as-client</artifactId>
+            <version>${version.org.jboss.jbossas_jboss-as-client}</version>
+            <type>pom</type>
+            <!--  The scope needs to be set to provided, or else
+            when the maven-ear-plugin tries to create an EAR, it includes
+            all the dependent jars in the EAR package and also runs into this 
+            error http://www.nabble.com/maven-ear-plugin%3A-Always-throws-%22Embedded-error%3A-Unknown-artifact-type-test-jar-%22-td21370128.html
+             -->
+            <scope>provided</scope>
+        </dependency>
+	</dependencies>	 
+
+
+	
+ 
+
+</project>


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/enterprise_app/pom.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/jndi.properties
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/jndi.properties	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/jndi.properties	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,3 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
+java.naming.provider.url=localhost


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/jndi.properties
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/log4j.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/log4j.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/log4j.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Log4j Configuration                                                  -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml 42968 2006-03-30 01:51:11Z bdecoste $ -->
+
+<!--
+   | 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"/>
+      <param name="Threshold" value="INFO"/>
+
+      <layout class="org.apache.log4j.PatternLayout">
+         <!-- The default pattern: Date Priority [Category] Messagen -->
+         <!--
+         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+         -->
+         <param name="ConversionPattern" value="%-5p %d{dd-MM HH:mm:ss,SSS} (%F:%M:%L)  -%m%n"/>
+      </layout>
+</appender>
+
+   <root>
+      <appender-ref ref="CONSOLE"/>
+   </root>
+
+</log4j:configuration>


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/log4j.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/pom.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/pom.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  
+
+  <properties>
+		
+	  	<!--  Versions -->
+	    
+	    <version.org.jboss.jbossas_jboss-as-client>5.0.0.GA</version.org.jboss.jbossas_jboss-as-client>
+  	</properties>
+   
+  <!-- Model Version -->
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.jboss.ejb3</groupId>
+    <artifactId>jboss-ejb3-tutorial-parent</artifactId>
+    <version>0.1.0-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+  
+
+
+  <artifactId>jboss-ejb3-tutorial-reference21_30</artifactId>
+  <version>0.1.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
+  <name>Referencing EJB2.1 with EJB3 and vice versa</name>
+  <url>http://labs.jboss.com/jbossejb3/</url>
+  <description>
+    Tutorial demonstrating how EJB2.1 and EJB3 can reference one another.
+  </description>
+  
+  <modules>
+  	<module>ejb21_app</module>
+   	<module>ejb3_app</module>
+   	<module>webapp</module>
+  	<module>enterprise_app</module>  
+  </modules>
+ 
+ 	<!-- Dependencies -->
+	<dependencies>
+  		
+      
+      <dependency>
+            <groupId>org.jboss.jbossas</groupId>
+            <artifactId>jboss-as-client</artifactId>
+            <version>${version.org.jboss.jbossas_jboss-as-client}</version>
+            <type>pom</type>
+           
+        </dependency>
+      
+  	
+	</dependencies>
+  
+
+</project>


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/pom.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/pom.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/pom.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+	<properties>
+		
+	  	<!--  Versions -->
+	    <version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb21_app>0.1.0-SNAPSHOT</version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb21_app>
+	    <version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb3_app>0.1.0-SNAPSHOT</version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb3_app>
+	
+  	</properties>
+
+	<!-- Model Version -->
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.jboss.ejb3</groupId>
+		<artifactId>jboss-ejb3-tutorial-reference21_30
+		</artifactId>
+		<version>0.1.0-SNAPSHOT</version>
+		<relativePath>../</relativePath>
+	</parent>
+
+
+
+
+	<artifactId>jboss-ejb3-tutorial-reference21_30_webapp
+	</artifactId>
+	<version>0.1.0-SNAPSHOT</version>
+	<packaging>war</packaging>
+	<name>Web application for "reference21_30" tutorial</name>
+	<url>http://labs.jboss.com/jbossejb3/
+	</url>
+	<description>
+		An sample web application to be used in "reference21_30" tutorial
+	</description>
+
+
+
+	<dependencies>
+		<dependency>
+	            <groupId>org.jboss.ejb3</groupId>
+	            <artifactId>jboss-ejb3-tutorial-reference21_30_ejb3_app</artifactId>
+	            <version>${version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb3_app}</version>
+	            <scope>provided</scope>
+		</dependency>
+	        
+		<dependency>
+	            <groupId>org.jboss.ejb3</groupId>
+	            <artifactId>jboss-ejb3-tutorial-reference21_30_ejb21_app</artifactId>
+	            <version>${version.org.jboss.ejb3_jboss-ejb3-tutorial-reference21_30_ejb21_app}</version>
+	            <scope>provided</scope>
+	        </dependency>
+	        
+	    <dependency>
+            <groupId>org.jboss.jbossas</groupId>
+            <artifactId>jboss-as-client</artifactId>
+            <version>${version.org.jboss.jbossas_jboss-as-client}</version>
+            <type>pom</type>
+            <scope>provided</scope>
+        </dependency>
+
+	</dependencies>
+
+</project>


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/pom.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/org/jboss/tutorial/reference21_30/servlet/EJBReferenceServlet.java
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/org/jboss/tutorial/reference21_30/servlet/EJBReferenceServlet.java	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/java/org/jboss/tutorial/reference21_30/servlet/EJBReferenceServlet.java	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.reference21_30.servlet;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jboss.tutorial.reference21_30.bean.Stateless2;
+import org.jboss.tutorial.reference21_30.bean.Stateless2Home;
+import org.jboss.tutorial.reference21_30.bean.Stateless3;
+
+/**
+ * EJBReferenceServlet
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class EJBReferenceServlet extends HttpServlet
+{
+
+   /**
+    * Default constructor
+    */
+   public EJBReferenceServlet()
+   {
+
+   }
+
+   protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
+   {
+      accessReferences(req, resp);
+   }
+
+   protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
+   {
+      accessReferences(req, resp);
+   }
+   
+   private void accessReferences(HttpServletRequest req, HttpServletResponse resp) 
+   {
+      try {
+         Context ctx = new InitialContext();
+         
+         System.out.println("Testing EJB3.0 references to EJB2.x");
+         Stateless3 test3 = (Stateless3)ctx.lookup("Stateless3");
+         test3.testAccess();
+         
+         System.out.println("Testing EJB2.x references to EJB3.0");
+         Stateless2Home home = (Stateless2Home)ctx.lookup("Stateless2");
+         Stateless2 test2 = home.create();
+         test2.testAccess();
+         
+         System.out.println("Succeeded");
+         
+         printMessage(resp, "Successfully referenced EJB3 from EJB2.1 and vice versa");
+         
+      } catch (Exception e) {
+
+         throw new RuntimeException("ERROR while accessing the referencing EJBs - ",e);
+      }
+   }
+   
+   private void printMessage(HttpServletResponse resp, String msg) throws IOException
+   {
+      resp.setContentType("text/html");
+      PrintWriter writer = resp.getWriter();
+      writer.println("<html>");
+      writer.println("<body>");
+      writer.println("<h1> " + msg + "</h1>");
+      writer.println("</body");
+      writer.println("</html>");
+   }
+}

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/WEB-INF/web.xml	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.5" 
+	xmlns="http://java.sun.com/xml/ns/javaee" 
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+
+   <description>EJB3 Injection in Servlet tutorial</description>
+
+   <!-- ### Servlets -->
+   <servlet>
+      <servlet-name>EJBReferenceServlet</servlet-name>
+      <servlet-class>org.jboss.tutorial.reference21_30.servlet.EJBReferenceServlet</servlet-class>
+   </servlet>
+
+   <!-- The servlet and jsp page mappings -->
+   <servlet-mapping>
+      <servlet-name>EJBReferenceServlet</servlet-name>
+      <url-pattern>/TestEJBReference</url-pattern>
+   </servlet-mapping>
+
+	<welcome-file-list>
+		<welcome-file>index.html</welcome-file>
+	</welcome-file-list>
+</web-app>


Property changes on: projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/index.html
===================================================================
--- projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/index.html	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/reference21_30/webapp/src/main/webapp/index.html	2009-01-16 15:22:26 UTC (rev 82983)
@@ -0,0 +1,11 @@
+<html>
+	<body>
+		<form action="TestEJBReference" method="post">
+			Click on the button to test the references between EJB2.1 and EJB3.
+			<br/>
+			<input type="submit" name="test" value="Test">
+
+		</form>
+	</body>
+
+</html>




More information about the jboss-cvs-commits mailing list