[jboss-cvs] JBossAS SVN: r64102 - in branches/Branch_4_2/ejb3/docs/tutorial: third_party_jms and 7 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 17 19:51:34 EDT 2007


Author: bdecoste
Date: 2007-07-17 19:51:34 -0400 (Tue, 17 Jul 2007)
New Revision: 64102

Added:
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/application.xml
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/build.xml
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/jndi.properties
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/log4j.xml
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/bean/
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/bean/ExampleMDB.java
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/client/
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/client/Client.java
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdparty-jms-service.xml
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdparty/
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdpartyjms.html
   branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdpartyjms.wiki
Log:
[EJBTHREE-809] tutorial for integrating 3rd party jms providers

Added: branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/application.xml
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/application.xml	                        (rev 0)
+++ branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/application.xml	2007-07-17 23:51:34 UTC (rev 64102)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
+
+<application>
+  <jar>lib/jms-1.1.jar</jar>
+  <jar>lib/jndi-1.2.1.jar</jar>
+  <jar>lib/openjms-0.7.7-beta-1.jar</jar>
+  
+  <module>
+    <ejb>tutorial.jar</ejb>
+  </module>
+    
+</application>
+
+

Added: branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/build.xml
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/build.xml	                        (rev 0)
+++ branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/build.xml	2007-07-17 23:51:34 UTC (rev 64102)
@@ -0,0 +1,105 @@
+<?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"/>
+   <property name="thirdparty.lib.dir" value="thirdparty"/>
+
+   <!-- 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>
+   	  <fileset dir="${thirdparty.lib.dir}">
+   	     <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="custom-ejb3-interceptors-aop.xml"/>
+         </fileset>
+      </jar>
+   	  <ear earfile="build/tutorial.ear" appxml="application.xml">
+         <zipfileset dir="build">
+            <include name="tutorial.jar"/>
+         </zipfileset>
+         <zipfileset dir="${thirdparty.lib.dir}" prefix="lib">
+            <include name="*.jar"/>
+         </zipfileset>
+      </ear>
+   	  <copy file="thirdparty-jms-service.xml" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
+      <sleep seconds="5"/>
+      <copy file="build/tutorial.ear" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
+   </target>
+
+   <target name="run" depends="ejbjar">
+      <java classname="org.jboss.tutorial.thirdpartyjms.client.Client" 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.ear"/>
+   	  <delete file="${jboss.home}/server/${jboss.server.config}/deploy/thirdparty-jms-service.xml"/>
+   </target>
+
+
+</project>
+

Added: branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/jndi.properties
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/jndi.properties	                        (rev 0)
+++ branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/jndi.properties	2007-07-17 23:51:34 UTC (rev 64102)
@@ -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

Added: branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/log4j.xml
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/log4j.xml	                        (rev 0)
+++ branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/log4j.xml	2007-07-17 23:51:34 UTC (rev 64102)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Log4j Configuration                                                  -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml 60233 2007-02-03 10:13:23Z wolfc $ -->
+
+<!--
+   | 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: branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/bean/ExampleMDB.java
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/bean/ExampleMDB.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/bean/ExampleMDB.java	2007-07-17 23:51:34 UTC (rev 64102)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.thirdpartyjms.bean;
+
+import javax.ejb.MessageDriven;
+import javax.ejb.ActivationConfigProperty;
+import javax.jms.Message;
+import javax.jms.MessageListener;
+
+ at MessageDriven(activationConfig =
+        {
+        @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
+        @ActivationConfigProperty(propertyName="destination", propertyValue="queue1"),
+        @ActivationConfigProperty(propertyName="providerAdapterJNDI", propertyValue="java:ThirdPartyJmsProvider"),
+        @ActivationConfigProperty(propertyName="dLQJNDIName", propertyValue="queue2")
+        })
+public class ExampleMDB implements MessageListener
+{
+   public void onMessage(Message recvMsg)
+   {
+      System.out.println("----------------");
+      System.out.println("Received message");
+      System.out.println("----------------");
+   }
+
+}

Added: branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/client/Client.java
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/client/Client.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/src/org/jboss/tutorial/thirdpartyjms/client/Client.java	2007-07-17 23:51:34 UTC (rev 64102)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.tutorial.thirdpartyjms.client;
+
+import javax.jms.Destination;
+import javax.jms.Connection;
+import javax.jms.ConnectionFactory;
+import javax.jms.MessageProducer;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingEnumeration;
+
+import java.util.Hashtable;
+
+public class Client
+{
+   public static void main(String[] args) throws Exception
+   {
+      processMessage();
+   }
+   
+   private static void processMessage() throws Exception
+   {
+      Hashtable properties = new Hashtable();
+      properties.put(Context.INITIAL_CONTEXT_FACTORY, 
+                     "org.exolab.jms.jndi.InitialContextFactory");
+      properties.put(Context.PROVIDER_URL, "tcp://localhost:3035/");
+      InitialContext jndiContext = new InitialContext(properties);
+      
+      ConnectionFactory factory = (ConnectionFactory) jndiContext.lookup("ConnectionFactory");
+      Connection connection = factory.createConnection();
+      Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+      
+      Destination queue = (Destination) jndiContext.lookup("queue1");
+      
+      MessageProducer sender = session.createProducer(queue);
+
+      TextMessage msg = session.createTextMessage("Hello World");
+      
+      sender.send(msg);
+      System.out.println("Message sent successfully to remote third party queue ");
+
+   }
+}

Added: branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdparty-jms-service.xml
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdparty-jms-service.xml	                        (rev 0)
+++ branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdparty-jms-service.xml	2007-07-17 23:51:34 UTC (rev 64102)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+	<mbean code="org.jboss.jms.jndi.JMSProviderLoader" 
+  		name=":service=JMSProviderLoader,name=ThirdPartyJmsProvider">
+    	<attribute name="ProviderName">ThirdPartyJmsProvider</attribute>
+    	<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
+    	<attribute name="QueueFactoryRef">JmsQueueConnectionFactory</attribute>
+    	<attribute name="TopicFactoryRef">JmsTopicConnectionFactory</attribute>
+    	<attribute name="Properties">	
+  			java.naming.factory.initial=org.exolab.jms.jndi.InitialContextFactory
+  			java.naming.provider.url=tcp://localhost:3035
+    	</attribute>
+  	</mbean>
+ </server>
\ No newline at end of file

Added: branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdpartyjms.html
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdpartyjms.html	                        (rev 0)
+++ branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdpartyjms.html	2007-07-17 23:51:34 UTC (rev 64102)
@@ -0,0 +1,81 @@
+<html>
+<body>
+<p>
+<h2>Third Party JMS Provider Integration</h2>
+
+</p><p>
+This tutorial describes how to integrate third party JMS providers into JBoss and EJB3 Message Driven
+Beans. This tutorial is based on integration with OpenJMS, but applies to any third party JMS provider.
+OpenJMS is not included as part of this tutorial. In order to run the example, you will need to download,
+install, and start OpenJMS. You will also need to copy the appropriate jars into the <tt>thirdparty</tt>
+directory.
+</p><p>
+<h3>The JMS Resource Adaptor</h3>
+
+</p><p>
+There are two mechanisms you can use to integrate the third party provider. MDBs in JBoss EJB3
+are based on JMS JCA resource adaptors. The adaptors handle the integration with the JMS provider
+as well as handling transactions, thread pooling, etc.
+</p><p>
+The first and often the preferred mechanism is to use a JMS JCA resource adaptor provided by the
+third party vendor. Some vendors supply resource adaptors, others do not. If this is the chosen approach,
+you need to annotate your MDB with @org.jboss.annotation.ejb.ResourceAdaptor("thirdparty.rar") and then
+add the @ActivationConfigProperty annotations with the properties described by the third party vendor
+and supported by their resource adaptor.
+</p><p>
+The second mechanism uses the JBoss JMS JCA resource adaptor and is described in detail here.
+</p><p>
+<h3> The Third Party Provider</h3>
+
+</p><p>
+Take a look at <a href="thirdparty-jms-service.xml">thirdparty-jms-service.xml</a>. This file describes the service
+that defines how to communicate with the third party provider. You typically define:
+<pre>
+ProviderName - the JNDI binding (in JBoss JNDI) of the provider, which is referenced by the MDB
+ProviderAdapterClass - the JBoss class used to implement the provider adaptor
+QueueFactoryRef - the JNDI binding (in third party JNDI) of the third party QueueConnectionFactory 
+TopicFactoryRef - the JNDI binding (in third party JNDI) of the third partt TopicConnectionFactory
+Properties - the JNDI properties used to access the third party JNDI service
+</pre>
+</p><p>
+<h3> The MDB</h3>
+
+</p><p>
+Take a look at <a href="src/org/jboss/tutorial/thirdpartyjms/bean/ExampleMDB">ExampleMDB.java</a>. Note there is
+no @ResourceAdaptor annotation as by default MDBs are configured to use the JBoss JMS JCA resource
+adaptor. Also, note that we have defined the <tt>providerAdapterJNDI</tt> property to be the name we defined
+in <a href="thirdparty-jms-service.xml">thirdparty-jms-service.xml</a>. The <tt>destination</tt> and <tt>dLQJNDIName</tt>
+properties are the JNDI bindings of the queues in the third party JNDI service.
+</p><p>
+<h4>Building and Running</h4>
+
+To build and run the example, make sure you have <tt>ejb3.deployer</tt> installed in JBoss 4.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.x distribution is&gt;
+Windows: $ set JBOSS_HOME=&lt;where your jboss 4.x distribution is&gt;
+$ ant
+$ ant run
+
+</pre>
+</p><p>
+Look at the client window to determine that the message was sent.
+</p><p>
+<pre>
+run:
+     [java] Message sent successfully to remote third party queue
+</pre>
+</p><p>
+Look in the console window to determine that the messages was received.
+</p><p>
+<pre>
+16:08:08,233 INFO  [STDOUT] ----------------
+16:08:08,233 INFO  [STDOUT] Received message
+16:08:08,233 INFO  [STDOUT] ----------------
+</pre>
+</p><p>
+</p><p>
+</p><p>
+</p><p>
+</p>
+</body>
+</html>

Added: branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdpartyjms.wiki
===================================================================
--- branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdpartyjms.wiki	                        (rev 0)
+++ branches/Branch_4_2/ejb3/docs/tutorial/third_party_jms/thirdpartyjms.wiki	2007-07-17 23:51:34 UTC (rev 64102)
@@ -0,0 +1,70 @@
+!!!Third Party JMS Provider Integration
+
+This tutorial describes how to integrate third party JMS providers into JBoss and EJB3 Message Driven
+Beans. This tutorial is based on integration with OpenJMS, but applies to any third party JMS provider.
+OpenJMS is not included as part of this tutorial. In order to run the example, you will need to download,
+install, and start OpenJMS. You will also need to copy the appropriate jars into the {{thirdparty}}
+directory.
+
+!!The JMS Resource Adaptor
+
+There are two mechanisms you can use to integrate the third party provider. MDBs in JBoss EJB3
+are based on JMS JCA resource adaptors. The adaptors handle the integration with the JMS provider
+as well as handling transactions, thread pooling, etc.
+
+The first and often the preferred mechanism is to use a JMS JCA resource adaptor provided by the
+third party vendor. Some vendors supply resource adaptors, others do not. If this is the chosen approach,
+you need to annotate your MDB with @org.jboss.annotation.ejb.ResourceAdaptor("thirdparty.rar") and then
+add the @ActivationConfigProperty annotations with the properties described by the third party vendor
+and supported by their resource adaptor.
+
+The second mechanism uses the JBoss JMS JCA resource adaptor and is described in detail here.
+
+!! The Third Party Provider
+
+Take a look at [thirdparty-jms-service.xml|thirdparty-jms-service.xml]. This file describes the service
+that defines how to communicate with the third party provider. You typically define:
+{{{
+ProviderName - the JNDI binding (in JBoss JNDI) of the provider, which is referenced by the MDB
+ProviderAdapterClass - the JBoss class used to implement the provider adaptor
+QueueFactoryRef - the JNDI binding (in third party JNDI) of the third party QueueConnectionFactory 
+TopicFactoryRef - the JNDI binding (in third party JNDI) of the third partt TopicConnectionFactory
+Properties - the JNDI properties used to access the third party JNDI service
+}}}
+
+!! The MDB
+
+Take a look at [ExampleMDB.java|src/org/jboss/tutorial/thirdpartyjms/bean/ExampleMDB]. Note there is
+no @ResourceAdaptor annotation as by default MDBs are configured to use the JBoss JMS JCA resource
+adaptor. Also, note that we have defined the {{providerAdapterJNDI}} property to be the name we defined
+in [thirdparty-jms-service.xml|thirdparty-jms-service.xml]. The {{destination}} and {{dLQJNDIName}}
+properties are the JNDI bindings of the queues in the third party JNDI service.
+
+!Building and Running
+To build and run the example, make sure you have {{ejb3.deployer}} installed in JBoss 4.x and have JBoss running.  See the reference manual on how to install EJB 3.0.  
+{{{
+Unix:    $ export JBOSS_HOME=<where your jboss 4.x distribution is>
+Windows: $ set JBOSS_HOME=<where your jboss 4.x distribution is>
+$ ant
+$ ant run
+
+}}}
+
+Look at the client window to determine that the message was sent.
+
+{{{
+run:
+     [java] Message sent successfully to remote third party queue
+}}}
+
+Look in the console window to determine that the messages was received.
+
+{{{
+16:08:08,233 INFO  [STDOUT] ----------------
+16:08:08,233 INFO  [STDOUT] Received message
+16:08:08,233 INFO  [STDOUT] ----------------
+}}}
+
+
+
+




More information about the jboss-cvs-commits mailing list