You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by de...@apache.org on 2013/07/12 14:46:31 UTC

svn commit: r869232 [15/44] - in /websites/production/activemq/content: ./ cache/ cms/ nms/ styles/highlighter/ styles/highlighter/scripts/ styles/highlighter/styles/ visualisation.thumbs/ web-console.thumbs/

Modified: websites/production/activemq/content/inbound-communication.html
==============================================================================
--- websites/production/activemq/content/inbound-communication.html (original)
+++ websites/production/activemq/content/inbound-communication.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,17 @@
     </style>
     <![endif]-->
 
+          <link href='http://activemq.apache.org/styles/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' /> 
+      <link href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css' rel='stylesheet' type='text/css' /> 
+      <script src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script> 
+              <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js' type='text/javascript'></script> 
+              <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushXml.js' type='text/javascript'></script> 
+         
+      <script type="text/javascript"> 
+        SyntaxHighlighter.defaults['toolbar'] = false; 
+        SyntaxHighlighter.all(); 
+      </script> 
+    
     <title>
     Apache ActiveMQ &#8482; -- Inbound Communication
     </title>
@@ -50,8 +61,8 @@
       <div>
 
 <!-- Banner -->
-
-	<div id="asf_logo">
+<p>
+	</p><div id="asf_logo">
 	<div id="activemq_logo">
             <a shape="rect" style="float:left; width:280px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:10px; margin-left:100px;" href="http://activemq.apache.org" title="The most popular and powerful open source Message Broker">ActiveMQ</a> &#8482;
             <a shape="rect" style="float:right; width:210px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:15px; margin-right:10px;" href="http://www.apache.org" title="The Apache Software Foundation">ASF</a>
@@ -76,98 +87,102 @@
 
 
 <h2><a shape="rect" name="InboundCommunication-ConfiguringanMDBtoreceivemessagesfromActiveMQ"></a>Configuring an MDB to receive messages from ActiveMQ</h2>
-<p>There are three MDBs declared in the <a shape="rect" href="inbound-communication.data/ejb-jar.xml?version=3&amp;modificationDate=1117035888000">ejb-jar.xml</a> deployment descriptor.  For this example, I will be explaining how to configure the <tt>TopicDurableMDB</tt> to be invoked by JBoss when a message is received on an ActiveMQ Topic.</p>
+<p>There are three MDBs declared in the <a shape="rect" href="inbound-communication.data/ejb-jar.xml?version=3&amp;modificationDate=1117021488000">ejb-jar.xml</a> deployment descriptor.  For this example, I will be explaining how to configure the <tt>TopicDurableMDB</tt> to be invoked by JBoss when a message is received on an ActiveMQ Topic.</p>
 
 <h3><a shape="rect" name="InboundCommunication-TheBean"></a>The Bean</h3>
-<p>In the <a shape="rect" href="inbound-communication.data/ejb-jar.xml?version=3&amp;modificationDate=1117035888000">ejb-jar.xml</a> deployment descriptor, the <tt>TopicDurableMDB</tt> is declared as follows:</p>
+<p>In the <a shape="rect" href="inbound-communication.data/ejb-jar.xml?version=3&amp;modificationDate=1117021488000">ejb-jar.xml</a> deployment descriptor, the <tt>TopicDurableMDB</tt> is declared as follows:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>ejb-jar.xml</b></div><div class="codeContent panelContent">
-<pre class="code-xml"> 
-<span class="code-tag">&lt;message-driven&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[ 
+&lt;message-driven&gt;
    ...
-   <span class="code-tag">&lt;ejb-name&gt;</span>TopicDurableMDB<span class="code-tag">&lt;/ejb-name&gt;</span>
-   <span class="code-tag">&lt;ejb-class&gt;</span>com.panacya.platform.service.bus.mdb.SimpleMessageReceiverBean<span class="code-tag">&lt;/ejb-class&gt;</span>
-   <span class="code-tag">&lt;messaging-type&gt;</span>javax.jms.MessageListener<span class="code-tag">&lt;/messaging-type&gt;</span>
+   &lt;ejb-name&gt;TopicDurableMDB&lt;/ejb-name&gt;
+   &lt;ejb-class&gt;com.panacya.platform.service.bus.mdb.SimpleMessageReceiverBean&lt;/ejb-class&gt;
+   &lt;messaging-type&gt;javax.jms.MessageListener&lt;/messaging-type&gt;
    ...
-   <span class="code-tag">&lt;activation-config&gt;</span>
-      <span class="code-tag">&lt;activation-config-property&gt;</span>
-         <span class="code-tag">&lt;activation-config-property-name&gt;</span>Destination<span class="code-tag">&lt;/activation-config-property-name&gt;</span>
-         <span class="code-tag">&lt;activation-config-property-value&gt;</span>topic.testTopic<span class="code-tag">&lt;/activation-config-property-value&gt;</span>
-      <span class="code-tag">&lt;/activation-config-property&gt;</span>
-      <span class="code-tag">&lt;activation-config-property&gt;</span>
-         <span class="code-tag">&lt;activation-config-property-name&gt;</span>DestinationType<span class="code-tag">&lt;/activation-config-property-name&gt;</span>
-         <span class="code-tag">&lt;activation-config-property-value&gt;</span>javax.jms.Topic<span class="code-tag">&lt;/activation-config-property-value&gt;</span>
-      <span class="code-tag">&lt;/activation-config-property&gt;</span>
+   &lt;activation-config&gt;
+      &lt;activation-config-property&gt;
+         &lt;activation-config-property-name&gt;Destination&lt;/activation-config-property-name&gt;
+         &lt;activation-config-property-value&gt;topic.testTopic&lt;/activation-config-property-value&gt;
+      &lt;/activation-config-property&gt;
+      &lt;activation-config-property&gt;
+         &lt;activation-config-property-name&gt;DestinationType&lt;/activation-config-property-name&gt;
+         &lt;activation-config-property-value&gt;javax.jms.Topic&lt;/activation-config-property-value&gt;
+      &lt;/activation-config-property&gt;
       ...
-   <span class="code-tag">&lt;/activation-config&gt;</span>
+   &lt;/activation-config&gt;
    ...
-<span class="code-tag">&lt;/message-driven&gt;</span>
-</pre>
+&lt;/message-driven&gt;
+]]></script>
 </div></div>
 <p>The <tt>activation-config</tt> element and it's child element, <tt>activation-config-property</tt>, are new elements for EJBs, so you might not be familiar with them.  I won't go into to much detail about them, but it is important to understand that this is the first mechanism you use to link an MDB to a JCA.  </p>
 
 <h3><a shape="rect" name="InboundCommunication-TheConnector"></a>The Connector</h3>
 <p>The two <tt>activation-config-properties</tt> shown above link to the following elements in the <a shape="rect" class="external-link" href="http://activemq.codehaus.org/checkout/activemq/modules/ra/src/rar/META-INF/ra.xml" rel="nofollow">ra.xml</a> file, which is contained within the <a shape="rect" href="jboss-integration.html#JBossIntegration-rarfile" title="The ActiveMQ JCA">activemq-ra-1.2.rar</a> file:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>ra.xml</b></div><div class="codeContent panelContent">
-<pre class="code-xml"><span class="code-tag">&lt;inbound-resourceadapter&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;inbound-resourceadapter&gt;
       ...
-         <span class="code-tag">&lt;activationspec&gt;</span>
-            <span class="code-tag">&lt;activationspec-class&gt;</span>org.activemq.ra.ActiveMQActivationSpec<span class="code-tag">&lt;/activationspec-class&gt;</span>
-            <span class="code-tag">&lt;required-config-property&gt;</span>
-               <span class="code-tag">&lt;config-property-name&gt;</span>Destination<span class="code-tag">&lt;/config-property-name&gt;</span>
-            <span class="code-tag">&lt;/required-config-property&gt;</span>
-            <span class="code-tag">&lt;required-config-property&gt;</span>
-               <span class="code-tag">&lt;config-property-name&gt;</span>DestinationType<span class="code-tag">&lt;/config-property-name&gt;</span>
-            <span class="code-tag">&lt;/required-config-property&gt;</span>
-         <span class="code-tag">&lt;/activationspec&gt;</span>
+         &lt;activationspec&gt;
+            &lt;activationspec-class&gt;org.activemq.ra.ActiveMQActivationSpec&lt;/activationspec-class&gt;
+            &lt;required-config-property&gt;
+               &lt;config-property-name&gt;Destination&lt;/config-property-name&gt;
+            &lt;/required-config-property&gt;
+            &lt;required-config-property&gt;
+               &lt;config-property-name&gt;DestinationType&lt;/config-property-name&gt;
+            &lt;/required-config-property&gt;
+         &lt;/activationspec&gt;
       ...
-<span class="code-tag">&lt;/inbound-resourceadapter&gt;</span>
-</pre>
+&lt;/inbound-resourceadapter&gt;
+]]></script>
 </div></div>
-<p>In the <a shape="rect" href="inbound-communication.data/ejb-jar.xml?version=3&amp;modificationDate=1117035888000">ejb-jar.xml</a> file section shown above, the value of the <tt>Destination</tt> property is set to <tt>topic.testTopic</tt>.  This value is the physical name of the ActiveMQ destination the <tt>TopicDurableMDB</tt> will be receiving messages from and not a JNDI name.  In other words, the value of the <tt>Destination</tt> property has no meaning to JBoss.  It is purely an ActiveMQ setting. </p>
+<p>In the <a shape="rect" href="inbound-communication.data/ejb-jar.xml?version=3&amp;modificationDate=1117021488000">ejb-jar.xml</a> file section shown above, the value of the <tt>Destination</tt> property is set to <tt>topic.testTopic</tt>.  This value is the physical name of the ActiveMQ destination the <tt>TopicDurableMDB</tt> will be receiving messages from and not a JNDI name.  In other words, the value of the <tt>Destination</tt> property has no meaning to JBoss.  It is purely an ActiveMQ setting. </p>
 
 <h3><a shape="rect" name="InboundCommunication-TheGlue"></a>The Glue</h3>
-<p>In JBoss, the thing which connects an inbound JMS destination to an MDB is a JBoss container.  To use ActiveMQ as the inbound message source for the <tt>TopicDurableMDB</tt> we must configure a new JBoss container.  We do this in the <a shape="rect" href="inbound-communication.data/jboss.xml?version=3&amp;modificationDate=1117035888000">jboss.xml</a> file.</p>
+<p>In JBoss, the thing which connects an inbound JMS destination to an MDB is a JBoss container.  To use ActiveMQ as the inbound message source for the <tt>TopicDurableMDB</tt> we must configure a new JBoss container.  We do this in the <a shape="rect" href="inbound-communication.data/jboss.xml?version=3&amp;modificationDate=1117021488000">jboss.xml</a> file.</p>
 
-<p>Three things are needed in the <a shape="rect" href="inbound-communication.data/jboss.xml?version=3&amp;modificationDate=1117035888000">jboss.xml</a> file in order to tie an MDB to a connector.  They are:</p>
+<p>Three things are needed in the <a shape="rect" href="inbound-communication.data/jboss.xml?version=3&amp;modificationDate=1117021488000">jboss.xml</a> file in order to tie an MDB to a connector.  They are:</p>
 
 <ol><li>Configure a new <tt>invoker-proxy-binding</tt> that declares <tt>JBossMessageEndpointFactory</tt> as the <tt>proxy-factory</tt></li><li>Configure a new MDB container which uses the new <tt>invoker-proxy-binding</tt></li><li>Declare which MDBs should go into the new container</li></ol>
 
 
 <p>This first snippet configures a new <tt>invoker-proxy-binding</tt>:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>jboss.xml &#8211; invoker-proxy-binding</b></div><div class="codeContent panelContent">
-<pre class="code-xml"><span class="code-tag">&lt;invoker-proxy-binding&gt;</span>
-   <span class="code-tag">&lt;name&gt;</span>activemq-message-driven-bean<span class="code-tag">&lt;/name&gt;</span>
-   <span class="code-tag">&lt;invoker-mbean&gt;</span>default<span class="code-tag">&lt;/invoker-mbean&gt;</span>
-   <span class="code-tag">&lt;proxy-factory&gt;</span>org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory<span class="code-tag">&lt;/proxy-factory&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;invoker-proxy-binding&gt;
+   &lt;name&gt;activemq-message-driven-bean&lt;/name&gt;
+   &lt;invoker-mbean&gt;default&lt;/invoker-mbean&gt;
+   &lt;proxy-factory&gt;org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory&lt;/proxy-factory&gt;
    ...
-<span class="code-tag">&lt;/invoker-proxy-binding&gt;</span>
-</pre>
+&lt;/invoker-proxy-binding&gt;
+]]></script>
 </div></div>
 
 <p>This second snippet configures a new MDB container which uses the <tt>invoker-proxy-binding</tt> configured above:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>jboss.xml &#8211; container-configuration</b></div><div class="codeContent panelContent">
-<pre class="code-xml"><span class="code-tag">&lt;container-configuration&gt;</span>
-   <span class="code-tag">&lt;container-name&gt;</span>ActiveMQ Message Driven Bean<span class="code-tag">&lt;/container-name&gt;</span>
-   <span class="code-tag">&lt;call-logging&gt;</span>false<span class="code-tag">&lt;/call-logging&gt;</span>
-   <span class="code-tag">&lt;invoker-proxy-binding-name&gt;</span>activemq-message-driven-bean<span class="code-tag">&lt;/invoker-proxy-binding-name&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;container-configuration&gt;
+   &lt;container-name&gt;ActiveMQ Message Driven Bean&lt;/container-name&gt;
+   &lt;call-logging&gt;false&lt;/call-logging&gt;
+   &lt;invoker-proxy-binding-name&gt;activemq-message-driven-bean&lt;/invoker-proxy-binding-name&gt;
    ...
-<span class="code-tag">&lt;/container-configuration&gt;</span>
-</pre>
+&lt;/container-configuration&gt;
+]]></script>
 </div></div>
 
 <p>This third snippet links the <tt>TopicDurableMDB</tt> to the <a shape="rect" href="jboss-integration.html#JBossIntegration-rarfile" title="The ActiveMQ JCA">activemq-ra-1.2.rar</a> connector and tells JBoss to put instances of <tt>TopicDurableMDB</tt> into the new MDB container declared above:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>jboss.xml &#8211; TopicDurableMDB</b></div><div class="codeContent panelContent">
-<pre class="code-xml"><span class="code-tag">&lt;message-driven&gt;</span>
-   <span class="code-tag">&lt;ejb-name&gt;</span>TopicDurableMDB<span class="code-tag">&lt;/ejb-name&gt;</span>
-   <span class="code-tag">&lt;resource-adapter-name&gt;</span>activemq-ra-1.2-SNAPSHOT.rar<span class="code-tag">&lt;/resource-adapter-name&gt;</span>
-   <span class="code-tag">&lt;configuration-name&gt;</span>ActiveMQ Message Driven Bean<span class="code-tag">&lt;/configuration-name&gt;</span>
-<span class="code-tag">&lt;/message-driven&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;message-driven&gt;
+   &lt;ejb-name&gt;TopicDurableMDB&lt;/ejb-name&gt;
+   &lt;resource-adapter-name&gt;activemq-ra-1.2-SNAPSHOT.rar&lt;/resource-adapter-name&gt;
+   &lt;configuration-name&gt;ActiveMQ Message Driven Bean&lt;/configuration-name&gt;
+&lt;/message-driven&gt;
+]]></script>
 </div></div>
 
 <p>The above examples highlight the key configuration settings needed to enable MDBs deployed in JBoss to process messages from an ActiveMQ destination.  </p>
 
-<p>You can try the above example, plus a few more, by downloading the <a shape="rect" href="inbound-communication.data/activemq-jboss-test.zip?version=3&amp;modificationDate=1117035755000">activemq-jboss-test.zip</a> file which contains the complete sample project.</p>
+<p>You can try the above example, plus a few more, by downloading the <a shape="rect" href="inbound-communication.data/activemq-jboss-test.zip?version=3&amp;modificationDate=1117021355000">activemq-jboss-test.zip</a> file which contains the complete sample project.</p>
           </div>
         </td>
         <td valign="top">
@@ -181,8 +196,8 @@
 
 <h3><a shape="rect" name="Navigation-Search"></a>Search</h3>
 
-
-<div>
+<p>
+</p><div>
 <form enctype="application/x-www-form-urlencoded" method="get" action="http://www.google.com/search" style="font-size: 10px;">
 <input type="hidden" name="ie" value="UTF-8">
 <input type="hidden" name="oe" value="UTF-8">

Modified: websites/production/activemq/content/index.html
==============================================================================
--- websites/production/activemq/content/index.html (original)
+++ websites/production/activemq/content/index.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- Index
     </title>
@@ -50,8 +51,8 @@
       <div>
 
 <!-- Banner -->
-
-	<div id="asf_logo">
+<p>
+	</p><div id="asf_logo">
 	<div id="activemq_logo">
             <a shape="rect" style="float:left; width:280px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:10px; margin-left:100px;" href="http://activemq.apache.org" title="The most popular and powerful open source Message Broker">ActiveMQ</a> &#8482;
             <a shape="rect" style="float:right; width:210px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:15px; margin-right:10px;" href="http://www.apache.org" title="The Apache Software Foundation">ASF</a>
@@ -105,7 +106,7 @@
            </a>            </span>
             <span class="blogHeading">
                 </span><div class="page-metadata not-personal"><a shape="rect" class="url fn confluence-userlink" href="https://cwiki.apache.org/confluence/display/~tabish121">Timothy Bish</a> posted on Jun 10, 2013</div>
-                <a shape="rect" class="blogHeading" href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/2013/06/10/Apache.NMS.ActiveMQ+v1.6.0+released">Apache.NMS.ActiveMQ v1.6.0 released</a>
+                <a shape="rect" class="blogHeading" href="2013/06/10/apachenmsactivemq-v160-released.html">Apache.NMS.ActiveMQ v1.6.0 released</a>
             
         </div>
     
@@ -113,7 +114,12 @@
         <p>After almost a year we've <a shape="rect" class="external-link" href="http://activemq.apache.org/nms/apachenmsactivemq-v160.html">released v1.6.0</a> of Apache.NMS.ActiveMQ.  This version offers many new features and fixes many issues that were found over the course of the last year.  The release implement the Apache.NMS API v1.6.0</p>
     </div>
     
+            
+        <div class="endsection">
         
+            <a shape="rect" href="/confluence/pages/editblogpost.action?pageId=31824409">Edit</a>
+                    
+                    </div>
     </div>
     
         
@@ -125,7 +131,7 @@
            </a>            </span>
             <span class="blogHeading">
                 </span><div class="page-metadata not-personal"><a shape="rect" class="url fn confluence-userlink" href="https://cwiki.apache.org/confluence/display/~gtully">Gary Tully</a> posted on Feb 12, 2013</div>
-                <a shape="rect" class="blogHeading" href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/2013/02/12/Apache+ActiveMQ+5.8.0+Released">Apache ActiveMQ 5.8.0 Released</a>
+                <a shape="rect" class="blogHeading" href="2013/02/12/apache-activemq-580-released.html">Apache ActiveMQ 5.8.0 Released</a>
             
         </div>
     
@@ -139,9 +145,12 @@
 <p>A big thanks to everyone who contributed to this release.</p>
     </div>
     
-        
+            
         <div class="endsection">
         
+            <a shape="rect" href="/confluence/pages/editblogpost.action?pageId=30753318">Edit</a>
+                            &#160;|&#160;
+                    
                              Labels:           <a shape="rect" class="label" rel="nofollow" href="/confluence/label/release">release</a>,  <a shape="rect" class="label" rel="nofollow" href="/confluence/label/activemq">activemq</a>                </div>
     </div>
     
@@ -154,15 +163,20 @@
            </a>            </span>
             <span class="blogHeading">
                 </span><div class="page-metadata not-personal"><a shape="rect" class="url fn confluence-userlink" href="https://cwiki.apache.org/confluence/display/~tabish121">Timothy Bish</a> posted on Dec 21, 2012</div>
-                <a shape="rect" class="blogHeading" href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/2012/12/21/ActiveMQ-CPP+version+3.5.0+released.">ActiveMQ-CPP version 3.5.0 released.</a>
+                <a shape="rect" class="blogHeading" href="2012/12/21/activemq-cpp-version-350-released.html">ActiveMQ-CPP version 3.5.0 released.</a>
             
         </div>
     
     <div class="wiki-content">
-        <p>The newest release of ActiveMQ-CPP is out, you can download the source bundles <a shape="rect" href="https://cwiki.apache.org/confluence/display/AMQCPP/ActiveMQ-CPP+3.5.0+Release" title="ActiveMQ-CPP 3.5.0 Release">here</a>.</p>
+        <p>The newest release of ActiveMQ-CPP is out, you can download the source bundles <a shape="rect" href="cms/activemq-cpp-350-release.html" title="ActiveMQ-CPP 3.5.0 Release">here</a>.</p>
     </div>
     
+            
+        <div class="endsection">
         
+            <a shape="rect" href="/confluence/pages/editblogpost.action?pageId=30746072">Edit</a>
+                    
+                    </div>
     </div>
     
         
@@ -174,27 +188,32 @@
            </a>            </span>
             <span class="blogHeading">
                 </span><div class="page-metadata not-personal"><a shape="rect" class="url fn confluence-userlink" href="https://cwiki.apache.org/confluence/display/~tabish121">Timothy Bish</a> posted on Oct 12, 2012</div>
-                <a shape="rect" class="blogHeading" href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/2012/10/12/ActiveMQ-CPP+v3.4.5+Released">ActiveMQ-CPP v3.4.5 Released</a>
+                <a shape="rect" class="blogHeading" href="2012/10/12/activemq-cpp-v345-released.html">ActiveMQ-CPP v3.4.5 Released</a>
             
         </div>
     
     <div class="wiki-content">
-        <p>The newest release of ActiveMQ-CPP is out, you can <a shape="rect" href="https://cwiki.apache.org/confluence/display/AMQCPP/ActiveMQ-CPP+3.4.5+Release" title="ActiveMQ-CPP 3.4.5 Release">download</a> the source bundles here.</p>
+        <p>The newest release of ActiveMQ-CPP is out, you can <a shape="rect" href="cms/activemq-cpp-345-release.html" title="ActiveMQ-CPP 3.4.5 Release">download</a> the source bundles here.</p>
     </div>
     
+            
+        <div class="endsection">
         
+            <a shape="rect" href="/confluence/pages/editblogpost.action?pageId=30738986">Edit</a>
+                    
+                    </div>
     </div>
     
         
 <div class="blog-post-listing">
             <div class="logo-heading-block">
             <span class="logoBlock">
-                <a shape="rect" class="userLogoLink" href="https://cwiki.apache.org/confluence/display/~dejanb">
-               <img class="userLogo logo" src="https://cwiki.apache.org/confluence/images/icons/profilepics/default.gif" alt="User icon: dejanb" title="dejanb">
-           </a>            </span>
+                <a shape="rect" class="userLogoLink" href="/confluence/users/editmyprofilepicture.action" title="Add a picture of yourself">
+            <img class="userLogo logo" src="https://cwiki.apache.org/confluence/s/en/2176/1/_/images/icons/profilepics/add_profile_pic.png" alt="User icon: Add a picture of yourself">
+        </a>            </span>
             <span class="blogHeading">
                 </span><div class="page-metadata not-personal"><a shape="rect" class="url fn confluence-userlink" href="https://cwiki.apache.org/confluence/display/~dejanb">Dejan Bosanac</a> posted on Oct 08, 2012</div>
-                <a shape="rect" class="blogHeading" href="https://cwiki.apache.org/confluence/display/ACTIVEMQ/2012/10/08/Apache+ActiveMQ+5.7.0+Released">Apache ActiveMQ 5.7.0 Released</a>
+                <a shape="rect" class="blogHeading" href="2012/10/08/apache-activemq-570-released.html">Apache ActiveMQ 5.7.0 Released</a>
             
         </div>
     
@@ -202,7 +221,12 @@
         <p>The ActiveMQ team is delighted to announce Apache ActiveMQ 5.7.0. All details of the release and download links can be found on the <a shape="rect" href="activemq-570-release.html" title="ActiveMQ 5.7.0 Release">release page</a>.</p>
     </div>
     
+            
+        <div class="endsection">
         
+            <a shape="rect" href="/confluence/pages/editblogpost.action?pageId=30738258">Edit</a>
+                    
+                    </div>
     </div>
     
 
@@ -222,8 +246,8 @@
 
 <h3><a shape="rect" name="Navigation-Search"></a>Search</h3>
 
-
-<div>
+<p>
+</p><div>
 <form enctype="application/x-www-form-urlencoded" method="get" action="http://www.google.com/search" style="font-size: 10px;">
 <input type="hidden" name="ie" value="UTF-8">
 <input type="hidden" name="oe" value="UTF-8">

Modified: websites/production/activemq/content/initial-configuration.html
==============================================================================
--- websites/production/activemq/content/initial-configuration.html (original)
+++ websites/production/activemq/content/initial-configuration.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- Initial Configuration
     </title>
@@ -50,8 +51,8 @@
       <div>
 
 <!-- Banner -->
-
-	<div id="asf_logo">
+<p>
+	</p><div id="asf_logo">
 	<div id="activemq_logo">
             <a shape="rect" style="float:left; width:280px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:10px; margin-left:100px;" href="http://activemq.apache.org" title="The most popular and powerful open source Message Broker">ActiveMQ</a> &#8482;
             <a shape="rect" style="float:right; width:210px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:15px; margin-right:10px;" href="http://www.apache.org" title="The Apache Software Foundation">ASF</a>
@@ -149,8 +150,8 @@
 
 <h3><a shape="rect" name="Navigation-Search"></a>Search</h3>
 
-
-<div>
+<p>
+</p><div>
 <form enctype="application/x-www-form-urlencoded" method="get" action="http://www.google.com/search" style="font-size: 10px;">
 <input type="hidden" name="ie" value="UTF-8">
 <input type="hidden" name="oe" value="UTF-8">

Modified: websites/production/activemq/content/installation.html
==============================================================================
--- websites/production/activemq/content/installation.html (original)
+++ websites/production/activemq/content/installation.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,16 @@
     </style>
     <![endif]-->
 
+          <link href='http://activemq.apache.org/styles/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' /> 
+      <link href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css' rel='stylesheet' type='text/css' /> 
+      <script src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script> 
+              <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js' type='text/javascript'></script> 
+         
+      <script type="text/javascript"> 
+        SyntaxHighlighter.defaults['toolbar'] = false; 
+        SyntaxHighlighter.all(); 
+      </script> 
+    
     <title>
     Apache ActiveMQ &#8482; -- Installation
     </title>
@@ -50,8 +60,8 @@
       <div>
 
 <!-- Banner -->
-
-	<div id="asf_logo">
+<p>
+	</p><div id="asf_logo">
 	<div id="activemq_logo">
             <a shape="rect" style="float:left; width:280px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:10px; margin-left:100px;" href="http://activemq.apache.org" title="The most popular and powerful open source Message Broker">ActiveMQ</a> &#8482;
             <a shape="rect" style="float:right; width:210px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:15px; margin-right:10px;" href="http://www.apache.org" title="The Apache Software Foundation">ASF</a>
@@ -80,9 +90,10 @@
 
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">cd bin
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+cd bin
 activemq
-</pre>
+]]></script>
 </div></div>
 
 <p>The ActiveMQ broker should now run. You can configure the broker by specifying an <a shape="rect" href="xml-configuration.html" title="Xml Configuration">Xml Configuration</a> file as a parameter to the <em>activemq</em> command.</p>
@@ -105,8 +116,8 @@ activemq
 
 <h3><a shape="rect" name="Navigation-Search"></a>Search</h3>
 
-
-<div>
+<p>
+</p><div>
 <form enctype="application/x-www-form-urlencoded" method="get" action="http://www.google.com/search" style="font-size: 10px;">
 <input type="hidden" name="ie" value="UTF-8">
 <input type="hidden" name="oe" value="UTF-8">

Modified: websites/production/activemq/content/integrating-apache-activemq-with-glassfish.html
==============================================================================
--- websites/production/activemq/content/integrating-apache-activemq-with-glassfish.html (original)
+++ websites/production/activemq/content/integrating-apache-activemq-with-glassfish.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- Integrating Apache ActiveMQ with Glassfish
     </title>
@@ -50,8 +51,8 @@
       <div>
 
 <!-- Banner -->
-
-	<div id="asf_logo">
+<p>
+	</p><div id="asf_logo">
 	<div id="activemq_logo">
             <a shape="rect" style="float:left; width:280px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:10px; margin-left:100px;" href="http://activemq.apache.org" title="The most popular and powerful open source Message Broker">ActiveMQ</a> &#8482;
             <a shape="rect" style="float:right; width:210px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:15px; margin-right:10px;" href="http://www.apache.org" title="The Apache Software Foundation">ASF</a>
@@ -86,8 +87,8 @@
 
 <h3><a shape="rect" name="Navigation-Search"></a>Search</h3>
 
-
-<div>
+<p>
+</p><div>
 <form enctype="application/x-www-form-urlencoded" method="get" action="http://www.google.com/search" style="font-size: 10px;">
 <input type="hidden" name="ie" value="UTF-8">
 <input type="hidden" name="oe" value="UTF-8">

Modified: websites/production/activemq/content/integrating-apache-activemq-with-jboss.html
==============================================================================
--- websites/production/activemq/content/integrating-apache-activemq-with-jboss.html (original)
+++ websites/production/activemq/content/integrating-apache-activemq-with-jboss.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,17 @@
     </style>
     <![endif]-->
 
+          <link href='http://activemq.apache.org/styles/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' /> 
+      <link href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css' rel='stylesheet' type='text/css' /> 
+      <script src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script> 
+              <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js' type='text/javascript'></script> 
+              <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushXml.js' type='text/javascript'></script> 
+         
+      <script type="text/javascript"> 
+        SyntaxHighlighter.defaults['toolbar'] = false; 
+        SyntaxHighlighter.all(); 
+      </script> 
+    
     <title>
     Apache ActiveMQ &#8482; -- Integrating Apache ActiveMQ with JBoss
     </title>
@@ -50,8 +61,8 @@
       <div>
 
 <!-- Banner -->
-
-	<div id="asf_logo">
+<p>
+	</p><div id="asf_logo">
 	<div id="activemq_logo">
             <a shape="rect" style="float:left; width:280px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:10px; margin-left:100px;" href="http://activemq.apache.org" title="The most popular and powerful open source Message Broker">ActiveMQ</a> &#8482;
             <a shape="rect" style="float:right; width:210px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:15px; margin-right:10px;" href="http://www.apache.org" title="The Apache Software Foundation">ASF</a>
@@ -92,12 +103,12 @@
 
 <p>The first step in this process is to install Java 1.5 and verify that it runs correctly. Using the link above, find, download and install the correct version of Java for your platform. Once Java is installed and in the PATH, test it to see that it runs correctly using the following command:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 $ java -version
-java version <span class="code-quote">"1.5.0_06"</span>
-Java(TM) 2 <span class="code-object">Runtime</span> Environment, Standard Edition (build 1.5.0_06-112)
+java version "1.5.0_06"
+Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
 Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
-</pre>
+]]></script>
 </div></div>
 <p>Depending upon your platform and the exact build number of Java 1.5, your output may vary slightly. As long as it's Java 1.5 and the version information is output, you should be ready to proceed to the next step.</p>
 
@@ -105,10 +116,10 @@ Java HotSpot(TM) Client VM (build 1.5.0_
 
 <p>The second step is to install Apache Ant. Simply download it using the link above, expand somewhere on your hard drive and place the <tt>bin</tt> directory in the PATH. This will allow you to test it quickly using the commands below:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 $ ant -version
 Apache Ant version 1.6.2 compiled on July 16 2004
-</pre>
+]]></script>
 </div></div>
 <p>As long as you see the version output above, Ant should be usable. If you did not see the version output or received an error, consult the Ant documentation or mailing list archives to work out the issue. Please note that Ant is not used until the end of this whole exercise to test the integration.</p>
 
@@ -116,9 +127,9 @@ Apache Ant version 1.6.2 compiled on Jul
 
 <p>The third step in this process is to install JBoss and make sure it runs correctly before installing and configuring ActiveMQ. Upon downloading JBoss-4.0.4, expand it in a place where it can create a directory. Next, run the server using the following commands:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 $ cd jboss-4.0.4.GA
-$ ./bin/run.sh -c <span class="code-keyword">default</span>
+$ ./bin/run.sh -c default
 =========================================================================
 
   JBoss Bootstrap Environment
@@ -138,17 +149,17 @@ $ ./bin/run.sh -c <span class="code-keyw
 15:34:48,001 INFO  [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
 15:34:48,004 INFO  [Server] Home Dir: /opt/jboss-4.0.4.GA
 15:34:48,005 INFO  [Server] Home URL: file:/opt/jboss-4.0.4.GA/
-15:34:48,007 INFO  [Server] Patch URL: <span class="code-keyword">null</span>
-15:34:48,007 INFO  [Server] Server Name: <span class="code-keyword">default</span>
-15:34:48,007 INFO  [Server] Server Home Dir: /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>
-15:34:48,011 INFO  [Server] Server Home URL: file:/opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/
-15:34:48,012 INFO  [Server] Server Log Dir: /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/log
-15:34:48,017 INFO  [Server] Server Temp Dir: /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/tmp
+15:34:48,007 INFO  [Server] Patch URL: null
+15:34:48,007 INFO  [Server] Server Name: default
+15:34:48,007 INFO  [Server] Server Home Dir: /opt/jboss-4.0.4.GA/server/default
+15:34:48,011 INFO  [Server] Server Home URL: file:/opt/jboss-4.0.4.GA/server/default/
+15:34:48,012 INFO  [Server] Server Log Dir: /opt/jboss-4.0.4.GA/server/default/log
+15:34:48,017 INFO  [Server] Server Temp Dir: /opt/jboss-4.0.4.GA/server/default/tmp
 15:34:48,022 INFO  [Server] Root Deployment Filename: jboss-service.xml
 ...
 15:35:17,360 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] 
 Started in 22s:238ms
-</pre>
+]]></script>
 </div></div>
 <p>The first few lines of output from the JBoss startup indicates the configuration being used but the last line is the most important one. It tells you that JBoss has been started successfully on your system. For an extra measure of assurance, visit <a shape="rect" class="external-link" href="http://localhost:8080/web-console/" rel="nofollow">http://localhost:8080/web-console/</a> in a web browser to make sure you are able to see the JBoss web console. If you can see this console, everything should be ready to go.</p>
 
@@ -160,7 +171,7 @@ Started in 22s:238ms
 
 <p>The fourth step is to prepare your environment for integrating ActiveMQ with JBoss. If you haven't done so already, download Apache ActiveMQ using the link above. As of the writing of this article, the latest released version is 4.0.2-RC4. Upon downloading this archive, expand it in a place where it can create a directory, preferably in the same location where JBoss was expanded. Verify that the ActiveMQ RAR file is included using the following commands:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 $ cd ./incubator-activemq-4.0.2.tar.gz
 $ jar tvf /opt/incubator-activemq-4.0.2/lib/optional/activemq-ra-4.0.2.rar
      0 Mon Sep 25 19:00:50 MDT 2006 META-INF/
@@ -181,25 +192,25 @@ $ jar tvf /opt/incubator-activemq-4.0.2/
 358085 Tue Aug 01 12:23:26 MDT 2006 log4j-1.2.12.jar
    523 Mon Sep 25 19:00:50 MDT 2006 META-INF/DISCLAIMER.txt
  11359 Mon Sep 25 19:00:50 MDT 2006 META-INF/LICENSE.txt
-</pre>
+]]></script>
 </div></div>
 <p>This is simply a table of contents of the RAR file. There should only be one reason that this will fail - an incomplete download of the ActiveMQ tarball or zip file. Beyond that, depending on the version you download, some of the library versions may be slightly different.</p>
 
 <p>Now go back to the JBoss installation and create a directory for ActiveMQ in the JBoss deploy directory for the default JBoss context. Below are the commands to achieve this task:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-$ mkdir /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/deploy/activemq-ra.rar
-$ cd /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/deploy/activemq-ra.rar
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+$ mkdir /opt/jboss-4.0.4.GA/server/default/deploy/activemq-ra.rar
+$ cd /opt/jboss-4.0.4.GA/server/default/deploy/activemq-ra.rar
 $ pwd
-/opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/deploy/activemq-ra.rar
-</pre>
+/opt/jboss-4.0.4.GA/server/default/deploy/activemq-ra.rar
+]]></script>
 </div></div>
 <div class="panel" style="background-color: #ccccff;border-width: 1px;"><div class="panelContent" style="background-color: #ccccff;">
 <p><b><em>NOTE:</em></b> The creation of a directory is not required but is the easiest way to set up the ActiveMQ RAR when you're just getting started. This is due to the flexibility it affords during the development phase for the configuration to be changed very easily. The alternative is to JAR up the directory as a RAR file once the configuration is solid enough that it no longer needs to be changed. But leaving everything in a directory during development is the easiest path.</p>
 </div></div>
 <p>Now expand the activemq-ra-4.0.2.rar into the current working directory:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 jar xvf /opt/incubator-activemq-4.0.2/lib/optional/activemq-ra-4.0.2.rar
   created: META-INF/
  inflated: META-INF/MANIFEST.MF
@@ -219,11 +230,11 @@ jar xvf /opt/incubator-activemq-4.0.2/li
  inflated: log4j-1.2.12.jar
  inflated: META-INF/DISCLAIMER.txt
  inflated: META-INF/LICENSE.txt
-</pre>
+]]></script>
 </div></div>
 <p>Below is a quick listing of the contents of that directory:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 $ ls -l
 total 12848
 drwxr-xr-x   6 bsnyder  bsnyder      204 Oct 16 16:27 META-INF
@@ -238,7 +249,7 @@ drwxr-xr-x   6 bsnyder  bsnyder      204
 -rw-r--r--   1 bsnyder  bsnyder   358085 Oct 16 16:27 log4j-1.2.12.jar
 -rw-r--r--   1 bsnyder  bsnyder  1901653 Oct 16 16:27 spring-1.2.6.jar
 -rw-r--r--   1 bsnyder  bsnyder    94713 Oct 16 16:27 xbean-spring-2.2.jar
-</pre>
+]]></script>
 </div></div>
 <p>Now it's time to configure ActiveMQ.</p>
 
@@ -246,9 +257,9 @@ drwxr-xr-x   6 bsnyder  bsnyder      204
 
 <p>The fifth step is to actually configure ActiveMQ for integration with JBoss. Remember that you should be sitting in the following directory:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-/opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/deploy/activemq-ra.rar
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+/opt/jboss-4.0.4.GA/server/default/deploy/activemq-ra.rar
+]]></script>
 </div></div>
 <p>You may or may not have installed JBoss in <tt>/opt</tt>, that doesn't particularly matter. What does matter is that you're sitting in the directory that was created above to hold the contents of the expanded ActiveMQ RAR file.</p>
 <div class="panel" style="background-color: #ccccff;border-width: 1px;"><div class="panelContent" style="background-color: #ccccff;">
@@ -272,43 +283,43 @@ drwxr-xr-x   6 bsnyder  bsnyder      204
 </div></div>
 <p>Open the <tt>META-INF/ra.xml</tt> file and look for the following section:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>META-INF/ra.xml</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;config-property&gt;
     &lt;description&gt;
-      The URL to the ActiveMQ server that you want <span class="code-keyword">this</span> connection to connect to.  If using
-      an embedded broker, <span class="code-keyword">this</span> value should be 'vm:<span class="code-comment">//localhost'.
-</span>    &lt;/description&gt;
+      The URL to the ActiveMQ server that you want this connection to connect to.  If using
+      an embedded broker, this value should be 'vm://localhost'.
+    &lt;/description&gt;
     &lt;config-property-name&gt;ServerUrl&lt;/config-property-name&gt;
-    &lt;config-property-type&gt;java.lang.<span class="code-object">String</span>&lt;/config-property-type&gt;
-    &lt;config-property-value&gt;tcp:<span class="code-comment">//localhost:61616&lt;/config-property-value&gt;
-</span>&lt;!-- &lt;config-property-value&gt;vm:<span class="code-comment">//localhost&lt;/config-property-value&gt; --&gt;
-</span>  &lt;/config-property&gt;
-</pre>
+    &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
+    &lt;config-property-value&gt;tcp://localhost:61616&lt;/config-property-value&gt;
+&lt;!-- &lt;config-property-value&gt;vm://localhost&lt;/config-property-value&gt; --&gt;
+  &lt;/config-property&gt;
+]]></script>
 </div></div>
 <p>The section above is used to tell the ActiveMQ RAR where ActiveMQ is located. By default, the in-VM protocol is commented out in favor of the tcp protocol. This will find ActiveMQ running on any interface on the localhost on port 61616. It's ok to just leave this alone if you don't mind the inefficiency of communicating within the JVM via TCP. However, it is recommended that <tt>vm://</tt> transport be used for an embedded broker, so comment out the <tt>tcp://</tt> transport and uncomment the <tt>vm://</tt> transport. Below is an example of this:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>META-INF/ra.xml</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;config-property&gt;
     &lt;description&gt;
-      The URL to the ActiveMQ server that you want <span class="code-keyword">this</span> connection to connect to.  If using
-      an embedded broker, <span class="code-keyword">this</span> value should be 'vm:<span class="code-comment">//localhost'.
-</span>    &lt;/description&gt;
+      The URL to the ActiveMQ server that you want this connection to connect to.  If using
+      an embedded broker, this value should be 'vm://localhost'.
+    &lt;/description&gt;
     &lt;config-property-name&gt;ServerUrl&lt;/config-property-name&gt;
-    &lt;config-property-type&gt;java.lang.<span class="code-object">String</span>&lt;/config-property-type&gt;
-    &lt;!-- &lt;config-property-value&gt;tcp:<span class="code-comment">//localhost:61616&lt;/config-property-value&gt; --&gt;
-</span>    &lt;config-property-value&gt;vm:<span class="code-comment">//localhost&lt;/config-property-value&gt;
-</span>  &lt;/config-property&gt;
-</pre>
+    &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
+    &lt;!-- &lt;config-property-value&gt;tcp://localhost:61616&lt;/config-property-value&gt; --&gt;
+    &lt;config-property-value&gt;vm://localhost&lt;/config-property-value&gt;
+  &lt;/config-property&gt;
+]]></script>
 </div></div>
 <p>Because we're embedding ActiveMQ inside of JBoss, it is more efficient to use the <tt>vm://</tt> transport, rather than to perform messaging over the <tt>tcp://</tt> transport.</p>
 
 <p>Now look further down the <tt>META-INF/ra.xml</tt> file and locate the following section:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>META-INF/ra.xml</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;config-property&gt;
     &lt;description&gt;
       Sets the XML configuration file used to configure the embedded ActiveMQ broker via
-      Spring <span class="code-keyword">if</span> using embedded mode.
+      Spring if using embedded mode.
 
       BrokerXmlConfig is the filename which is assumed to be on the classpath unless
       a URL is specified. So a value of foo/bar.xml would be assumed to be on the
@@ -316,21 +327,21 @@ drwxr-xr-x   6 bsnyder  bsnyder      204
       Any valid URL string is supported.
     &lt;/description&gt;
     &lt;config-property-name&gt;BrokerXmlConfig&lt;/config-property-name&gt;
-    &lt;config-property-type&gt;java.lang.<span class="code-object">String</span>&lt;/config-property-type&gt;
+    &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
     &lt;config-property-value&gt;&lt;/config-property-value&gt;
     &lt;!--
     &lt;config-property-value&gt;xbean:broker-config.xml&lt;/config-property-value&gt;
     --&gt;
   &lt;/config-property&gt;
-</pre>
+]]></script>
 </div></div>
 <p>The section above needs to be changed to uncomment the second to last line and remove/replace the empty element that is above it. Below is an example of how this should be changed:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>META-INF/ra.xml</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;config-property&gt;
     &lt;description&gt;
       Sets the XML configuration file used to configure the embedded ActiveMQ broker via
-      Spring <span class="code-keyword">if</span> using embedded mode.
+      Spring if using embedded mode.
 
       BrokerXmlConfig is the filename which is assumed to be on the classpath unless
       a URL is specified. So a value of foo/bar.xml would be assumed to be on the
@@ -338,73 +349,73 @@ drwxr-xr-x   6 bsnyder  bsnyder      204
       Any valid URL string is supported.
     &lt;/description&gt;
     &lt;config-property-name&gt;BrokerXmlConfig&lt;/config-property-name&gt;
-    &lt;config-property-type&gt;java.lang.<span class="code-object">String</span>&lt;/config-property-type&gt;
+    &lt;config-property-type&gt;java.lang.String&lt;/config-property-type&gt;
     &lt;config-property-value&gt;xbean:broker-config.xml&lt;/config-property-value&gt;
   &lt;/config-property&gt;
-</pre>
+]]></script>
 </div></div>
 <p>This change tells the ActiveMQ RAR to read a configuration file named <tt>broker-config.xml</tt> (the <tt>xbean:</tt> that proceeds the filename is simply a hint to class doing the reading of the configuration file) which is located on the CLASSPATH. In this case, the <tt>broker-config.xml</tt> file is located in the <tt>activemq-ra.rar</tt> directory. Save the changes to that file and then open the <tt>broker-config.xml</tt> file.</p>
 
 <p>The <tt>broker-config.xml</tt> file <em>is</em> the ActiveMQ configuration file. This is the file used to configure ActiveMQ. The default contents of this file are usable, but should be customized to suit your environment. There are several items of note about this configuration. The most prominent sections to note in this file are the <tt>&lt;persistenceAdapter&gt;</tt> element and the <tt>&lt;transportConnectors&gt;</tt> and <tt>&lt;networkConnectors&gt;</tt> elements as seen below:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>broker-config.xml</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;beans xmlns=<span class="code-quote">"http:<span class="code-comment">//activemq.org/config/1.0"</span>&gt;
-</span>
-  &lt;broker useJmx=<span class="code-quote">"<span class="code-keyword">true</span>"</span>&gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans xmlns="http://activemq.org/config/1.0"&gt;
+
+  &lt;broker useJmx="true"&gt;
   ...
     &lt;persistenceAdapter&gt;
-      &lt;journaledJDBC journalLogFiles=<span class="code-quote">"5"</span> dataDirectory=<span class="code-quote">"activemq-data"</span>/&gt;
+      &lt;journaledJDBC journalLogFiles="5" dataDirectory="activemq-data"/&gt;
       &lt;!-- To use a different datasource, use th following syntax : --&gt;
       &lt;!--
-      &lt;journaledJDBC journalLogFiles=<span class="code-quote">"5"</span> dataDirectory=<span class="code-quote">"../data"</span> dataSource=<span class="code-quote">"#postgres-ds"</span>/&gt;
+      &lt;journaledJDBC journalLogFiles="5" dataDirectory="../data" dataSource="#postgres-ds"/&gt;
        --&gt;
     &lt;/persistenceAdapter&gt;
 
     &lt;transportConnectors&gt;
       &lt;!-- prefixing a connector with discovery: causes the connector to be advertiesed over rendezvous --&gt;
-      &lt;transportConnector uri=<span class="code-quote">"tcp:<span class="code-comment">//localhost:61616"</span> discoveryUri=<span class="code-quote">"multicast://<span class="code-keyword">default</span>"</span>/&gt;
-</span>    &lt;/transportConnectors&gt;
+      &lt;transportConnector uri="tcp://localhost:61616" discoveryUri="multicast://default"/&gt;
+    &lt;/transportConnectors&gt;
 
     &lt;networkConnectors&gt;
-      &lt;!-- by <span class="code-keyword">default</span> just auto discover the other brokers --&gt;
-      &lt;networkConnector uri=<span class="code-quote">"multicast:<span class="code-comment">//<span class="code-keyword">default</span>"</span>/&gt;
-</span>      &lt;!--
-      &lt;networkConnector uri=<span class="code-quote">"<span class="code-keyword">static</span>:<span class="code-comment">//(tcp://host1:61616,tcp://host2:61616)"</span>/&gt;
-</span>      --&gt;
+      &lt;!-- by default just auto discover the other brokers --&gt;
+      &lt;networkConnector uri="multicast://default"/&gt;
+      &lt;!--
+      &lt;networkConnector uri="static://(tcp://host1:61616,tcp://host2:61616)"/&gt;
+      --&gt;
     &lt;/networkConnectors&gt;
 
   &lt;/broker&gt;
 
 &lt;/beans&gt;
-</pre>
+]]></script>
 </div></div>
 <p>The first change to this file is to add the brokerName attribute to the broker element and provide a name:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;broker useJmx=<span class="code-quote">"<span class="code-keyword">true</span>"</span> brokerName=<span class="code-quote">"bruce.broker1"</span>&gt;
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;broker useJmx="true" brokerName="bruce.broker1"&gt;
+]]></script>
 </div></div>
 <p>In addition, this same name is used further down the configuration to provide a name for the <tt>&lt;transportConnector&gt;</tt> element:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;transportConnector name=<span class="code-quote">"bruce.broker1"</span> uri=<span class="code-quote">"tcp:<span class="code-comment">//localhost:61616"</span> discoveryUri=<span class="code-quote">"multicast://<span class="code-keyword">default</span>"</span>/&gt;</span>
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;transportConnector name="bruce.broker1" uri="tcp://localhost:61616" discoveryUri="multicast://default"/&gt;
+]]></script>
 </div></div>
 <p>Now we'll tell ActiveMQ not to initialize JMX because we'll use the existing one that JBoss has:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag"><span class="code-comment">&lt;!-- put the following as the first child of the broker tag --&gt;</span></span>
-<span class="code-tag">&lt;managementContext&gt;</span><span class="code-tag"><span class="code-comment">&lt;!-- we'll use an existing one (JBoss) instead of creating one --&gt;</span></span>
-  <span class="code-tag">&lt;managementContext createConnector=<span class="code-quote">"false"</span>/&gt;</span>
-<span class="code-tag">&lt;/managementContext&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;!-- put the following as the first child of the broker tag --&gt;
+&lt;managementContext&gt;&lt;!-- we'll use an existing one (JBoss) instead of creating one --&gt;
+  &lt;managementContext createConnector="false"/&gt;
+&lt;/managementContext&gt;
+]]></script>
 </div></div>
 <p>The <tt>&lt;persistenceAdapter&gt;</tt> element should be reconfigured to store its data in an appropriate place.  On JBoss, that's most likely within the "data" directory of the server configuration you're using.  We're going to set this dynamically using an XBean and Spring feature that allows us to inject system properties values into the configuration. First this needs to be enabled:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag"><span class="code-comment">&lt;!-- put the following as the first child of the beans element --&gt;</span></span>
-<span class="code-tag">&lt;bean xmlns=<span class="code-quote">"" class="</span>org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;!-- put the following as the first child of the beans element --&gt;
+&lt;bean xmlns="" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/&gt;
+]]></script>
 </div></div>
 <p>Now, modify the <tt>dataDirectory</tt> attribute of the <tt>journaledJDBC</tt> element to be the following: <tt>${jboss.server.data.dir}/activemq</tt>.</p>
 
@@ -414,9 +425,9 @@ drwxr-xr-x   6 bsnyder  bsnyder      204
 </div></div>
 <p>Now we just need to start up JBoss to assure that it comes up correctly without error using the same commands we used previously to start JBoss:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 $ cd jboss-4.0.4.GA
-$ ./bin/run.sh -c <span class="code-keyword">default</span>
+$ ./bin/run.sh -c default
 =========================================================================
 
   JBoss Bootstrap Environment
@@ -436,17 +447,17 @@ $ ./bin/run.sh -c <span class="code-keyw
 15:34:48,001 INFO  [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
 15:34:48,004 INFO  [Server] Home Dir: /opt/jboss-4.0.4.GA
 15:34:48,005 INFO  [Server] Home URL: file:/opt/jboss-4.0.4.GA/
-15:34:48,007 INFO  [Server] Patch URL: <span class="code-keyword">null</span>
-15:34:48,007 INFO  [Server] Server Name: <span class="code-keyword">default</span>
-15:34:48,007 INFO  [Server] Server Home Dir: /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>
-15:34:48,011 INFO  [Server] Server Home URL: file:/opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/
-15:34:48,012 INFO  [Server] Server Log Dir: /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/log
-15:34:48,017 INFO  [Server] Server Temp Dir: /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/tmp
+15:34:48,007 INFO  [Server] Patch URL: null
+15:34:48,007 INFO  [Server] Server Name: default
+15:34:48,007 INFO  [Server] Server Home Dir: /opt/jboss-4.0.4.GA/server/default
+15:34:48,011 INFO  [Server] Server Home URL: file:/opt/jboss-4.0.4.GA/server/default/
+15:34:48,012 INFO  [Server] Server Log Dir: /opt/jboss-4.0.4.GA/server/default/log
+15:34:48,017 INFO  [Server] Server Temp Dir: /opt/jboss-4.0.4.GA/server/default/tmp
 15:34:48,022 INFO  [Server] Root Deployment Filename: jboss-service.xml
 ...
 15:35:17,360 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] 
 Started in 28s:576ms
-</pre>
+]]></script>
 </div></div>
 <p>As long as JBoss comes up without error, you're ready to move on to the next step.</p>
 
@@ -454,13 +465,13 @@ Started in 28s:576ms
 
 <p>The sixth step is to configure JBoss to initialize and start ActiveMQ whenever JBoss starts up. This is accomplished using an XML file that abides by the <a shape="rect" class="external-link" href="http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd" rel="nofollow">JBoss JCA DTD</a> for data sources. Like most other Java application servers on the market, the JBoss architecture uses the J2EE Connector Architecture to manage connections of any kind including JDBC, JMS, etc. and the JBoss JCA DTD denotes the allowed contents for creating an XML data source instance to configure JBoss JCA. Below is an example XML data source instance for use with JBoss:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>activemq-jms-ds.xml</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;?xml version=<span class="code-quote">"1.0"</span> encoding=<span class="code-quote">"UTF-8"</span>?&gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;?xml version="1.0" encoding="UTF-8"?&gt;
 
 &lt;!DOCTYPE connection-factories
-    PUBLIC <span class="code-quote">"-<span class="code-comment">//JBoss//DTD JBOSS JCA Config 1.5//EN"</span>
-</span>    <span class="code-quote">"http:<span class="code-comment">//www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"</span>&gt;
-</span>
+    PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+    "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"&gt;
+
 &lt;connection-factories&gt;
 
    &lt;tx-connection-factory&gt;
@@ -469,8 +480,8 @@ Started in 28s:576ms
       &lt;track-connection-by-tx/&gt;
       &lt;rar-name&gt;activemq-ra.rar&lt;/rar-name&gt;
       &lt;connection-definition&gt;javax.jms.QueueConnectionFactory&lt;/connection-definition&gt;
-      &lt;ServerUrl&gt;vm:<span class="code-comment">//localhost&lt;/ServerUrl&gt;
-</span>      &lt;!--
+      &lt;ServerUrl&gt;vm://localhost&lt;/ServerUrl&gt;
+      &lt;!--
       &lt;UserName&gt;sa&lt;/UserName&gt;
       &lt;Password&gt;&lt;/Password&gt;
       --&gt;
@@ -486,8 +497,8 @@ Started in 28s:576ms
       &lt;track-connection-by-tx/&gt;
       &lt;rar-name&gt;activemq-ra.rar&lt;/rar-name&gt;
       &lt;connection-definition&gt;javax.jms.TopicConnectionFactory&lt;/connection-definition&gt;
-      &lt;ServerUrl&gt;vm:<span class="code-comment">//localhost&lt;/ServerUrl&gt;
-</span>      &lt;!--
+      &lt;ServerUrl&gt;vm://localhost&lt;/ServerUrl&gt;
+      &lt;!--
       &lt;UserName&gt;sa&lt;/UserName&gt;
       &lt;Password&gt;&lt;/Password&gt;
       --&gt;
@@ -497,26 +508,26 @@ Started in 28s:576ms
       &lt;idle-timeout-minutes&gt;3&lt;/idle-timeout-minutes&gt;
    &lt;/tx-connection-factory&gt;
 
-   &lt;mbean code=<span class="code-quote">"org.jboss.resource.deployment.AdminObject"</span> name=<span class="code-quote">"activemq.queue:name=outboundQueue"</span>&gt;
-      &lt;attribute name=<span class="code-quote">"JNDIName"</span>&gt;activemq/queue/outbound&lt;/attribute&gt;
-      &lt;depends optional-attribute-name=<span class="code-quote">"RARName"</span>&gt;jboss.jca:service=RARDeployment,name='activemq-ra.rar'&lt;/depends&gt;
-      &lt;attribute name=<span class="code-quote">"Type"</span>&gt;javax.jms.Queue&lt;/attribute&gt;
-      &lt;attribute name=<span class="code-quote">"Properties"</span>&gt;PhysicalName=queue.outbound&lt;/attribute&gt;
+   &lt;mbean code="org.jboss.resource.deployment.AdminObject" name="activemq.queue:name=outboundQueue"&gt;
+      &lt;attribute name="JNDIName"&gt;activemq/queue/outbound&lt;/attribute&gt;
+      &lt;depends optional-attribute-name="RARName"&gt;jboss.jca:service=RARDeployment,name='activemq-ra.rar'&lt;/depends&gt;
+      &lt;attribute name="Type"&gt;javax.jms.Queue&lt;/attribute&gt;
+      &lt;attribute name="Properties"&gt;PhysicalName=queue.outbound&lt;/attribute&gt;
    &lt;/mbean&gt;
 
-   &lt;mbean code=<span class="code-quote">"org.jboss.resource.deployment.AdminObject"</span> name=<span class="code-quote">"activemq.topic:name=inboundTopic"</span>&gt;
-      &lt;attribute name=<span class="code-quote">"JNDIName"</span>&gt;activemq/topic/inbound&lt;/attribute&gt;
-      &lt;depends optional-attribute-name=<span class="code-quote">"RARName"</span>&gt;jboss.jca:service=RARDeployment,name='activemq-ra.rar'&lt;/depends&gt;
-      &lt;attribute name=<span class="code-quote">"Type"</span>&gt;javax.jms.Topic&lt;/attribute&gt;
-      &lt;attribute name=<span class="code-quote">"Properties"</span>&gt;PhysicalName=topic.inbound&lt;/attribute&gt;
+   &lt;mbean code="org.jboss.resource.deployment.AdminObject" name="activemq.topic:name=inboundTopic"&gt;
+      &lt;attribute name="JNDIName"&gt;activemq/topic/inbound&lt;/attribute&gt;
+      &lt;depends optional-attribute-name="RARName"&gt;jboss.jca:service=RARDeployment,name='activemq-ra.rar'&lt;/depends&gt;
+      &lt;attribute name="Type"&gt;javax.jms.Topic&lt;/attribute&gt;
+      &lt;attribute name="Properties"&gt;PhysicalName=topic.inbound&lt;/attribute&gt;
    &lt;/mbean&gt;
 
 &lt;/connection-factories&gt;
-</pre>
+]]></script>
 </div></div>
 <p>This XML instance configures a JMS <tt>QueueConnectionFactory</tt> and a JMS <tt>TopicConnectionFactory</tt> and makes them available via JNDI. Also defined in this file are some {{AdminObject}}s which are used to specify a topic and a queue. This file should be dropped into the JBoss deploy directory. Its name (*-ds.xml) will cause it to be picked up by the JBoss deployer upon startup. Speaking of which, once this file is in place, a quick smoke test can be performed by simply starting up the JBoss server. Below is an example of the output that should be seen:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 =========================================================================
 
   JBoss Bootstrap Environment
@@ -536,27 +547,27 @@ Started in 28s:576ms
 22:55:48,688 INFO  [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
 22:55:48,690 INFO  [Server] Home Dir: /opt/jboss-4.0.4.GA
 22:55:48,692 INFO  [Server] Home URL: file:/opt/jboss-4.0.4.GA/
-22:55:48,695 INFO  [Server] Patch URL: <span class="code-keyword">null</span>
-22:55:48,697 INFO  [Server] Server Name: <span class="code-keyword">default</span>
-22:55:48,698 INFO  [Server] Server Home Dir: /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>
-22:55:48,701 INFO  [Server] Server Home URL: file:/opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/
-22:55:48,702 INFO  [Server] Server Log Dir: /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/log
-22:55:48,704 INFO  [Server] Server Temp Dir: /opt/jboss-4.0.4.GA/server/<span class="code-keyword">default</span>/tmp
+22:55:48,695 INFO  [Server] Patch URL: null
+22:55:48,697 INFO  [Server] Server Name: default
+22:55:48,698 INFO  [Server] Server Home Dir: /opt/jboss-4.0.4.GA/server/default
+22:55:48,701 INFO  [Server] Server Home URL: file:/opt/jboss-4.0.4.GA/server/default/
+22:55:48,702 INFO  [Server] Server Log Dir: /opt/jboss-4.0.4.GA/server/default/log
+22:55:48,704 INFO  [Server] Server Temp Dir: /opt/jboss-4.0.4.GA/server/default/tmp
 22:55:48,706 INFO  [Server] Root Deployment Filename: jboss-service.xml
 22:55:49,092 INFO  [ServerInfo] Java version: 1.5.0_06,Apple Computer, Inc.
-22:55:49,101 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_06-64,<span class="code-quote">"Apple Computer, Inc."</span>
-22:55:49,102 INFO  [ServerInfo] OS-<span class="code-object">System</span>: Mac OS X 10.4.8,i386
+22:55:49,101 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_06-64,"Apple Computer, Inc."
+22:55:49,102 INFO  [ServerInfo] OS-System: Mac OS X 10.4.8,i386
 22:55:49,803 INFO  [Server] Core system initialized
-22:55:53,379 INFO  [WebService] Using RMI server codebase: http:<span class="code-comment">//rattlesnake:8083/
-</span>22:55:53,400 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
+22:55:53,379 INFO  [WebService] Using RMI server codebase: http://rattlesnake:8083/
+22:55:53,400 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
 22:55:54,034 INFO  [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, 
 no client SocketFactory, Server SocketFactory=class
 org.jboss.net.sockets.DefaultSocketFactory
 22:55:58,475 INFO  [Embedded] Catalina naming disabled
 22:55:58,566 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. 
-Will load the <span class="code-keyword">default</span> rule set.
+Will load the default rule set.
 22:55:58,569 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. 
-Will load the <span class="code-keyword">default</span> rule set.
+Will load the default rule set.
 22:55:59,110 INFO  [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
 22:55:59,114 INFO  [Catalina] Initialization processed in 545 ms
 22:55:59,116 INFO  [StandardService] Starting service jboss.web
@@ -577,7 +588,7 @@ warUrl=.../deploy/management/console-mgr
 .../deploy/activemq-ra.rar/
 22:56:07,452 INFO  [XBeanXmlBeanDefinitionReader] Loading XML bean definitions from class 
 path resource [broker-config.xml]
-22:56:07,750 INFO  [ClassPathXmlApplicationContext] Bean factory <span class="code-keyword">for</span> application context 
+22:56:07,750 INFO  [ClassPathXmlApplicationContext] Bean factory for application context 
 [org.apache.xbean.spring.context.ClassPathXmlApplicationContext;hashCode=13887543]:
 org.springframework.beans.factory.support.DefaultListableBeanFactory defining
 beans [org.apache.activemq.xbean.XBeanBrokerService]; root of BeanFactory hierarchy
@@ -585,24 +596,24 @@ beans [org.apache.activemq.xbean.XBeanBr
 [org.apache.xbean.spring.context.ClassPathXmlApplicationContext;hashCode=13887543]
 22:56:07,773 INFO  [CollectionFactory] JDK 1.4+ collections available
 22:56:07,778 INFO  [ClassPathXmlApplicationContext] Unable to locate MessageSource with name 
-'messageSource': using <span class="code-keyword">default</span>
+'messageSource': using default
 [org.springframework.context.support.DelegatingMessageSource@5fee96]
 22:56:07,781 INFO  [ClassPathXmlApplicationContext] Unable to locate ApplicationEventMulticaster 
-with name 'applicationEventMulticaster': using <span class="code-keyword">default</span>
+with name 'applicationEventMulticaster': using default
 [org.springframework.context.event.SimpleApplicationEventMulticaster@78c714]
 22:56:07,783 INFO  [DefaultListableBeanFactory] Pre-instantiating singletons in factory
  [org.springframework.beans.factory.support.DefaultListableBeanFactory
 defining beans [org.apache.activemq.xbean.XBeanBrokerService]; root of BeanFactory hierarchy]
 22:56:08,181 INFO  [BrokerService] ActiveMQ 4.0.2 JMS Message Broker (bruce.broker1) is starting
 22:56:08,181 INFO  [BrokerService] For help or more information please see: 
-http:<span class="code-comment">//incubator.apache.org/activemq/
-</span>22:56:09,989 INFO  [JDBCPersistenceAdapter] Database driver recognized: 
+http://incubator.apache.org/activemq/
+22:56:09,989 INFO  [JDBCPersistenceAdapter] Database driver recognized: 
 [apache_derby_embedded_jdbc_driver]
 22:56:11,026 INFO  [JournalPersistenceAdapter] Journal Recovery Started from: Active Journal: 
 using 5 x 20.0 Megs at: /opt/jboss-4.0.4.GA/activemq-data/journal
 22:56:11,169 INFO  [JournalPersistenceAdapter] Journal Recovered: 0 message(s) in transactions recovered.
-22:56:11,489 INFO  [TransportServerThreadSupport] Listening <span class="code-keyword">for</span> connections at: tcp:<span class="code-comment">//rattlesnake:61616
-</span>22:56:11,491 WARN  [MulticastDiscoveryAgent] brokerName not set
+22:56:11,489 INFO  [TransportServerThreadSupport] Listening for connections at: tcp://rattlesnake:61616
+22:56:11,491 WARN  [MulticastDiscoveryAgent] brokerName not set
 22:56:11,519 INFO  [TransportConnector] Connector bruce.broker1 Started
 22:56:11,522 INFO  [NetworkConnector] Network Connector bridge Started
 22:56:11,522 INFO  [BrokerService] ActiveMQ JMS Message Broker 
@@ -647,10 +658,10 @@ at 'activemq/topic/inbound'
 22:56:14,525 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
 22:56:14,991 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
 22:56:15,071 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
-22:56:15,082 INFO  [JkMain] Jk running ID=0 time=0/25  config=<span class="code-keyword">null</span>
+22:56:15,082 INFO  [JkMain] Jk running ID=0 time=0/25  config=null
 22:56:15,108 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] 
 Started in 26s:398ms
-</pre>
+]]></script>
 </div></div>
 <p>Note the startup messages from both ActiveMQ and from the <tt>AdminObject}}s creating an {{ActiveMQQueue</tt> and an <tt>ActiveMQTopic</tt>. These are good indications that the configuration is correct, but needs to be verified a bit further. This is covered in the next section.</p>
 
@@ -659,8 +670,8 @@ Started in 26s:398ms
 <p>The seventh and final step is to perform a slightly more comprehensive smoke test of the integration. This can be accomplished using Apache Ant via the examples that come with the ActiveMQ binary distribution. An Ant build.xml file is included which provides easy access to a simple consumer and a simple producer. The producer will be used to send messages that are received by the consumer. To proceed with this testing, just follow the steps below:</p>
 <ol><li>In the first terminal, start up JBoss. The same startup script can be used here as was used above.</li><li>In the second terminal, use the commands below to run the ActiveMQ consumer:
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-$ cd /opt/incubator-activemq-4.0.2/examples    #note in activemq v5 the directory is just <span class="code-quote">"example"</span> not <span class="code-quote">"examples"</span>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+$ cd /opt/incubator-activemq-4.0.2/examples    #note in activemq v5 the directory is just "example" not "examples"
 $ ant consumer
 Buildfile: build.xml
 
@@ -672,15 +683,15 @@ compile:
     [javac] Compiling 6 source files to /opt/incubator-activemq-4.0.2/example/target/classes
 
 consumer:
-     [echo] Running consumer against server at $url = tcp:<span class="code-comment">//localhost:61616 <span class="code-keyword">for</span> subject $subject = TEST.FOO
-</span>     [java] Connecting to URL: tcp:<span class="code-comment">//localhost:61616
-</span>     [java] Consuming queue: TEST.FOO
+     [echo] Running consumer against server at $url = tcp://localhost:61616 for subject $subject = TEST.FOO
+     [java] Connecting to URL: tcp://localhost:61616
+     [java] Consuming queue: TEST.FOO
      [java] Using non-durable subscription
      [java] We are about to wait until we consume: 10 message(s) then we will shutdown
-</pre>
+]]></script>
 </div></div></li><li>In the third terminal, use the commands below to run the ActiveMQ producer:
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 $ cd /opt/incubator-activemq-4.0.2/examples
 $ ant producer
 Buildfile: build.xml
@@ -690,9 +701,9 @@ init:
 compile:
 
 producer:
-     [echo] Running producer against server at $url = tcp:<span class="code-comment">//localhost:61616 <span class="code-keyword">for</span> subject $subject = TEST.FOO
-</span>     [java] Connecting to URL: tcp:<span class="code-comment">//localhost:61616
-</span>     [java] Publishing a Message with size 1000 to queue: TEST.FOO
+     [echo] Running producer against server at $url = tcp://localhost:61616 for subject $subject = TEST.FOO
+     [java] Connecting to URL: tcp://localhost:61616
+     [java] Publishing a Message with size 1000 to queue: TEST.FOO
      [java] Using non-durable publishing
      [java] Sleeping between publish 0 ms
      [java] Sending message: Message: 0 sent at: Mon Oct 16 23:21:08 MDT 2006  ...
@@ -709,15 +720,15 @@ producer:
      [java] connection {
      [java]   session {
      [java]     messageCount{ count: 10 unit: count startTime: 1161062468001 lastSampleTime: 
-1161062468340 description: <span class="code-object">Number</span> of messages exchanged }
+1161062468340 description: Number of messages exchanged }
      [java]     messageRateTime{ count: 10 maxTime: 142 minTime: 1 totalTime: 315 averageTime: 31.5 
 averageTimeExMinMax: 21.5 averagePerSecond: 31.746031746031747
 averagePerSecondExMinMax: 46.51162790697674 unit: millis startTime: 1161062468002 lastSampleTime: 
 1161062468340 description: Time taken to process a message (thoughtput rate) }
      [java]     pendingMessageCount{ count: 0 unit: count startTime: 1161062468001 lastSampleTime: 
-1161062468001 description: <span class="code-object">Number</span> of pending messages }
+1161062468001 description: Number of pending messages }
      [java]     expiredMessageCount{ count: 0 unit: count startTime: 1161062468001 lastSampleTime: 
-1161062468001 description: <span class="code-object">Number</span> of expired messages }
+1161062468001 description: Number of expired messages }
      [java]     messageWaitTime{ count: 0 maxTime: 0 minTime: 0 totalTime: 0 averageTime: 0.0 
 averageTimeExMinMax: 0.0 averagePerSecond: 0.0
 averagePerSecondExMinMax: 0.0 unit: millis startTime: 1161062468002 lastSampleTime: 1161062468002 
@@ -727,23 +738,23 @@ description: Time spent by a message bef
 subscriptions }
 
      [java]     producers {
-     [java]       producer queue:<span class="code-comment">//TEST.FOO {
-</span>     [java]         messageCount{ count: 10 unit: count startTime: 1161062468025 lastSampleTime: 
-1161062468340 description: <span class="code-object">Number</span> of messages processed }
+     [java]       producer queue://TEST.FOO {
+     [java]         messageCount{ count: 10 unit: count startTime: 1161062468025 lastSampleTime: 
+1161062468340 description: Number of messages processed }
      [java]         messageRateTime{ count: 10 maxTime: 142 minTime: 1 totalTime: 315 averageTime: 
 31.5 averageTimeExMinMax: 21.5 averagePerSecond:
 31.746031746031747 averagePerSecondExMinMax: 46.51162790697674 unit: millis startTime: 1161062468025 
 lastSampleTime: 1161062468340 description: Time taken to
 process a message (thoughtput rate) }
      [java]         pendingMessageCount{ count: 0 unit: count startTime: 1161062468025 lastSampleTime: 
-1161062468025 description: <span class="code-object">Number</span> of pending messages }
+1161062468025 description: Number of pending messages }
      [java]         messageRateTime{ count: 10 maxTime: 142 minTime: 1 totalTime: 315 averageTime: 31.5 
 averageTimeExMinMax: 21.5 averagePerSecond:
 31.746031746031747 averagePerSecondExMinMax: 46.51162790697674 unit: millis startTime: 1161062468025 
 lastSampleTime: 1161062468340 description: Time taken to
 process a message (thoughtput rate) }
      [java]         expiredMessageCount{ count: 0 unit: count startTime: 1161062468025 lastSampleTime: 
-1161062468025 description: <span class="code-object">Number</span> of expired messages }
+1161062468025 description: Number of expired messages }
      [java]         messageWaitTime{ count: 0 maxTime: 0 minTime: 0 totalTime: 0 averageTime: 0.0 
 averageTimeExMinMax: 0.0 averagePerSecond: 0.0
 averagePerSecondExMinMax: 0.0 unit: millis startTime: 1161062468025 lastSampleTime: 1161062468025 
@@ -754,7 +765,7 @@ description: Time spent by a message bef
      [java]     }
      [java]   }
      [java] }
-</pre>
+]]></script>
 </div></div></li></ol>
 
 
@@ -790,25 +801,46 @@ description: Time spent by a message bef
 <table class="tableview attachments"><tr><th colspan="1" rowspan="1" class="filename-column">            <a shape="rect" href="integrating-apache-activemq-with-jboss.html?sortBy=name">Name</a>
     </th><th colspan="1" rowspan="1">            <a shape="rect" href="integrating-apache-activemq-with-jboss.html?sortBy=size">Size</a>
     </th><th colspan="1" rowspan="1">Creator</th><th colspan="1" rowspan="1">            <a shape="rect" href="integrating-apache-activemq-with-jboss.html?sortBy=createddate">Creation Date</a>
-    </th><th colspan="1" rowspan="1" class="comment">Comment</th><th colspan="1" rowspan="1">&#160;</th></tr><tr id="attachment-5193"><td colspan="1" rowspan="1" class="filename-column">
+    </th><th colspan="1" rowspan="1" class="comment">Comment</th><th colspan="1" rowspan="1">&#160;</th></tr><tr id="attachment-5194"><td colspan="1" rowspan="1" class="filename-column">
                 
-<span class="icon icon-file-unknown" title="File">File</span>                <a shape="rect" class="filename" href="integrating-apache-activemq-with-jboss.data/amq-spring-1.2.6.tgz" title="amq-spring-1.2.6.tgz" data-filename="amq-spring-1.2.6.tgz">
-                    amq-spring-1.2.6.tgz
+<span class="icon icon-file-unknown" title="File">File</span>                <a shape="rect" class="filename" href="integrating-apache-activemq-with-jboss.data/amq-spring-2.0.tgz" title="amq-spring-2.0.tgz" data-filename="amq-spring-2.0.tgz">
+                    amq-spring-2.0.tgz
                 </a>
-            </td><td colspan="1" rowspan="1" class="attachment-size">5.58 MB</td><td colspan="1" rowspan="1"><a shape="rect" class="url fn confluence-userlink" href="https://cwiki.apache.org/confluence/display/~bsnyder">Bruce Snyder</a></td><td colspan="1" rowspan="1">Oct 03, 2007 00:31</td><td colspan="1" rowspan="1" class="comment">
+            </td><td colspan="1" rowspan="1">6.20 MB</td><td colspan="1" rowspan="1"><a shape="rect" class="url fn confluence-userlink" href="https://cwiki.apache.org/confluence/display/~bsnyder">Bruce Snyder</a></td><td colspan="1" rowspan="1">Oct 03, 2007 01:42</td><td colspan="1" rowspan="1" class="comment">
                                     &#160;
                             </td><td colspan="1" rowspan="1" class="attachment-actions">
-                                                    &#160;
-                            </td></tr><tr id="attachment-5194"><td colspan="1" rowspan="1" class="filename-column">
+                                                <ul><li class="first">
+    
+        
+    
+    <a shape="rect" class="editAttachmentLink" href="/confluence/pages/editattachment.action?pageId=$page.id&amp;fileName=amq-spring-2.0.tgz" title="">
+                   <span>Properties</span></a>        </li><li class="">
+    
+        
+    
+    <a shape="rect" class="removeAttachmentLink" href="/confluence/pages/removeattachment.action?pageId=$page.id&amp;fileName=amq-spring-2.0.tgz&amp;version=1" title="">
+                   <span>Remove</span></a>        </li></ul>
+                            </td></tr><tr id="attachment-5193"><td colspan="1" rowspan="1" class="filename-column">
                 
-<span class="icon icon-file-unknown" title="File">File</span>                <a shape="rect" class="filename" href="integrating-apache-activemq-with-jboss.data/amq-spring-2.0.tgz" title="amq-spring-2.0.tgz" data-filename="amq-spring-2.0.tgz">
-                    amq-spring-2.0.tgz
+<span class="icon icon-file-unknown" title="File">File</span>                <a shape="rect" class="filename" href="integrating-apache-activemq-with-jboss.data/amq-spring-1.2.6.tgz" title="amq-spring-1.2.6.tgz" data-filename="amq-spring-1.2.6.tgz">
+                    amq-spring-1.2.6.tgz
                 </a>
-            </td><td colspan="1" rowspan="1" class="attachment-size">6.20 MB</td><td colspan="1" rowspan="1"><a shape="rect" class="url fn confluence-userlink" href="https://cwiki.apache.org/confluence/display/~bsnyder">Bruce Snyder</a></td><td colspan="1" rowspan="1">Oct 03, 2007 01:42</td><td colspan="1" rowspan="1" class="comment">
+            </td><td colspan="1" rowspan="1">5.58 MB</td><td colspan="1" rowspan="1"><a shape="rect" class="url fn confluence-userlink" href="https://cwiki.apache.org/confluence/display/~bsnyder">Bruce Snyder</a></td><td colspan="1" rowspan="1">Oct 03, 2007 00:31</td><td colspan="1" rowspan="1" class="comment">
                                     &#160;
                             </td><td colspan="1" rowspan="1" class="attachment-actions">
-                                                    &#160;
-                            </td></tr></table>            </div>
+                                                <ul><li class="first">
+    
+        
+    
+    <a shape="rect" class="editAttachmentLink" href="/confluence/pages/editattachment.action?pageId=$page.id&amp;fileName=amq-spring-1.2.6.tgz" title="">
+                   <span>Properties</span></a>        </li><li class="">
+    
+        
+    
+    <a shape="rect" class="removeAttachmentLink" href="/confluence/pages/removeattachment.action?pageId=$page.id&amp;fileName=amq-spring-1.2.6.tgz&amp;version=1" title="">
+                   <span>Remove</span></a>        </li></ul>
+                            </td></tr></table>
+            </div>
 
     <div class="plugin_attachments_upload_container">
             </div>
@@ -828,8 +860,8 @@ description: Time spent by a message bef
 
 <h3><a shape="rect" name="Navigation-Search"></a>Search</h3>
 
-
-<div>
+<p>
+</p><div>
 <form enctype="application/x-www-form-urlencoded" method="get" action="http://www.google.com/search" style="font-size: 10px;">
 <input type="hidden" name="ie" value="UTF-8">
 <input type="hidden" name="oe" value="UTF-8">