[jboss-cvs] JBossAS SVN: r82557 - in projects/ejb3/trunk/docs/tutorial: interceptor and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 29 05:01:35 EST 2008
Author: jaikiran
Date: 2008-12-29 05:01:35 -0500 (Mon, 29 Dec 2008)
New Revision: 82557
Added:
projects/ejb3/trunk/docs/tutorial/interceptor/
projects/ejb3/trunk/docs/tutorial/interceptor/pom.xml
projects/ejb3/trunk/docs/tutorial/interceptor/queue-example-service.xml
Removed:
projects/ejb3/trunk/docs/tutorial/interceptor/queue-example-service.xml
Modified:
projects/ejb3/trunk/docs/tutorial/interceptor/META-INF/ejb-jar.xml
projects/ejb3/trunk/docs/tutorial/interceptor/META-INF/persistence.xml
projects/ejb3/trunk/docs/tutorial/interceptor/build.xml
projects/ejb3/trunk/docs/tutorial/interceptor/src/org/jboss/tutorial/interceptor/bean/AccountsMDB.java
projects/ejb3/trunk/docs/tutorial/interceptor/src/org/jboss/tutorial/interceptor/bean/EmailMDB.java
Log:
EJBTHREE-1607 Interceptor tutorial for JBoss-5 GA
Copied: projects/ejb3/trunk/docs/tutorial/interceptor (from rev 82032, projects/oldstuff/ejb3/docs/tutorial/interceptor)
Modified: projects/ejb3/trunk/docs/tutorial/interceptor/META-INF/ejb-jar.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/interceptor/META-INF/ejb-jar.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/interceptor/META-INF/ejb-jar.xml 2008-12-29 10:01:35 UTC (rev 82557)
@@ -39,19 +39,19 @@
</interceptor-binding>
<!-- Class interceptor that will apply to all methods for EmailSystemBean -->
<interceptor-binding>
- <ejb-name>org.jboss.tutorial.interceptor.bean.EmailSystemBean</ejb-name>
+ <ejb-name>EmailSystemBean</ejb-name>
<interceptor-class>org.jboss.tutorial.interceptor.bean.OtherInterceptor</interceptor-class>
</interceptor-binding>
<!-- Method interceptor will apply to sendBookingCancellationMessage for EmailSystemBean -->
<interceptor-binding>
- <ejb-name>org.jboss.tutorial.interceptor.bean.EmailSystemBean</ejb-name>
+ <ejb-name>EmailSystemBean</ejb-name>
<interceptor-class>org.jboss.tutorial.interceptor.bean.AccountsCancelInterceptor</interceptor-class>
<method>
<method-name>sendBookingCancellationMessage</method-name>
</method>
</interceptor-binding>
<interceptor-binding>
- <ejb-name>org.jboss.tutorial.interceptor.bean.EmailSystemBean</ejb-name>
+ <ejb-name>EmailSystemBean</ejb-name>
<exclude-default-interceptors>true</exclude-default-interceptors>
<exclude-class-interceptors>true</exclude-class-interceptors>
<method>
@@ -59,7 +59,7 @@
</method>
</interceptor-binding>
<interceptor-binding>
- <ejb-name>org.jboss.tutorial.interceptor.bean.EmailSystemBean</ejb-name>
+ <ejb-name>EmailSystemBean</ejb-name>
<interceptor-order>
<interceptor-class>org.jboss.tutorial.interceptor.bean.AccountsCancelInterceptor</interceptor-class>
<interceptor-class>org.jboss.tutorial.interceptor.bean.DefaultInterceptor</interceptor-class>
Modified: projects/ejb3/trunk/docs/tutorial/interceptor/META-INF/persistence.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/interceptor/META-INF/persistence.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/interceptor/META-INF/persistence.xml 2008-12-29 10:01:35 UTC (rev 82557)
@@ -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/interceptor/build.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/interceptor/build.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/interceptor/build.xml 2008-12-29 10:01:35 UTC (rev 82557)
@@ -8,27 +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-interceptor.jar"/>
- <!-- Build classpath -->
+ <!-- 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>
@@ -57,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>
@@ -65,7 +58,9 @@
<include name="META-INF/*.xml"/>
</fileset>
</jar>
- <copy file="build/tutorial.jar" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
+ <copy file="${basedir}/queue-example-service.xml" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
+ <sleep seconds="8"/>
+ <copy file="build/${build.artifact}" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
</target>
<target name="run" depends="ejbjar">
@@ -83,7 +78,8 @@
<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}"/>
+ <delete file="${jboss.home}/server/${jboss.server.config}/deploy/queue-example-service.xml"/>
</target>
Added: projects/ejb3/trunk/docs/tutorial/interceptor/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/interceptor/pom.xml (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/interceptor/pom.xml 2008-12-29 10:01:35 UTC (rev 82557)
@@ -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>
+ <jboss.ejb3.tutorial.deployables>${basedir}/queue-example-service.xml,${pom.build.directory}/${pom.artifactId}.${pom.packaging}</jboss.ejb3.tutorial.deployables>
+ <ejb3.tutorial.client>org.jboss.tutorial.interceptor.client.Client</ejb3.tutorial.client>
+ </properties>
+
+
+ <artifactId>jboss-ejb3-tutorial-interceptor</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>EJB3 Interceptors</name>
+ <url>http://labs.jboss.com/jbossejb3/</url>
+ <description>
+ Tutorial about Interceptors in EJB3
+ </description>
+
+
+</project>
Property changes on: projects/ejb3/trunk/docs/tutorial/interceptor/pom.xml
___________________________________________________________________
Name: svn:executable
+ *
Deleted: projects/ejb3/trunk/docs/tutorial/interceptor/queue-example-service.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/interceptor/queue-example-service.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/interceptor/queue-example-service.xml 2008-12-29 10:01:35 UTC (rev 82557)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
- <mbean code="org.jboss.mq.server.jmx.Queue"
- name="jboss.mq.destination:service=Queue,name=email">
- <attribute name="JNDIName">queue/tutorial/email</attribute>
- <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
- </mbean>
- <mbean code="org.jboss.mq.server.jmx.Queue"
- name="jboss.mq.destination:service=Queue,name=trace">
- <attribute name="JNDIName">queue/tutorial/accounts</attribute>
- <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
- </mbean>
-
-
-</server>
Added: projects/ejb3/trunk/docs/tutorial/interceptor/queue-example-service.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/interceptor/queue-example-service.xml (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/interceptor/queue-example-service.xml 2008-12-29 10:01:35 UTC (rev 82557)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=email"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <attribute name="JNDIName">queue/tutorial/email</attribute>
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=trace"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <attribute name="JNDIName">queue/tutorial/accounts</attribute>
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+
+</server>
Property changes on: projects/ejb3/trunk/docs/tutorial/interceptor/queue-example-service.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Modified: projects/ejb3/trunk/docs/tutorial/interceptor/src/org/jboss/tutorial/interceptor/bean/AccountsMDB.java
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/interceptor/src/org/jboss/tutorial/interceptor/bean/AccountsMDB.java 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/interceptor/src/org/jboss/tutorial/interceptor/bean/AccountsMDB.java 2008-12-29 10:01:35 UTC (rev 82557)
@@ -27,6 +27,7 @@
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
+import org.jboss.ejb3.annotation.Depends;
/**
*
Modified: projects/ejb3/trunk/docs/tutorial/interceptor/src/org/jboss/tutorial/interceptor/bean/EmailMDB.java
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/interceptor/src/org/jboss/tutorial/interceptor/bean/EmailMDB.java 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/interceptor/src/org/jboss/tutorial/interceptor/bean/EmailMDB.java 2008-12-29 10:01:35 UTC (rev 82557)
@@ -28,6 +28,7 @@
import javax.ejb.ActivationConfigProperty;
import javax.jms.Message;
import javax.jms.MessageListener;
+import org.jboss.ejb3.annotation.Depends;
@MessageDriven(activationConfig =
{
More information about the jboss-cvs-commits
mailing list