[jboss-cvs] JBossAS SVN: r82541 - in projects/ejb3/trunk/docs/tutorial: mdb_deployment_descriptor and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 24 06:46:33 EST 2008
Author: jaikiran
Date: 2008-12-24 06:46:32 -0500 (Wed, 24 Dec 2008)
New Revision: 82541
Added:
projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/
projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/META-INF/queue-example-service.xml
projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/pom.xml
Modified:
projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/META-INF/jboss.xml
projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/build.xml
Log:
EJBTHREE-1607 Working version of the Message Driven Beans with deployment descriptors, for JBoss-5 GA
Copied: projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor (from rev 82032, projects/oldstuff/ejb3/docs/tutorial/mdb_deployment_descriptor)
Modified: projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/META-INF/jboss.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/mdb_deployment_descriptor/META-INF/jboss.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/META-INF/jboss.xml 2008-12-24 11:46:32 UTC (rev 82541)
@@ -1,10 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<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
- http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
- version="3.0">
+<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>
<message-driven>
Added: projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/META-INF/queue-example-service.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/META-INF/queue-example-service.xml (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/META-INF/queue-example-service.xml 2008-12-24 11:46:32 UTC (rev 82541)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=tutorial"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <attribute name="JNDIName">queue/tutorial/example</attribute>
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+
+</server>
\ No newline at end of file
Property changes on: projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/META-INF/queue-example-service.xml
___________________________________________________________________
Name: svn:executable
+ *
Modified: projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/build.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/mdb_deployment_descriptor/build.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/build.xml 2008-12-24 11:46:32 UTC (rev 82541)
@@ -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-mdb_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,9 +58,8 @@
<include name="META-INF/*.xml"/>
</fileset>
</jar>
- <copy file="queue-example-service.xml" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
- <sleep seconds="5"/>
- <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">
@@ -84,8 +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/queue-example-service.xml"/>
+ <delete file="${jboss.home}/server/${jboss.server.config}/deploy/${build.artifact}"/>
</target>
Added: projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/pom.xml (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/pom.xml 2008-12-24 11:46:32 UTC (rev 82541)
@@ -0,0 +1,35 @@
+<?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.mdb_deployment_descriptor.client.Client</ejb3.tutorial.client>
+ </properties>
+
+
+ <artifactId>jboss-ejb3-tutorial-mdb_with-deployment-descriptor</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>EJB3 MDB with deployment descriptors</name>
+ <url>http://labs.jboss.com/jbossejb3/</url>
+ <description>
+ Tutorial about Message Driven Beans in EJB3, using deployment descriptors
+ </description>
+
+
+</project>
Property changes on: projects/ejb3/trunk/docs/tutorial/mdb_deployment_descriptor/pom.xml
___________________________________________________________________
Name: svn:executable
+ *
More information about the jboss-cvs-commits
mailing list