[jboss-cvs] JBossAS SVN: r95074 - projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-queue.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Oct 18 20:49:10 EDT 2009
Author: laubai
Date: 2009-10-18 20:49:10 -0400 (Sun, 18 Oct 2009)
New Revision: 95074
Modified:
projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-queue/README.html
Log:
Updated distributed-queue readme file.
Modified: projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-queue/README.html
===================================================================
--- projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-queue/README.html 2009-10-18 23:36:53 UTC (rev 95073)
+++ projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-queue/README.html 2009-10-19 00:49:10 UTC (rev 95074)
@@ -8,128 +8,98 @@
<body>
<br>
<h1>JBoss Messaging Distributed Queue Example</h1>
-$Revision: 1017 $
+$ Revision: 1017 $
<h2>Overview</h2>
-<br>
-This example demonstrates how to write JMS code that connects to a
-JBoss Messaging cluster and sends messages to a distributed queue.
-The example creates two connections to two distinct cluster nodes
-on which we have previously deployed a distributed queue.
-The example sends and receives messages using both connections.
-<br>
-<br>
-This example relies on having access to a running JBoss Messaging
-cluster with at least two nodes. The JBoss Messaging cluster must be
-installed and started according to the user guide.
-<<br><br>
-For JBoss5, you should copy all as messaging-node0, configure mysql as a database, make it clustered, and copy it as messaging-node1. Start each instance as:
-<br><br>
-./run.sh -c messaging-node0 -Djboss.service.binding.set=ports-01
-<br><br>
-<br>
-and in another window
-<br><br>
-./run.sh -c messaging-node1 -Djboss.service.binding.set=ports-02 -Djboss.messaging.ServerPeerID=1
-<br><br>
-<span style="font-style: italic;"></span><br>
+<p>
+ This example shows you how to write Java Message Service (JMS) code that connects to a JBoss Messaging cluster and sends messages to a distributed queue. The example creates two connections to two distinct cluster nodes on which we have previously deployed a distributed queue. The example sends and receives using both connections.
+</p>
+<p>
+ This example requires access to a running JBoss Messaging cluster with a minimum of two nodes that has been installed and started according to the release documentation.
+</p>
+<p>
+ The root directory of your JBoss Enterprise Application Platform installation contains a <span style="font-family: monospace;">server/all/</span> directory.
+</p>
+<ol>
+ <li>
+ <p>Copy the <span style="font-family: monospace;">all</span> directory as <span style="font-family: monospace;">messaging-node0</span>:</p>
+ <div style="margin-left: 40px;"><span style="font-family: monospace;">cp -r all messaging-node0</span></div>
+ </li>
+ <li>
+ <p>In your new <span style="font-family: monospace;">messaging-node0</span> directory, modify <span style="font-family: monospace;">configure</span> to use a MySQL data source, and the messaging configuration files to make JBoss Messaging clustered.</p>
+ </li>
+ <li>
+ <p>Copy <span style="font-family: monospace;">messaging-node0</span> to another directory as <span style="font-family: monospace;">messaging-node1</span>:</p>
+ <div style="margin-left: 40px;"><span style="font-family: monospace;">cp -r messaging-node0 messaging-node1</span></div>
+ </li>
+</ol>
+<p>
+ Finally, start each instance in a separate terminal window:
+</p>
+ <div style="margin-left: 40px;"><span style="font-family: monospace;">./run.sh -c messaging-node0 -Djboss.service.binding.set=ports-01</span></div>
+ <div style="margin-left: 40px;"><span style="font-family: monospace;">./run.sh -c messaging-node1 -Djboss.service.binding.set=ports-02 -Djboss.messaging.ServerPeerID=1</span></div>
+
<h2>Running the example</h2>
-<span style="font-family: monospace;"></span><span
- style="font-family: monospace;"></span><br>
-1. Make sure that a JBoss Messaging cluster with at least two nodes is
-up and running.<br>
-<br>
-2. Go to the example's home directory<br>
-<br>
-<div style="margin-left: 40px;"><span style="font-family: monospace;">cd
-...\examples\distributed-queue</span><br>
-</div>
-<br>
-3. Run the example:<br>
-<br>
-<div style="margin-left: 40px;"><span style="font-family: monospace;">ant</span>
-<br>
-<br>
-<br>
-</div>
-The output of a successful run should be similar to:<br>
-<div style="margin-left: 40px;"><br>
-</div>
+<ol>
+ <li>
+ <p>Ensure that a JBoss Messaging cluster with a minimum of two nodes is running.</p>
+ </li>
+ <li>
+ <p>Go to the example's home directory:</p>
+ <div style="margin-left: 40px;"><span style="font-family: monospace;">cd ...\examples\distributed-queue</span></div>
+ </li>
+ <li>
+ <p>Run the example:</p>
+ <div style="margin-left: 40px;"><span style="font-family: monospace;">ant</span></div>
+ </li>
+</ol>
+<p>
+ A successful run should have output similar to the following:
+</p>
+
<table
style="width: 90%; text-align: left; font-family: monospace; background-color: rgb(204, 204, 204); margin-left: 40px;"
border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
- <td style="vertical-align: top;">
- <div style="margin-left: 40px;"><br>
- </div>
-$ ant<br>
-Buildfile: build.xml<br>
- <br>
-identify:<br>
- [echo]
-###########################################################################<br>
- [echo]
-#
-Running the DISTRIBUTED QUEUE
-example
-#<br>
- [echo]
-###########################################################################<br>
- [echo] The
-topic: testDistributedQueue<br>
- [echo] The client jar:
-../../../output/lib/jboss-messaging-client.jar<br>
- <br>
-sanity-check:<br>
- <br>
-init:<br>
- [mkdir] Created dir:
-C:\work\src\svn\messaging\docs\examples\distributed-queue\output<br>
- [mkdir] Created dir:
-C:\work\src\svn\messaging\docs\examples\common\output<br>
- <br>
-compile:<br>
- [javac] Compiling 2 source files to
-C:\work\src\svn\messaging\docs\examples\common\output<br>
- [javac] Compiling 2 source files to
-C:\work\src\svn\messaging\docs\examples\distributed-queue\output<br>
- <br>
-run:<br>
- [java] Distributed queue
-/queue/testDistributedQueue exists<br>
- [java] The message was successfully sent
-to the distributed queue<br>
- [java] MessageListener0 received message:
-Hello!<br>
- [java] MessageListener1 received message:
-Another Hello!<br>
- [java] The example connected to JBoss
-Messaging version 1.3.0.GA (1.3)<br>
- <br>
- [java] #####################<br>
- [java] ###
-SUCCESS! ###<br>
- [java] #####################<br>
- <br>
-BUILD SUCCESSFUL<br>
-Total time: 4 seconds<br>
- <br>
- <br>
+ <td>
+<pre>
+$ ant
+Buildfile: build.xml
+
+identify:
+ [echo] ###########################################################################
+ [echo] # Running the DISTRIBUTED QUEUE example #
+ [echo] ###########################################################################
+ [echo] The topic: testDistributedQueue
+ [echo] The client jar: ../../../output/lib/jboss-messaging-client.jar
+
+sanity-check:
+
+init:
+ [mkdir] Created dir: C:\work\src\svn\messaging\docs\examples\distributed-queue\output
+ [mkdir] Created dir: C:\work\src\svn\messaging\docs\examples\common\output
+
+compile:
+ [javac] Compiling 2 source files to C:\work\src\svn\messaging\docs\examples\common\output
+ [javac] Compiling 2 source files to C:\work\src\svn\messaging\docs\examples\distributed-queue\output
+
+run:
+ [java] Distributed queue /queue/testDistributedQueue exists
+ [java] The message was successfully sent to the distributed queue
+ [java] MessageListener0 received message: Hello!
+ [java] MessageListener1 received message: Another Hello!
+ [java] The example connected to JBoss Messaging version 1.3.0.GA (1.3)
+
+ [java] #####################
+ [java] ### SUCCESS! ###
+ [java] #####################
+
+BUILD SUCCESSFUL
+Total time: 4 seconds
+</pre>
</td>
</tr>
</tbody>
</table>
-<div style="margin-left: 40px;"><br>
-</div>
-<br>
-<br>
-<br>
-<hr style="width: 100%; height: 2px;"><br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
</body>
</html>
More information about the jboss-cvs-commits
mailing list