[jboss-cvs] JBossAS SVN: r95006 - projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/ejb3mdb.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Oct 16 02:53:02 EDT 2009
Author: laubai
Date: 2009-10-16 02:53:02 -0400 (Fri, 16 Oct 2009)
New Revision: 95006
Modified:
projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/ejb3mdb/README.html
Log:
Corrected ejb3mdb readme.
Modified: projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/ejb3mdb/README.html
===================================================================
--- projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/ejb3mdb/README.html 2009-10-16 06:38:39 UTC (rev 95005)
+++ projects/docs/enterprise/5.0/Examples/jboss-messaging-examples/ejb3mdb/README.html 2009-10-16 06:53:02 UTC (rev 95006)
@@ -8,140 +8,87 @@
<body>
<br>
<h1>JBoss Messaging EJB3 Message Driven Bean Example</h1>
-$Revision: 2751 $
+$ Revision: 2751 $
<h2>Overview</h2>
-<br>
-This example deploys a simple EJB3 Message Driven Bean that processes
-messages sent to a test queue. Once it receives a message and
-"processes" it, the EJB3 MDB sends an acknowledgment message to a
-temporary destination created by the sender for this purpose. The
-example is considered successful if the sender receives the
-acknowledgment message.<br>
-<br>
-<span style="font-style: italic;"></span><br>
+<p>This example deploys a simple Enterprise JavaBean 3.0 Message Driven Bean (MDB), which processes the messages sent to a test queue. Once the queue receives and processes a message, the MDB sends an acknowledgement to a temporary destination created by the sender. This example is considered successful if the sender receives the acknowledgement.</p>
+
<h2>Running the example</h2>
-1. Set up the JBOSS_HOME environment variable to point to the JBoss
-instance you deployed JBoss Messaging into. For example, if you
-deployed JBoss Messaging in <span style="font-family: monospace;">C:\jboss-4.2.0.GA\server\default\deploy</span>
-then your JBOSS_HOME value should be <span
- style="font-family: monospace;">C:\</span><span
- style="font-family: monospace;">jboss-4.2.0.GA</span><br>
-<span style="font-family: monospace;"><br>
-</span><br>
-2. Go to the example's home directory<br>
-<br>
-<div style="margin-left: 40px;"><span style="font-family: monospace;">cd
-...\examples\ejb3mdb</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>Set the JBOSS_HOME environment variable to point to the JBoss Application Server instance into which you deployed JBoss Messaging. For example, if you deployed JBoss Messaging in <span style="font-family: monospace;">C:\jboss-4.2.0.GA\server\default\deploy</span>, your JBOSS_HOME value should be <span style="font-family: monospace;">C:\jboss-4.2.0.GA</span>.</p>
+ </li>
+ <li>
+ <p>Go to the example's home directory:</p>
+ <div style="margin-left: 40px;"><span style="font-family: monospace;">cd ...\examples\ejb3mdb</span></div>
+ </li>
+ <li>
+ Run the example:
+ <div style="margin-left: 40px;"><span style="font-family: monospace;">ant</span></div>
+ </li>
+</ol>
+<p>A successful run will 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>
+ $ ant<br>
Buildfile: build.xml<br>
- <br>
+<br>
identify:<br>
- [echo]
-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
- [echo]
-X
-Running the EJB3 MDB
-example
-X<br>
- [echo]
-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
- [echo] The queue: testQueue<br>
- <br>
+ [echo] XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
+ [echo] X Running the EJB3 MDB example X<br>
+ [echo] XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
+ [echo] The queue: testQueue<br>
+<br>
sanity-check:<br>
- <br>
+<br>
init:<br>
- [mkdir] Created dir:
-C:\work\src\cvs\jboss-head\jms\docs\examples\ejb3mdb\output\classes\META-INF<br>
- [mkdir] Created dir:
-C:\work\src\cvs\jboss-head\jms\docs\examples\ejb3mdb\output\lib\META-INF<br>
- [mkdir] Created dir:
-C:\work\src\cvs\jboss-head\jms\docs\examples\common\output<br>
- <br>
+ [mkdir] Created dir: C:\work\src\cvs\jboss-head\jms\docs\examples\ejb3mdb\output\classes\META-INF<br>
+ [mkdir] Created dir: C:\work\src\cvs\jboss-head\jms\docs\examples\ejb3mdb\output\lib\META-INF<br>
+ [mkdir] Created dir: C:\work\src\cvs\jboss-head\jms\docs\examples\common\output<br>
+<br>
compile:<br>
- [javac] Compiling 2 source files to
-C:\work\src\cvs\jboss-head\jms\docs\examples\common\output<br>
- [javac] Compiling 2 source files to
-C:\work\src\cvs\jboss-head\jms\docs\examples\ejb3mdb\output\classes<br>
- <br>
+ [javac] Compiling 2 source files to C:\work\src\cvs\jboss-head\jms\docs\examples\common\output<br>
+ [javac] Compiling 2 source files to C:\work\src\cvs\jboss-head\jms\docs\examples\ejb3mdb\output\classes<br>
+<br>
jar:<br>
- [jar] Building jar:
-C:\work\src\cvs\jboss-head\jms\docs\examples\ejb3mdb\output\lib\mdb-example.ejb3<br>
- <br>
+ [jar] Building jar: C:\work\src\cvs\jboss-head\jms\docs\examples\ejb3mdb\output\lib\mdb-example.ejb3<br>
+<br>
deploy:<br>
- [copy] Copying 1 file to
-C:\work\src\jboss-4.0.3SP1-src\build\output\jboss-4.0.3SP1\server\messaging\deploy<br>
- <br>
+ [copy] Copying 1 file to C:\work\src\jboss-4.0.3SP1-src\build\output\jboss-4.0.3SP1\server\messaging\deploy<br>
+<br>
sleep:<br>
- [echo] Sleeping for 5 seconds ...<br>
- <br>
+ [echo] Sleeping for 5 seconds ...<br>
+<br>
run:<br>
- <br>
+<br>
send:<br>
- [java] Queue /queue/testQueue exists<br>
- [java] The Hello! message was successfully
-sent to the testQueue queue<br>
- [java] Received message: !olleH<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>
+ [java] Queue /queue/testQueue exists<br>
+ [java] The Hello! message was successfully sent to the testQueue queue<br>
+ [java] Received message: !olleH<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>
undeploy:<br>
- [delete] Deleting:
-C:\work\src\jboss-4.2.0.GA\build\output\jboss-4.0.3SP1\server\messaging\deploy\mdb-example.ejb3<br>
- <br>
+ [delete] Deleting: C:\work\src\jboss-4.2.0.GA\build\output\jboss-4.0.3SP1\server\messaging\deploy\mdb-example.ejb3<br>
+<br>
BUILD SUCCESSFUL<br>
-Total time: 10 seconds<br>
- <br>
+Total time: 10 seconds
</td>
</tr>
</tbody>
</table>
-<br>
+
+
<h2>Troubleshooting</h2>
-<br>
-<h3>2. I get <span style="font-family: monospace;">"javax.jms.JMSSecurityException:
-User null is NOT authenticated" <br>
-</span></h3>
-You probably didn't install JBoss Messaging correctly. A fresh JBoss
-Messaging installation requires changes in the security configuration
-of a <span style="font-family: monospace;">default </span>JBoss
-instance, specifically a properly configured "<small><span
- style="font-family: courier new,courier,monospace;">messaging</span></small>"
-security domain. Follow the instructions from the "Installation"
-paragraph of the release documentation. <br>
-<br>
-<br style="font-family: courier new,courier,monospace;">
-<hr
- style="width: 100%; height: 2px; font-family: courier new,courier,monospace;"><br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
+<h3>1. I get a <span style="font-family: monospace;">"javax.jms.JMSSecurityException:
+User null is NOT authenticated"</span> exception.</h3>
+<p>JBoss Messaging may not have been installed correctly. A fresh JBoss Messaging installation requires changes to the security configuration of a <span style="font-family: monospace;">default</span> JBoss instance. In particular, you must configure a <span style="font-family: courier new,courier,monospace;">messaging</span> security domain. Follow the instructions in the <emphasis>Installation</emphasis> section of the release documentation.</p>
</body>
</html>
More information about the jboss-cvs-commits
mailing list