[jboss-cvs] JBossAS SVN: r82517 - in projects/ejb3/trunk/docs/tutorial: stateful_deployment_descriptor and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 23 07:58:17 EST 2008
Author: jaikiran
Date: 2008-12-23 07:58:17 -0500 (Tue, 23 Dec 2008)
New Revision: 82517
Added:
projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/
projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/pom.xml
Modified:
projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/META-INF/ejb-jar.xml
projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/META-INF/jboss.xml
projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/build.xml
Log:
Working version of Stateful Session EJB3 beans with deployment descriptors in JBoss-5 GA
Copied: projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor (from rev 82032, projects/oldstuff/ejb3/docs/tutorial/stateful_deployment_descriptor)
Modified: projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/META-INF/ejb-jar.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/stateful_deployment_descriptor/META-INF/ejb-jar.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/META-INF/ejb-jar.xml 2008-12-23 12:58:17 UTC (rev 82517)
@@ -10,7 +10,7 @@
<enterprise-beans>
<session>
<ejb-name>ShoppingCart</ejb-name>
- <remote>org.jboss.tutorial.stateful_deployment_descriptor.bean.ShoppingCart</remote>
+ <business-remote>org.jboss.tutorial.stateful_deployment_descriptor.bean.ShoppingCart</business-remote>
<ejb-class>org.jboss.tutorial.stateful_deployment_descriptor.bean.ShoppingCartBean</ejb-class>
<session-type>Stateful</session-type>
<remove-method>
Modified: projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/META-INF/jboss.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/stateful_deployment_descriptor/META-INF/jboss.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/META-INF/jboss.xml 2008-12-23 12:58:17 UTC (rev 82517)
@@ -1,10 +1,13 @@
<?xml version="1.0"?>
-<jboss
- xmlns="http://www.jboss.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+
+<!-- FIXME: Does not work right now. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=146304
+
+ jboss xmlns="http://www.jboss.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/j2ee/schema
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
- version="3.0">
+ version="5.0"> -->
+<jboss>
<enterprise-beans>
<session>
<ejb-name>ShoppingCart</ejb-name>
Modified: projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/build.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/stateful_deployment_descriptor/build.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/build.xml 2008-12-23 12:58:17 UTC (rev 82517)
@@ -8,26 +8,20 @@
<property environment="env"/>
<property name="src.dir" value="${basedir}/src"/>
- <property name="jboss.home" value="${env.JBOSS_HOME}"/> <property name="jboss.server.config" value="all"/>
+ <property name="jboss.home" value="${env.JBOSS_HOME}"/>
+ <property name="jboss.server.config" value="default"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="build.classes.dir" value="${build.dir}/classes"/>
+ <property name="build.artifact" value="jboss-ejb3-tutorial-stateful-with_deployment_descriptor.jar"/>
<!-- Build classpath -->
<path id="classpath">
<!-- So that we can get jndi.properties for InitialContext -->
<pathelement location="${basedir}"/>
- <fileset dir="${jboss.home}/lib">
- <include name="**/*.jar"/>
+ <!-- Only the jbossall-client.jar should ideally be sufficient -->
+ <fileset dir="${jboss.home}/client">
+ <include name="**/jbossall-client.jar"/>
</fileset>
- <fileset dir="${jboss.home}/server/${jboss.server.config}/lib">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/server/${jboss.server.config}/deploy/ejb3.deployer">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/server/${jboss.server.config}/deploy/jboss-aop-jdk50.deployer">
- <include name="*.jar"/>
- </fileset>
<pathelement location="${build.classes.dir}"/>
</path>
@@ -56,7 +50,7 @@
</target>
<target name="ejbjar" depends="compile">
- <jar jarfile="build/tutorial.jar">
+ <jar jarfile="build/${build.artifact}">
<fileset dir="${build.classes.dir}">
<include name="**/*.class"/>
</fileset>
@@ -64,7 +58,7 @@
<include name="META-INF/*.xml"/>
</fileset>
</jar>
- <copy file="build/tutorial.jar" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
+ <copy file="build/${build.artifact}" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
</target>
<target name="run">
@@ -82,7 +76,7 @@
<target name="clean">
<delete dir="${build.dir}"/>
- <delete file="${jboss.home}/server/${jboss.server.config}/deploy/tutorial.jar"/>
+ <delete file="${jboss.home}/server/${jboss.server.config}/deploy/${build.artifact}"/>
</target>
Added: projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/pom.xml (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/pom.xml 2008-12-23 12:58:17 UTC (rev 82517)
@@ -0,0 +1,36 @@
+<?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-common</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <relativePath>../common/</relativePath>
+ </parent>
+
+ <properties>
+ <ejb3.tutorial.client>org.jboss.tutorial.stateful_deployment_descriptor.client.Client</ejb3.tutorial.client>
+ </properties>
+
+
+ <artifactId>jboss-ejb3-tutorial-stateful-with_deployment_descriptor</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>EJB3 Stateful Session Beans with deployment descriptors</name>
+ <url>http://labs.jboss.com/jbossejb3/</url>
+ <description>
+ Tutorial demonstrating the usage of deployment descriptors for creating
+ EJB3 Stateful Session Beans
+ </description>
+
+
+</project>
Property changes on: projects/ejb3/trunk/docs/tutorial/stateful_deployment_descriptor/pom.xml
___________________________________________________________________
Name: svn:executable
+ *
More information about the jboss-cvs-commits
mailing list