[jboss-cvs] JBossAS SVN: r95075 - in projects/docs/enterprise/5.0/Examples/jboss-messaging-examples: distributed-topic and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Oct 18 20:53:47 EDT 2009
Author: laubai
Date: 2009-10-18 20:53:47 -0400 (Sun, 18 Oct 2009)
New Revision: 95075
Modified:
projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-queue/README.html
projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-topic/README.html
Log:
Updated distributed-queue and distributed-topic readme files.
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-19 00:49:10 UTC (rev 95074)
+++ projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-queue/README.html 2009-10-19 00:53:47 UTC (rev 95075)
@@ -33,9 +33,12 @@
</li>
</ol>
<p>
- Finally, start each instance in a separate terminal window:
+ Start the first instance:
</p>
<div style="margin-left: 40px;"><span style="font-family: monospace;">./run.sh -c messaging-node0 -Djboss.service.binding.set=ports-01</span></div>
+<p>
+ In a separate window, start the second instance:
+</p>
<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>
Modified: projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-topic/README.html
===================================================================
--- projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-topic/README.html 2009-10-19 00:49:10 UTC (rev 95074)
+++ projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/distributed-topic/README.html 2009-10-19 00:53:47 UTC (rev 95075)
@@ -13,17 +13,32 @@
<p>This example demonstrates how to write Java Message Service code that connects to a JBoss Messaging cluster and sends messages to a distributed topic. Each connection is then used to create a subscriber for the distributed topic. The example is considered successful if both subscribers receive a message sent to the topic.</p>
<p>This example requires access to a running JBoss Messaging cluster with a minimum of two nodes. The JBoss Messaging cluster must be installed and started according to the JBoss Messaging User Guide.</p>
-<!--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 -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>
+ 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>
+ Start the first instance:
+</p>
+ <div style="margin-left: 40px;"><span style="font-family: monospace;">./run.sh -c messaging-node0 -Djboss.service.binding.set=ports-01</span></div>
+<p>
+ In a separate window, start the second instance:
+</p>
+ <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>
<ol>
<li>
@@ -47,39 +62,41 @@
<tbody>
<tr>
<td style="vertical-align: top;">
- $ ant<br>
-Buildfile: build.xml<br>
-<br>
-identify:<br>
- [echo] ###########################################################################<br>
- [echo] # Running the DISTRIBUTED TOPIC example #<br>
- [echo] ###########################################################################<br>
- [echo] The topic: testDistributedTopic<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-topic\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-topic\output<br>
-<br>
-run:<br>
- [java] Distributed topic /topic/testDistributedTopic exists<br>
- [java] The message was successfully published on the distributed topic<br>
- [java] MessageListener 1 received message: Hello!<br>
- [java] MessageListener 2 received message: 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
+ <pre>
+$ ant
+Buildfile: build.xml
+
+identify:
+[echo] ###########################################################################
+[echo] # Running the DISTRIBUTED TOPIC example #
+[echo] ###########################################################################
+[echo] The topic: testDistributedTopic
+[echo] The client jar: ../../../output/lib/jboss-messaging-client.jar
+
+sanity-check:
+
+init:
+[mkdir] Created dir: C:\work\src\svn\messaging\docs\examples\distributed-topic\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-topic\output
+
+run:
+[java] Distributed topic /topic/testDistributedTopic exists
+[java] The message was successfully published on the distributed topic
+[java] MessageListener 1 received message: Hello!
+[java] MessageListener 2 received message: 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>
More information about the jboss-cvs-commits
mailing list