[jboss-cvs] JBossAS SVN: r82508 - in projects/ejb3/trunk/docs/tutorial: secondary and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 23 05:58:23 EST 2008
Author: jaikiran
Date: 2008-12-23 05:58:23 -0500 (Tue, 23 Dec 2008)
New Revision: 82508
Added:
projects/ejb3/trunk/docs/tutorial/secondary/
projects/ejb3/trunk/docs/tutorial/secondary/pom.xml
Modified:
projects/ejb3/trunk/docs/tutorial/secondary/META-INF/persistence.xml
projects/ejb3/trunk/docs/tutorial/secondary/build.xml
Log:
Initial working version of SecondaryTable in EJB3 Entities tutorial, for JBoss-5 GA
Copied: projects/ejb3/trunk/docs/tutorial/secondary (from rev 82032, projects/oldstuff/ejb3/docs/tutorial/secondary)
Modified: projects/ejb3/trunk/docs/tutorial/secondary/META-INF/persistence.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/secondary/META-INF/persistence.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/secondary/META-INF/persistence.xml 2008-12-23 10:58:23 UTC (rev 82508)
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<persistence>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+ version="1.0">
+
<persistence-unit name="tempdb">
<jta-data-source>java:/DefaultDS</jta-data-source>
<properties>
Modified: projects/ejb3/trunk/docs/tutorial/secondary/build.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/secondary/build.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/secondary/build.xml 2008-12-23 10:58:23 UTC (rev 82508)
@@ -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-entity-secondarytable.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" depends="ejbjar">
@@ -83,7 +77,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/secondary/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/secondary/pom.xml (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/secondary/pom.xml 2008-12-23 10:58:23 UTC (rev 82508)
@@ -0,0 +1,46 @@
+<?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.secondary.client.Client</ejb3.tutorial.client>
+ <!-- Versions -->
+ <version.org.hibernate_hibernate-core>[3.3.0.GA,)</version.org.hibernate_hibernate-core>
+ </properties>
+
+
+ <artifactId>jboss-ejb3-tutorial-entity-secondarytable</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>SecondaryTable for Entities in EJB3</name>
+ <url>http://labs.jboss.com/jbossejb3/</url>
+ <description>
+ Tutorial demonstrating the use of SecondaryTable in EJB3 Entities
+ </description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ <version>${version.org.hibernate_hibernate-core}</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+
+</project>
Property changes on: projects/ejb3/trunk/docs/tutorial/secondary/pom.xml
___________________________________________________________________
Name: svn:executable
+ *
More information about the jboss-cvs-commits
mailing list