[jboss-cvs] JBossAS SVN: r82547 - in projects/ejb3/trunk/docs/tutorial: consumer_deployment_descriptor and 3 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Dec 26 02:02:11 EST 2008


Author: jaikiran
Date: 2008-12-26 02:02:11 -0500 (Fri, 26 Dec 2008)
New Revision: 82547

Added:
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF/
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF/queue-example-service.xml
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/build.xml
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.html
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.wiki
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/jndi.properties
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/log4j.xml
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/pom.xml
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/
Removed:
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF/
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/build.xml
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.html
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.wiki
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/jndi.properties
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/log4j.xml
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/queue-example-service.xml
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/
Modified:
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF/jboss.xml
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleConsumerBean.java
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducer.java
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerLocal.java
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerRemote.java
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/TesterBean.java
   projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/client/Client.java
Log:
Working version of Consumer tutorial configured through deployment descriptors on JBoss-5 GA

Copied: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor (from rev 82032, projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor)

Copied: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF (from rev 82546, projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/META-INF)

Modified: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF/jboss.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/META-INF/jboss.xml	2008-12-24 23:43:57 UTC (rev 82546)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF/jboss.xml	2008-12-26 07:02:11 UTC (rev 82547)
@@ -1,10 +1,13 @@
 <?xml version="1.0"?>
 <jboss
         xmlns="http://www.jboss.com/xml/ns/javaee"
+        xmlns:jee="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
+        xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
                             http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
         version="3.0">
+
+
 	<enterprise-beans>
 		<consumer>
         	<ejb-name>ExampleConsumer</ejb-name>
@@ -32,6 +35,7 @@
 	      		</method>
 				<delivery>NonPersistent</delivery>
          	</message-properties>
+         	<depends>jboss.messaging.destination:service=Queue,name=tutorial</depends>
        	</consumer>
 	</enterprise-beans>
 </jboss>

Added: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF/queue-example-service.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF/queue-example-service.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/META-INF/queue-example-service.xml	2008-12-26 07:02:11 UTC (rev 82547)
@@ -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/consumer_deployment_descriptor/META-INF/queue-example-service.xml
___________________________________________________________________
Name: svn:executable
   + *

Deleted: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/build.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/build.xml	2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/build.xml	2008-12-26 07:02:11 UTC (rev 82547)
@@ -1,93 +0,0 @@
-<?xml version="1.0"?>
-
-<!-- ======================================================================= -->
-<!-- JBoss build file                                                       -->
-<!-- ======================================================================= -->
-
-<project name="JBoss" default="ejbjar" basedir=".">
-
-   <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="build.dir" value="${basedir}/build"/>
-   <property name="build.classes.dir" value="${build.dir}/classes"/>
-
-   <!-- 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"/>
-      </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>
-
-   <property name="build.classpath" refid="classpath"/>
-
-   <!-- =================================================================== -->
-   <!-- Prepares the build directory                                        -->
-   <!-- =================================================================== -->
-   <target name="prepare">
-      <mkdir dir="${build.dir}"/>
-      <mkdir dir="${build.classes.dir}"/>
-   </target>
-
-   <!-- =================================================================== -->
-   <!-- Compiles the source code                                            -->
-   <!-- =================================================================== -->
-   <target name="compile" depends="prepare">
-      <javac srcdir="${src.dir}"
-         destdir="${build.classes.dir}"
-         debug="on"
-         deprecation="on"
-         optimize="off"
-         includes="**">
-         <classpath refid="classpath"/>
-      </javac>
-   </target>
-
-   <target name="ejbjar" depends="compile">
-      <jar jarfile="build/tutorial.jar">
-         <fileset dir="${build.classes.dir}">
-            <include name="**/*.class"/>
-         </fileset>
-         <fileset dir=".">
-            <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"/>
-   </target>
-
-   <target name="run" depends="ejbjar">
-      <java classname="org.jboss.tutorial.consumer_deployment_descriptor.client.Client" fork="yes" dir=".">
-         <classpath refid="classpath"/>
-      </java>
-   </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="${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"/>
-   </target>
-
-
-</project>
-

Copied: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/build.xml (from rev 82546, projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/build.xml)
===================================================================
--- projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/build.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/build.xml	2008-12-26 07:02:11 UTC (rev 82547)
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+
+<!-- ======================================================================= -->
+<!-- JBoss build file                                                       -->
+<!-- ======================================================================= -->
+
+<project name="JBoss" default="ejbjar" basedir=".">
+
+   <property environment="env"/>
+   <property name="src.dir" value="${basedir}/src"/>
+   <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-consumer_with-deployment-descriptor.jar"/>
+
+   <!-- 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="${build.classes.dir}"/>
+   </path>
+
+   <property name="build.classpath" refid="classpath"/>
+
+   <!-- =================================================================== -->
+   <!-- Prepares the build directory                                        -->
+   <!-- =================================================================== -->
+   <target name="prepare">
+      <mkdir dir="${build.dir}"/>
+      <mkdir dir="${build.classes.dir}"/>
+   </target>
+
+   <!-- =================================================================== -->
+   <!-- Compiles the source code                                            -->
+   <!-- =================================================================== -->
+   <target name="compile" depends="prepare">
+      <javac srcdir="${src.dir}"
+         destdir="${build.classes.dir}"
+         debug="on"
+         deprecation="on"
+         optimize="off"
+         includes="**">
+         <classpath refid="classpath"/>
+      </javac>
+   </target>
+
+   <target name="ejbjar" depends="compile">
+      <jar jarfile="build/${build.artifact}">
+         <fileset dir="${build.classes.dir}">
+            <include name="**/*.class"/>
+         </fileset>
+         <fileset dir=".">
+            <include name="META-INF/*.xml"/>
+         </fileset>
+      </jar>
+      <copy file="build/${build.artifact}" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
+   </target>
+
+   <target name="run" depends="ejbjar">
+      <java classname="org.jboss.tutorial.consumer_deployment_descriptor.client.Client" fork="yes" dir=".">
+         <classpath refid="classpath"/>
+      </java>
+   </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="${build.dir}"/>
+      <delete file="${jboss.home}/server/${jboss.server.config}/deploy/${build.artifact}"/>
+
+   </target>
+
+
+</project>
+

Deleted: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.html
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/consumer.html	2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.html	2008-12-26 07:02:11 UTC (rev 82547)
@@ -1,123 +0,0 @@
-<html>
-<body>
-<p>
-<h2>Message Driven POJOs via the deployment descriptor</h2>
-
-</p><p>
-We are prototyping some possible extensions to MDBs to see if we can make things a little easier for development.  The idea is to give a message consumer (an MDB) a typed interface that message producers can send messages through.  Both the publisher and subscriber would be typed interfaces.
-</p><p>
-<h3>The model</h3>
-
-Message Driven POJOs will have the same model as Session beans.  A Consumer can be configured via a combination of annotations and via the
-jboss.xml deployment descriptor. This tutorial describes configuration via a deployment descriptor. Take a look at <a href="META-INF/jboss.xml">jboss.xml</a>.
-There is a bean class tagged as <tt>consumer</tt> that must implement one or more Producer interfaces.  Note the <tt>producer</tt> and <tt>local-producer</tt> tags.
-Just as a session bean is tagged as <tt>session</tt> and implements one or more <tt>remote</tt> or <tt>local</tt> interfaces.
-</p><p>
-It might be best to look at a full example.
-</p><p>
-For each <tt>producer</tt> interface the Consumer implements, there will be a proxy that implements that Producer interface registered in JNDI under the FQN of
- that Producer interface.
-</p><p>
-<h3>Simple example</h3>
-
-</p><p>
-Let's do a simple example.  First define the consumer. Take a look at <a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleConsumerBean.java">ExampleConsumerBean.java</a>.
-This is our bean class and defines the methods than can receive JMS messages. The bean class implements three interfaces which are configured as Producers in <tt>jboss.xml</tt>. These interfaces
-will be used by clients (JMS publishers) to send messages to the Consumer via JMS.Note that <a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java">ExampleProducerXA.java</a>
-is tagged with <tt>connection-factory</tt> to indicate the jndi name of the XA transaction factory.
-</p><p>
-<h3>The client</h3>
-
-</p><p>
-Let's now take a look at the client (really the producer of the actual messages) <a href="src/org/jboss/tutorial/consumer_deployment_descriptor/client/Client.java">Client.java</a>
-</p><p>
-When the Consumer is deployed by the EJB3 container, it looks for all of its Producer interfaces and registers each one of them in JNDI under their FQN class name.  The client code above looks
-up the <a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerRemote.java">ExampleProducerRemote.java</a> interface in JNDI and accesses the local interfaces (
-<a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerLocal.java">ExampleProducerLocal.java</a>,
-<a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java">ExampleProducerXA.java</a>) through the Stateless Session bean 
-<a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/TesterBean.java"">TesterBean.java</a>.
-Each producer implements the <a href="http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-ejb3/src/main/org/jboss/ejb3/mdb/ProducerObject.java?rev=1.1&view=markup">ProducerObject</a>.
-The client typecasts the <tt>ExampleProducerRemote</tt> to the ProducerObject.
-It then gets a <a href="http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-ejb3/src/main/org/jboss/ejb3/mdb/ProducerManager.java?rev=1.1&view=markup">ProducerManager</a> that manages the
-JMS connection for this proxy.  To start being able to send messages to the Queue, the client calls <tt>connect()</tt> on the manager.
-It then can successfully call methods on the remote Producer.  When it calls <tt>method1()</tt> this method call is converted into a JMS message and published to the Queue of the Consumer.
-The consumer will receive the message and invoke its <tt>method1</tt> method.
-</p><p>
-<h3>Producer default values</h3>
-
-</p><p>
-The proxy registered in JNDI will know how to contact the JMS Queue/Topic to publish messages.  You can specify explicitly through the <tt>connnection-factory</tt> tag what the JMS
-ConnectionFactory JNDI name is, or you can rely on defaults.
-</p><p>
-The default value is "ConnectionFactory" for the ConnectionFactory JNDI name.
-</p><p>
-If you additionally tag the producer as <tt>local-producer</tt> instead of <tt>producer</tt>, then "java:/ConnectionFactory" will be used.
-</p><p>
-<h3>local-producer</h3>
-
-</p><p>
-If you tag a producer as <tt>local-producer</tt>, the proxy will lookup the connection factory via the default InitialContext when connect() is called.   Otherwise, the ConnectFactory
-reference will be embedded directly within the proxy.
-</p><p>
-<h3>message-properties</h3>
-
-</p><p>
-The methods defined in a Producer are turned into JMS messages.  The default message properties are a Time To Live of 0, a Priority of 4, and a delivery mode of PERSISTENT.  You can override
-these default values using the <tt>message-properties</tt> tag. This tag can be specified per method or wildcarded for all methods in the Producer interface.
-</p><p>
-So, in the above example, <tt>method1()</tt> uses the default message properties, and <tt>method2()</tt> overrides the defaults via the <tt>message-properties</tt> tag.
-</p><p>
-<h3>Obtaining the current message</h3>
-
-</p><p>
-Sometimes you may need to access the real JMS message.  Maybe you need to obtain the replyTo destination or set an acknowledgement or something.  You can
-obtain it by using the <tt>current-message</tt> tag.
-</p><p>
-This tag will inject the current JMS message into your Consumer bean before your target method is invoked.
-</p><p>
-<h3>FEEDBACK NEEDED</h3>
-
-</p><p>
-Please provide feedback to this proposed feature on our <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&t=60294">forum</a>.  We would really like feedback on this feature.
-</p><p>
-<h3>Building and Running</h3>
-
-To build and run the example, make sure you have <tt>ejb3.deployer</tt> installed in JBoss 4.0.x and have JBoss running.  See the reference manual on how to install EJB 3.0.  
-<pre>
-Unix:    $ export JBOSS_HOME=&lt;where your jboss 4.0 distribution is&gt;
-Windows: $ set JBOSS_HOME=&lt;where your jboss 4.0 distribution is&gt;
-$ ant
-$ ant run
-
-</pre>
-</p><p>
-Look in the console window to determine that the message was sent.
-</p><p>
-<pre>
-12:25:59,734 INFO  [Ejb3Module] found EJB3 consumer bean: org.jboss.tutorial.consumer.bean.ExampleConsumerBean
-12:25:59,734 INFO  [Ejb3Module] found EJB3 stateless session bean: org.jboss.tutorial.consumer.bean.TesterBean
-12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerRemote
-12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerLocal
-12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerXA
-12:25:59,812 INFO  [ProxyDeployer] no declared remote bindings
-12:25:59,812 INFO  [ProxyDeployer] there is remote interfaces
-12:25:59,812 INFO  [ProxyDeployer] default remote binding has jndiName of org.jboss.tutorial.consumer.bean.Tester
-12:25:59,828 INFO  [EJB3Deployer] Deployed: file[the deployment]
-12:26:09,000 INFO  [STDOUT] method1(Remote method1 called, 1)
-12:26:09,015 INFO  [STDOUT] method2: Remote method2 called
-12:26:09,015 INFO  [STDOUT] method2 key/val: great:ejb3
-12:26:09,015 INFO  [STDOUT] method2 key/val: hello:world
-12:26:09,109 INFO  [STDOUT] method1(testLocal, 1)
-12:26:09,125 INFO  [STDOUT] method2: testLocal2
-12:26:09,125 INFO  [STDOUT] method2 key/val: great:ejb3
-12:26:09,125 INFO  [STDOUT] method2 key/val: hello:world
-12:26:09,125 INFO  [STDOUT] end TESTXA **
-12:26:09,140 INFO  [STDOUT] method2: testXA2
-12:26:09,140 INFO  [STDOUT] method2 key/val: great:ejb3
-12:26:09,140 INFO  [STDOUT] method2 key/val: hello:world
-12:26:09,140 INFO  [STDOUT] method1(testXA, 1)
-</pre>
-</p><p>
-</p>
-</body>
-</html>

Copied: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.html (from rev 82546, projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/consumer.html)
===================================================================
--- projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.html	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.html	2008-12-26 07:02:11 UTC (rev 82547)
@@ -0,0 +1,123 @@
+<html>
+<body>
+<p>
+<h2>Message Driven POJOs via the deployment descriptor</h2>
+
+</p><p>
+We are prototyping some possible extensions to MDBs to see if we can make things a little easier for development.  The idea is to give a message consumer (an MDB) a typed interface that message producers can send messages through.  Both the publisher and subscriber would be typed interfaces.
+</p><p>
+<h3>The model</h3>
+
+Message Driven POJOs will have the same model as Session beans.  A Consumer can be configured via a combination of annotations and via the
+jboss.xml deployment descriptor. This tutorial describes configuration via a deployment descriptor. Take a look at <a href="META-INF/jboss.xml">jboss.xml</a>.
+There is a bean class tagged as <tt>consumer</tt> that must implement one or more Producer interfaces.  Note the <tt>producer</tt> and <tt>local-producer</tt> tags.
+Just as a session bean is tagged as <tt>session</tt> and implements one or more <tt>remote</tt> or <tt>local</tt> interfaces.
+</p><p>
+It might be best to look at a full example.
+</p><p>
+For each <tt>producer</tt> interface the Consumer implements, there will be a proxy that implements that Producer interface registered in JNDI under the FQN of
+ that Producer interface.
+</p><p>
+<h3>Simple example</h3>
+
+</p><p>
+Let's do a simple example.  First define the consumer. Take a look at <a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleConsumerBean.java">ExampleConsumerBean.java</a>.
+This is our bean class and defines the methods than can receive JMS messages. The bean class implements three interfaces which are configured as Producers in <tt>jboss.xml</tt>. These interfaces
+will be used by clients (JMS publishers) to send messages to the Consumer via JMS.Note that <a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java">ExampleProducerXA.java</a>
+is tagged with <tt>connection-factory</tt> to indicate the jndi name of the XA transaction factory.
+</p><p>
+<h3>The client</h3>
+
+</p><p>
+Let's now take a look at the client (really the producer of the actual messages) <a href="src/org/jboss/tutorial/consumer_deployment_descriptor/client/Client.java">Client.java</a>
+</p><p>
+When the Consumer is deployed by the EJB3 container, it looks for all of its Producer interfaces and registers each one of them in JNDI under their FQN class name.  The client code above looks
+up the <a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerRemote.java">ExampleProducerRemote.java</a> interface in JNDI and accesses the local interfaces (
+<a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerLocal.java">ExampleProducerLocal.java</a>,
+<a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java">ExampleProducerXA.java</a>) through the Stateless Session bean 
+<a href="src/org/jboss/tutorial/consumer_deployment_descriptor/bean/TesterBean.java"">TesterBean.java</a>.
+Each producer implements the <a href="http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-ejb3/src/main/org/jboss/ejb3/mdb/ProducerObject.java?rev=1.1&view=markup">ProducerObject</a>.
+The client typecasts the <tt>ExampleProducerRemote</tt> to the ProducerObject.
+It then gets a <a href="http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-ejb3/src/main/org/jboss/ejb3/mdb/ProducerManager.java?rev=1.1&view=markup">ProducerManager</a> that manages the
+JMS connection for this proxy.  To start being able to send messages to the Queue, the client calls <tt>connect()</tt> on the manager.
+It then can successfully call methods on the remote Producer.  When it calls <tt>method1()</tt> this method call is converted into a JMS message and published to the Queue of the Consumer.
+The consumer will receive the message and invoke its <tt>method1</tt> method.
+</p><p>
+<h3>Producer default values</h3>
+
+</p><p>
+The proxy registered in JNDI will know how to contact the JMS Queue/Topic to publish messages.  You can specify explicitly through the <tt>connnection-factory</tt> tag what the JMS
+ConnectionFactory JNDI name is, or you can rely on defaults.
+</p><p>
+The default value is "ConnectionFactory" for the ConnectionFactory JNDI name.
+</p><p>
+If you additionally tag the producer as <tt>local-producer</tt> instead of <tt>producer</tt>, then "java:/ConnectionFactory" will be used.
+</p><p>
+<h3>local-producer</h3>
+
+</p><p>
+If you tag a producer as <tt>local-producer</tt>, the proxy will lookup the connection factory via the default InitialContext when connect() is called.   Otherwise, the ConnectFactory
+reference will be embedded directly within the proxy.
+</p><p>
+<h3>message-properties</h3>
+
+</p><p>
+The methods defined in a Producer are turned into JMS messages.  The default message properties are a Time To Live of 0, a Priority of 4, and a delivery mode of PERSISTENT.  You can override
+these default values using the <tt>message-properties</tt> tag. This tag can be specified per method or wildcarded for all methods in the Producer interface.
+</p><p>
+So, in the above example, <tt>method1()</tt> uses the default message properties, and <tt>method2()</tt> overrides the defaults via the <tt>message-properties</tt> tag.
+</p><p>
+<h3>Obtaining the current message</h3>
+
+</p><p>
+Sometimes you may need to access the real JMS message.  Maybe you need to obtain the replyTo destination or set an acknowledgement or something.  You can
+obtain it by using the <tt>current-message</tt> tag.
+</p><p>
+This tag will inject the current JMS message into your Consumer bean before your target method is invoked.
+</p><p>
+<h3>FEEDBACK NEEDED</h3>
+
+</p><p>
+Please provide feedback to this proposed feature on our <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&t=60294">forum</a>.  We would really like feedback on this feature.
+</p><p>
+<h3>Building and Running</h3>
+
+To build and run the example, make sure you have <tt>ejb3.deployer</tt> installed in JBoss 4.0.x and have JBoss running.  See the reference manual on how to install EJB 3.0.  
+<pre>
+Unix:    $ export JBOSS_HOME=&lt;where your jboss 4.0 distribution is&gt;
+Windows: $ set JBOSS_HOME=&lt;where your jboss 4.0 distribution is&gt;
+$ ant
+$ ant run
+
+</pre>
+</p><p>
+Look in the console window to determine that the message was sent.
+</p><p>
+<pre>
+12:25:59,734 INFO  [Ejb3Module] found EJB3 consumer bean: org.jboss.tutorial.consumer.bean.ExampleConsumerBean
+12:25:59,734 INFO  [Ejb3Module] found EJB3 stateless session bean: org.jboss.tutorial.consumer.bean.TesterBean
+12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerRemote
+12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerLocal
+12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerXA
+12:25:59,812 INFO  [ProxyDeployer] no declared remote bindings
+12:25:59,812 INFO  [ProxyDeployer] there is remote interfaces
+12:25:59,812 INFO  [ProxyDeployer] default remote binding has jndiName of org.jboss.tutorial.consumer.bean.Tester
+12:25:59,828 INFO  [EJB3Deployer] Deployed: file[the deployment]
+12:26:09,000 INFO  [STDOUT] method1(Remote method1 called, 1)
+12:26:09,015 INFO  [STDOUT] method2: Remote method2 called
+12:26:09,015 INFO  [STDOUT] method2 key/val: great:ejb3
+12:26:09,015 INFO  [STDOUT] method2 key/val: hello:world
+12:26:09,109 INFO  [STDOUT] method1(testLocal, 1)
+12:26:09,125 INFO  [STDOUT] method2: testLocal2
+12:26:09,125 INFO  [STDOUT] method2 key/val: great:ejb3
+12:26:09,125 INFO  [STDOUT] method2 key/val: hello:world
+12:26:09,125 INFO  [STDOUT] end TESTXA **
+12:26:09,140 INFO  [STDOUT] method2: testXA2
+12:26:09,140 INFO  [STDOUT] method2 key/val: great:ejb3
+12:26:09,140 INFO  [STDOUT] method2 key/val: hello:world
+12:26:09,140 INFO  [STDOUT] method1(testXA, 1)
+</pre>
+</p><p>
+</p>
+</body>
+</html>

Deleted: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.wiki
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/consumer.wiki	2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.wiki	2008-12-26 07:02:11 UTC (rev 82547)
@@ -1,107 +0,0 @@
-!!!Message Driven POJOs via the deployment descriptor
-
-We are prototyping some possible extensions to MDBs to see if we can make things a little easier for development.  The idea is to give a message consumer (an MDB) a typed interface that message producers can send messages through.  Both the publisher and subscriber would be typed interfaces.
-
-!!The model
-Message Driven POJOs will have the same model as Session beans.  A Consumer can be configured via a combination of annotations and via the
-jboss.xml deployment descriptor. This tutorial describes configuration via a deployment descriptor. Take a look at [jboss.xml|META-INF/jboss.xml].
-There is a bean class tagged as {{consumer}} that must implement one or more Producer interfaces.  Note the {{producer}} and {{local-producer}} tags.
-Just as a session bean is tagged as {{session}} and implements one or more {{remote}} or {{local}} interfaces.
-
-It might be best to look at a full example.
-
-For each {{producer}} interface the Consumer implements, there will be a proxy that implements that Producer interface registered in JNDI under the FQN of
- that Producer interface.
-
-!!Simple example
-
-Let's do a simple example.  First define the consumer. Take a look at [ExampleConsumerBean.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleConsumerBean.java].
-This is our bean class and defines the methods than can receive JMS messages. The bean class implements three interfaces which are configured as Producers in {{jboss.xml}}. These interfaces
-will be used by clients (JMS publishers) to send messages to the Consumer via JMS.Note that [ExampleProducerXA.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java]
-is tagged with {{connection-factory}} to indicate the jndi name of the XA transaction factory.
-
-!!The client
-
-Let's now take a look at the client (really the producer of the actual messages) [Client.java|src/org/jboss/tutorial/consumer_deployment_descriptor/client/Client.java]
-
-When the Consumer is deployed by the EJB3 container, it looks for all of its Producer interfaces and registers each one of them in JNDI under their FQN class name.  The client code above looks
-up the [ExampleProducerRemote.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerRemote.java] interface in JNDI and accesses the local interfaces (
-[ExampleProducerLocal.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerLocal.java],
-[ExampleProducerXA.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java]) through the Stateless Session bean 
-[TesterBean.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/TesterBean.java"].
-Each producer implements the [ProducerObject|http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-ejb3/src/main/org/jboss/ejb3/mdb/ProducerObject.java?rev=1.1&view=markup].
-The client typecasts the {{ExampleProducerRemote}} to the ProducerObject.
-It then gets a [ProducerManager|http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-ejb3/src/main/org/jboss/ejb3/mdb/ProducerManager.java?rev=1.1&view=markup] that manages the
-JMS connection for this proxy.  To start being able to send messages to the Queue, the client calls {{connect()}} on the manager.
-It then can successfully call methods on the remote Producer.  When it calls {{method1()}} this method call is converted into a JMS message and published to the Queue of the Consumer.
-The consumer will receive the message and invoke its {{method1}} method.
-
-!!Producer default values
-
-The proxy registered in JNDI will know how to contact the JMS Queue/Topic to publish messages.  You can specify explicitly through the {{connnection-factory}} tag what the JMS
-ConnectionFactory JNDI name is, or you can rely on defaults.
-
-The default value is "ConnectionFactory" for the ConnectionFactory JNDI name.
-
-If you additionally tag the producer as {{local-producer}} instead of {{producer}}, then "java:/ConnectionFactory" will be used.
-
-!!local-producer
-
-If you tag a producer as {{local-producer}}, the proxy will lookup the connection factory via the default InitialContext when connect() is called.   Otherwise, the ConnectFactory
-reference will be embedded directly within the proxy.
-
-!!message-properties
-
-The methods defined in a Producer are turned into JMS messages.  The default message properties are a Time To Live of 0, a Priority of 4, and a delivery mode of PERSISTENT.  You can override
-these default values using the {{message-properties}} tag. This tag can be specified per method or wildcarded for all methods in the Producer interface.
-
-So, in the above example, {{method1()}} uses the default message properties, and {{method2()}} overrides the defaults via the {{message-properties}} tag.
-
-!!Obtaining the current message
-
-Sometimes you may need to access the real JMS message.  Maybe you need to obtain the replyTo destination or set an acknowledgement or something.  You can
-obtain it by using the {{current-message}} tag.
-
-This tag will inject the current JMS message into your Consumer bean before your target method is invoked.
-
-!!FEEDBACK NEEDED
-
-Please provide feedback to this proposed feature on our [forum|http://www.jboss.org/index.html?module=bb&op=viewtopic&t=60294].  We would really like feedback on this feature.
-
-!!Building and Running
-To build and run the example, make sure you have {{ejb3.deployer}} installed in JBoss 4.0.x and have JBoss running.  See the reference manual on how to install EJB 3.0.  
-{{{
-Unix:    $ export JBOSS_HOME=<where your jboss 4.0 distribution is>
-Windows: $ set JBOSS_HOME=<where your jboss 4.0 distribution is>
-$ ant
-$ ant run
-
-}}}
-
-Look in the console window to determine that the message was sent.
-
-{{{
-12:25:59,734 INFO  [Ejb3Module] found EJB3 consumer bean: org.jboss.tutorial.consumer.bean.ExampleConsumerBean
-12:25:59,734 INFO  [Ejb3Module] found EJB3 stateless session bean: org.jboss.tutorial.consumer.bean.TesterBean
-12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerRemote
-12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerLocal
-12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerXA
-12:25:59,812 INFO  [ProxyDeployer] no declared remote bindings
-12:25:59,812 INFO  [ProxyDeployer] there is remote interfaces
-12:25:59,812 INFO  [ProxyDeployer] default remote binding has jndiName of org.jboss.tutorial.consumer.bean.Tester
-12:25:59,828 INFO  [EJB3Deployer] Deployed: file[the deployment]
-12:26:09,000 INFO  [STDOUT] method1(Remote method1 called, 1)
-12:26:09,015 INFO  [STDOUT] method2: Remote method2 called
-12:26:09,015 INFO  [STDOUT] method2 key/val: great:ejb3
-12:26:09,015 INFO  [STDOUT] method2 key/val: hello:world
-12:26:09,109 INFO  [STDOUT] method1(testLocal, 1)
-12:26:09,125 INFO  [STDOUT] method2: testLocal2
-12:26:09,125 INFO  [STDOUT] method2 key/val: great:ejb3
-12:26:09,125 INFO  [STDOUT] method2 key/val: hello:world
-12:26:09,125 INFO  [STDOUT] end TESTXA **
-12:26:09,140 INFO  [STDOUT] method2: testXA2
-12:26:09,140 INFO  [STDOUT] method2 key/val: great:ejb3
-12:26:09,140 INFO  [STDOUT] method2 key/val: hello:world
-12:26:09,140 INFO  [STDOUT] method1(testXA, 1)
-}}}
-

Copied: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.wiki (from rev 82546, projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/consumer.wiki)
===================================================================
--- projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.wiki	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/consumer.wiki	2008-12-26 07:02:11 UTC (rev 82547)
@@ -0,0 +1,107 @@
+!!!Message Driven POJOs via the deployment descriptor
+
+We are prototyping some possible extensions to MDBs to see if we can make things a little easier for development.  The idea is to give a message consumer (an MDB) a typed interface that message producers can send messages through.  Both the publisher and subscriber would be typed interfaces.
+
+!!The model
+Message Driven POJOs will have the same model as Session beans.  A Consumer can be configured via a combination of annotations and via the
+jboss.xml deployment descriptor. This tutorial describes configuration via a deployment descriptor. Take a look at [jboss.xml|META-INF/jboss.xml].
+There is a bean class tagged as {{consumer}} that must implement one or more Producer interfaces.  Note the {{producer}} and {{local-producer}} tags.
+Just as a session bean is tagged as {{session}} and implements one or more {{remote}} or {{local}} interfaces.
+
+It might be best to look at a full example.
+
+For each {{producer}} interface the Consumer implements, there will be a proxy that implements that Producer interface registered in JNDI under the FQN of
+ that Producer interface.
+
+!!Simple example
+
+Let's do a simple example.  First define the consumer. Take a look at [ExampleConsumerBean.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleConsumerBean.java].
+This is our bean class and defines the methods than can receive JMS messages. The bean class implements three interfaces which are configured as Producers in {{jboss.xml}}. These interfaces
+will be used by clients (JMS publishers) to send messages to the Consumer via JMS.Note that [ExampleProducerXA.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java]
+is tagged with {{connection-factory}} to indicate the jndi name of the XA transaction factory.
+
+!!The client
+
+Let's now take a look at the client (really the producer of the actual messages) [Client.java|src/org/jboss/tutorial/consumer_deployment_descriptor/client/Client.java]
+
+When the Consumer is deployed by the EJB3 container, it looks for all of its Producer interfaces and registers each one of them in JNDI under their FQN class name.  The client code above looks
+up the [ExampleProducerRemote.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerRemote.java] interface in JNDI and accesses the local interfaces (
+[ExampleProducerLocal.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerLocal.java],
+[ExampleProducerXA.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java]) through the Stateless Session bean 
+[TesterBean.java|src/org/jboss/tutorial/consumer_deployment_descriptor/bean/TesterBean.java"].
+Each producer implements the [ProducerObject|http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-ejb3/src/main/org/jboss/ejb3/mdb/ProducerObject.java?rev=1.1&view=markup].
+The client typecasts the {{ExampleProducerRemote}} to the ProducerObject.
+It then gets a [ProducerManager|http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-ejb3/src/main/org/jboss/ejb3/mdb/ProducerManager.java?rev=1.1&view=markup] that manages the
+JMS connection for this proxy.  To start being able to send messages to the Queue, the client calls {{connect()}} on the manager.
+It then can successfully call methods on the remote Producer.  When it calls {{method1()}} this method call is converted into a JMS message and published to the Queue of the Consumer.
+The consumer will receive the message and invoke its {{method1}} method.
+
+!!Producer default values
+
+The proxy registered in JNDI will know how to contact the JMS Queue/Topic to publish messages.  You can specify explicitly through the {{connnection-factory}} tag what the JMS
+ConnectionFactory JNDI name is, or you can rely on defaults.
+
+The default value is "ConnectionFactory" for the ConnectionFactory JNDI name.
+
+If you additionally tag the producer as {{local-producer}} instead of {{producer}}, then "java:/ConnectionFactory" will be used.
+
+!!local-producer
+
+If you tag a producer as {{local-producer}}, the proxy will lookup the connection factory via the default InitialContext when connect() is called.   Otherwise, the ConnectFactory
+reference will be embedded directly within the proxy.
+
+!!message-properties
+
+The methods defined in a Producer are turned into JMS messages.  The default message properties are a Time To Live of 0, a Priority of 4, and a delivery mode of PERSISTENT.  You can override
+these default values using the {{message-properties}} tag. This tag can be specified per method or wildcarded for all methods in the Producer interface.
+
+So, in the above example, {{method1()}} uses the default message properties, and {{method2()}} overrides the defaults via the {{message-properties}} tag.
+
+!!Obtaining the current message
+
+Sometimes you may need to access the real JMS message.  Maybe you need to obtain the replyTo destination or set an acknowledgement or something.  You can
+obtain it by using the {{current-message}} tag.
+
+This tag will inject the current JMS message into your Consumer bean before your target method is invoked.
+
+!!FEEDBACK NEEDED
+
+Please provide feedback to this proposed feature on our [forum|http://www.jboss.org/index.html?module=bb&op=viewtopic&t=60294].  We would really like feedback on this feature.
+
+!!Building and Running
+To build and run the example, make sure you have {{ejb3.deployer}} installed in JBoss 4.0.x and have JBoss running.  See the reference manual on how to install EJB 3.0.  
+{{{
+Unix:    $ export JBOSS_HOME=<where your jboss 4.0 distribution is>
+Windows: $ set JBOSS_HOME=<where your jboss 4.0 distribution is>
+$ ant
+$ ant run
+
+}}}
+
+Look in the console window to determine that the message was sent.
+
+{{{
+12:25:59,734 INFO  [Ejb3Module] found EJB3 consumer bean: org.jboss.tutorial.consumer.bean.ExampleConsumerBean
+12:25:59,734 INFO  [Ejb3Module] found EJB3 stateless session bean: org.jboss.tutorial.consumer.bean.TesterBean
+12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerRemote
+12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerLocal
+12:25:59,796 INFO  [ConsumerContainer] Producer: org.jboss.tutorial.consumer.bean.ExampleProducerXA
+12:25:59,812 INFO  [ProxyDeployer] no declared remote bindings
+12:25:59,812 INFO  [ProxyDeployer] there is remote interfaces
+12:25:59,812 INFO  [ProxyDeployer] default remote binding has jndiName of org.jboss.tutorial.consumer.bean.Tester
+12:25:59,828 INFO  [EJB3Deployer] Deployed: file[the deployment]
+12:26:09,000 INFO  [STDOUT] method1(Remote method1 called, 1)
+12:26:09,015 INFO  [STDOUT] method2: Remote method2 called
+12:26:09,015 INFO  [STDOUT] method2 key/val: great:ejb3
+12:26:09,015 INFO  [STDOUT] method2 key/val: hello:world
+12:26:09,109 INFO  [STDOUT] method1(testLocal, 1)
+12:26:09,125 INFO  [STDOUT] method2: testLocal2
+12:26:09,125 INFO  [STDOUT] method2 key/val: great:ejb3
+12:26:09,125 INFO  [STDOUT] method2 key/val: hello:world
+12:26:09,125 INFO  [STDOUT] end TESTXA **
+12:26:09,140 INFO  [STDOUT] method2: testXA2
+12:26:09,140 INFO  [STDOUT] method2 key/val: great:ejb3
+12:26:09,140 INFO  [STDOUT] method2 key/val: hello:world
+12:26:09,140 INFO  [STDOUT] method1(testXA, 1)
+}}}
+

Deleted: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/jndi.properties
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/jndi.properties	2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/jndi.properties	2008-12-26 07:02:11 UTC (rev 82547)
@@ -1,3 +0,0 @@
-java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
-java.naming.provider.url=localhost

Copied: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/jndi.properties (from rev 82546, projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/jndi.properties)
===================================================================
--- projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/jndi.properties	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/jndi.properties	2008-12-26 07:02:11 UTC (rev 82547)
@@ -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

Deleted: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/log4j.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/log4j.xml	2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/log4j.xml	2008-12-26 07:02:11 UTC (rev 82547)
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
-<!-- ===================================================================== -->
-<!--                                                                       -->
-<!--  Log4j Configuration                                                  -->
-<!--                                                                       -->
-<!-- ===================================================================== -->
-
-<!-- $Id$ -->
-
-<!--
-   | 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>

Copied: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/log4j.xml (from rev 82546, projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/log4j.xml)
===================================================================
--- projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/log4j.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/log4j.xml	2008-12-26 07:02:11 UTC (rev 82547)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Log4j Configuration                                                  -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<!-- $Id$ -->
+
+<!--
+   | 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>

Added: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/pom.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/pom.xml	2008-12-26 07:02:11 UTC (rev 82547)
@@ -0,0 +1,38 @@
+<?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.consumer_deployment_descriptor.client.Client</ejb3.tutorial.client>
+	</properties>
+
+
+	<artifactId>jboss-ejb3-tutorial-consumer_with-deployment-descriptor</artifactId>
+	<version>0.1.0-SNAPSHOT</version>
+	<packaging>jar</packaging>
+	<name>JMS Consumers and Producers with deployment descriptors in JBoss</name>
+	<url>http://labs.jboss.com/jbossejb3/</url>
+	<description>
+    Tutorial about JBoss specific JMS Consumers and Producers using deployment descriptors
+  </description>
+  
+ 
+
+
+
+</project>


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

Deleted: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/queue-example-service.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/queue-example-service.xml	2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/queue-example-service.xml	2008-12-26 07:02:11 UTC (rev 82547)
@@ -1,10 +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=tutorial">
-      <attribute name="JNDIName">queue/tutorial/example</attribute>
-      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
-   </mbean>
-
-
-</server>

Copied: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src (from rev 82546, projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/src)

Modified: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleConsumerBean.java
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleConsumerBean.java	2008-12-24 23:43:57 UTC (rev 82546)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleConsumerBean.java	2008-12-26 07:02:11 UTC (rev 82547)
@@ -22,10 +22,8 @@
 package org.jboss.tutorial.consumer_deployment_descriptor.bean;
 
 import java.util.Map;
-import javax.ejb.ActivationConfigProperty;
+
 import javax.jms.Message;
-import org.jboss.annotation.ejb.Consumer;
-import org.jboss.annotation.ejb.CurrentMessage;
 
 public class ExampleConsumerBean implements ExampleProducerRemote, ExampleProducerLocal, ExampleProducerXA
 {

Modified: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducer.java
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducer.java	2008-12-24 23:43:57 UTC (rev 82546)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducer.java	2008-12-26 07:02:11 UTC (rev 82547)
@@ -21,11 +21,6 @@
  */
 package org.jboss.tutorial.consumer_deployment_descriptor.bean;
 
-import org.jboss.annotation.ejb.MessageProperties;
-import org.jboss.annotation.ejb.DeliveryMode;
-import org.jboss.annotation.ejb.DeliveryMode;
-import org.jboss.annotation.ejb.MessageProperties;
-
 import java.util.Map;
 
 /**

Modified: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerLocal.java
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerLocal.java	2008-12-24 23:43:57 UTC (rev 82546)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerLocal.java	2008-12-26 07:02:11 UTC (rev 82547)
@@ -21,11 +21,6 @@
  */
 package org.jboss.tutorial.consumer_deployment_descriptor.bean;
 
-import org.jboss.annotation.ejb.Producer;
-import org.jboss.annotation.ejb.Local;
-import org.jboss.annotation.ejb.Producer;
-
-
 /**
  * comment
  *

Modified: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerRemote.java
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerRemote.java	2008-12-24 23:43:57 UTC (rev 82546)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerRemote.java	2008-12-26 07:02:11 UTC (rev 82547)
@@ -21,9 +21,6 @@
  */
 package org.jboss.tutorial.consumer_deployment_descriptor.bean;
 
-import org.jboss.annotation.ejb.Producer;
-
-
 /**
  * comment
  *

Modified: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java	2008-12-24 23:43:57 UTC (rev 82546)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/ExampleProducerXA.java	2008-12-26 07:02:11 UTC (rev 82547)
@@ -22,12 +22,7 @@
 package org.jboss.tutorial.consumer_deployment_descriptor.bean;
 
 import java.util.Map;
-import org.jboss.annotation.ejb.DeliveryMode;
-import org.jboss.annotation.ejb.MessageProperties;
-import org.jboss.annotation.ejb.Producer;
-import org.jboss.annotation.ejb.Local;
 
-
 /**
  * comment
  *

Modified: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/TesterBean.java
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/TesterBean.java	2008-12-24 23:43:57 UTC (rev 82546)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/bean/TesterBean.java	2008-12-26 07:02:11 UTC (rev 82547)
@@ -23,11 +23,13 @@
 
 import java.util.HashMap;
 import java.util.Map;
-import org.jboss.annotation.JndiInject;
+
 import javax.ejb.Remote;
 import javax.ejb.Stateless;
 import javax.ejb.TransactionAttribute;
 import javax.ejb.TransactionAttributeType;
+
+import org.jboss.ejb3.annotation.JndiInject;
 import org.jboss.ejb3.mdb.ProducerManager;
 import org.jboss.ejb3.mdb.ProducerObject;
 
@@ -43,23 +45,25 @@
 public class TesterBean implements Tester
 {
    private ExampleProducerXA xa;
+
    private ProducerManager xaManager;
 
-   @JndiInject(jndiName="org.jboss.tutorial.consumer_deployment_descriptor.bean.ExampleProducerXA")
+   @JndiInject(jndiName = "org.jboss.tutorial.consumer_deployment_descriptor.bean.ExampleProducerXA")
    public void setXa(ExampleProducerXA xa)
    {
       this.xa = xa;
-      this.xaManager = ((ProducerObject)xa).getProducerManager();
+      this.xaManager = ((ProducerObject) xa).getProducerManager();
    }
 
    private ExampleProducer local;
+
    private ProducerManager localManager;
 
-   @JndiInject(jndiName="org.jboss.tutorial.consumer_deployment_descriptor.bean.ExampleProducerLocal")
+   @JndiInject(jndiName = "org.jboss.tutorial.consumer_deployment_descriptor.bean.ExampleProducerLocal")
    public void setLocal(ExampleProducer local)
    {
       this.local = local;
-      this.localManager = ((ProducerObject)local).getProducerManager();
+      this.localManager = ((ProducerObject) local).getProducerManager();
    }
 
    @TransactionAttribute(TransactionAttributeType.REQUIRED)

Modified: projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/client/Client.java
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/client/Client.java	2008-12-24 23:43:57 UTC (rev 82546)
+++ projects/ejb3/trunk/docs/tutorial/consumer_deployment_descriptor/src/org/jboss/tutorial/consumer_deployment_descriptor/client/Client.java	2008-12-26 07:02:11 UTC (rev 82547)
@@ -49,6 +49,7 @@
       {
          // Call method1
          remote.method1("Remote method1 called", 1);
+         System.out.println("Remote method1 called");
 
          // Call method2
          Map<String, String> map = new HashMap<String, String>();
@@ -56,6 +57,7 @@
          map.put("great", "ejb3");
 
          remote.method2("Remote method2 called", map);
+         System.out.println("Remote method2 called");
       }
       finally
       {




More information about the jboss-cvs-commits mailing list