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 [17/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/jboss-integration.html
==============================================================================
--- websites/production/activemq/content/jboss-integration.html (original)
+++ websites/production/activemq/content/jboss-integration.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,18 @@
     </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 src='http://activemq.apache.org/styles/highlighter/scripts/shBrushPlain.js' type='text/javascript'></script> 
+         
+      <script type="text/javascript"> 
+        SyntaxHighlighter.defaults['toolbar'] = false; 
+        SyntaxHighlighter.all(); 
+      </script> 
+    
     <title>
     Apache ActiveMQ &#8482; -- JBoss Integration
     </title>
@@ -50,8 +62,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 +104,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 +117,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 +128,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 +150,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 +172,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 +193,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 +231,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 +250,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 +258,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 +284,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 +328,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 +350,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 +426,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 +448,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 +466,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 +481,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 +498,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 +509,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 +548,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 +589,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 +597,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 +659,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 +671,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 +684,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 +702,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 +721,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 +739,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 +766,7 @@ description: Time spent by a message bef
      [java]     }
      [java]   }
      [java] }
-</pre>
+]]></script>
 </div></div></li></ol>
 
 
@@ -790,25 +802,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="jboss-integration.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="jboss-integration.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="jboss-integration.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="jboss-integration.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 +861,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">

Modified: websites/production/activemq/content/jca-container.html
==============================================================================
--- websites/production/activemq/content/jca-container.html (original)
+++ websites/production/activemq/content/jca-container.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- JCA Container
     </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>
@@ -125,8 +126,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/jdbc-master-slave.html
==============================================================================
--- websites/production/activemq/content/jdbc-master-slave.html (original)
+++ websites/production/activemq/content/jdbc-master-slave.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; -- JDBC Master Slave
     </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>
@@ -87,9 +97,9 @@
 <p>Clients should be using the <a shape="rect" href="failover-transport-reference.html" title="Failover Transport Reference">Failover Transport</a> to connect to the available brokers. e.g. using a URL something like the following</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-failover:(tcp:<span class="code-comment">//broker1:61616,tcp://broker2:61616,tcp://broker3:61616)</span>
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+failover:(tcp://broker1:61616,tcp://broker2:61616,tcp://broker3:61616)
+]]></script>
 </div></div>
 
 <p>Only the master broker starts up its transport connectors and so the clients can only connect to the master.</p>
@@ -117,18 +127,18 @@ failover:(tcp:<span class="code-comment"
 <p>The following example shows how to configure the ActiveMQ broker in JDBC Master Slave mode</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[
 &lt;beans&gt;
 
-  &lt;!-- Allows us to use system properties as variables in <span class="code-keyword">this</span> configuration file --&gt;
-  &lt;bean class=<span class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</span>/&gt;
+  &lt;!-- Allows us to use system properties as variables in this configuration file --&gt;
+  &lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/&gt;
   
-  &lt;broker xmlns=<span class="code-quote">"http:<span class="code-comment">//activemq.apache.org/schema/core"</span>&gt;
-</span>
+  &lt;broker xmlns="http://activemq.apache.org/schema/core"&gt;
+
     &lt;destinationPolicy&gt;
       &lt;policyMap&gt;&lt;policyEntries&gt;
         
-          &lt;policyEntry topic=<span class="code-quote">"FOO.&gt;"</span>&gt;
+          &lt;policyEntry topic="FOO.&gt;"&gt;
             &lt;dispatchPolicy&gt;
               &lt;strictOrderDispatchPolicy /&gt;
             &lt;/dispatchPolicy&gt;
@@ -142,16 +152,16 @@ failover:(tcp:<span class="code-comment"
   
   
     &lt;persistenceAdapter&gt;
-        &lt;jdbcPersistenceAdapter dataDirectory=<span class="code-quote">"${activemq.base}/activemq-data"</span>/&gt;
+        &lt;jdbcPersistenceAdapter dataDirectory="${activemq.base}/activemq-data"/&gt;
 
         &lt;!-- 
-        &lt;jdbcPersistenceAdapter dataDirectory=<span class="code-quote">"activemq-data"</span> dataSource=<span class="code-quote">"#oracle-ds"</span>/&gt;
+        &lt;jdbcPersistenceAdapter dataDirectory="activemq-data" dataSource="#oracle-ds"/&gt;
         --&gt; 
     &lt;/persistenceAdapter&gt;
   
     &lt;transportConnectors&gt;
-       &lt;transportConnector name=<span class="code-quote">"<span class="code-keyword">default</span>"</span> uri=<span class="code-quote">"tcp:<span class="code-comment">//localhost:61616"</span>/&gt;
-</span>    &lt;/transportConnectors&gt;
+       &lt;transportConnector name="default" uri="tcp://localhost:61616"/&gt;
+    &lt;/transportConnectors&gt;
     
   &lt;/broker&gt;
   
@@ -159,50 +169,50 @@ failover:(tcp:<span class="code-comment"
   
   &lt;!-- Postgres DataSource Sample Setup --&gt;
   &lt;!-- 
-  &lt;bean id=<span class="code-quote">"postgres-ds"</span> class=<span class="code-quote">"org.postgresql.ds.PGPoolingDataSource"</span>&gt;
-    &lt;property name=<span class="code-quote">"serverName"</span> value=<span class="code-quote">"localhost"</span>/&gt;
-    &lt;property name=<span class="code-quote">"databaseName"</span> value=<span class="code-quote">"activemq"</span>/&gt;
-    &lt;property name=<span class="code-quote">"portNumber"</span> value=<span class="code-quote">"0"</span>/&gt;
-    &lt;property name=<span class="code-quote">"user"</span> value=<span class="code-quote">"activemq"</span>/&gt;
-    &lt;property name=<span class="code-quote">"password"</span> value=<span class="code-quote">"activemq"</span>/&gt;
-    &lt;property name=<span class="code-quote">"dataSourceName"</span> value=<span class="code-quote">"postgres"</span>/&gt;
-    &lt;property name=<span class="code-quote">"initialConnections"</span> value=<span class="code-quote">"1"</span>/&gt;
-    &lt;property name=<span class="code-quote">"maxConnections"</span> value=<span class="code-quote">"10"</span>/&gt;
+  &lt;bean id="postgres-ds" class="org.postgresql.ds.PGPoolingDataSource"&gt;
+    &lt;property name="serverName" value="localhost"/&gt;
+    &lt;property name="databaseName" value="activemq"/&gt;
+    &lt;property name="portNumber" value="0"/&gt;
+    &lt;property name="user" value="activemq"/&gt;
+    &lt;property name="password" value="activemq"/&gt;
+    &lt;property name="dataSourceName" value="postgres"/&gt;
+    &lt;property name="initialConnections" value="1"/&gt;
+    &lt;property name="maxConnections" value="10"/&gt;
   &lt;/bean&gt;
   --&gt;
   
   &lt;!-- MySql DataSource Sample Setup --&gt;
   &lt;!-- 
-  &lt;bean id=<span class="code-quote">"mysql-ds"</span> class=<span class="code-quote">"org.apache.commons.dbcp.BasicDataSource"</span> destroy-method=<span class="code-quote">"close"</span>&gt;
-    &lt;property name=<span class="code-quote">"driverClassName"</span> value=<span class="code-quote">"com.mysql.jdbc.Driver"</span>/&gt;
-    &lt;property name=<span class="code-quote">"url"</span> value=<span class="code-quote">"jdbc:mysql:<span class="code-comment">//localhost/activemq?relaxAutoCommit=<span class="code-keyword">true</span>"</span>/&gt;
-</span>    &lt;property name=<span class="code-quote">"username"</span> value=<span class="code-quote">"activemq"</span>/&gt;
-    &lt;property name=<span class="code-quote">"password"</span> value=<span class="code-quote">"activemq"</span>/&gt;
-    &lt;property name=<span class="code-quote">"poolPreparedStatements"</span> value=<span class="code-quote">"<span class="code-keyword">true</span>"</span>/&gt;
+  &lt;bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"&gt;
+    &lt;property name="driverClassName" value="com.mysql.jdbc.Driver"/&gt;
+    &lt;property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/&gt;
+    &lt;property name="username" value="activemq"/&gt;
+    &lt;property name="password" value="activemq"/&gt;
+    &lt;property name="poolPreparedStatements" value="true"/&gt;
   &lt;/bean&gt;
   --&gt;  
    
   &lt;!-- Oracle DataSource Sample Setup --&gt;
   &lt;!--
-  &lt;bean id=<span class="code-quote">"oracle-ds"</span> class=<span class="code-quote">"org.apache.commons.dbcp.BasicDataSource"</span> destroy-method=<span class="code-quote">"close"</span>&gt;
-    &lt;property name=<span class="code-quote">"driverClassName"</span> value=<span class="code-quote">"oracle.jdbc.driver.OracleDriver"</span>/&gt;
-    &lt;property name=<span class="code-quote">"url"</span> value=<span class="code-quote">"jdbc:oracle:thin:@localhost:1521:AMQDB"</span>/&gt;
-    &lt;property name=<span class="code-quote">"username"</span> value=<span class="code-quote">"scott"</span>/&gt;
-    &lt;property name=<span class="code-quote">"password"</span> value=<span class="code-quote">"tiger"</span>/&gt;
-    &lt;property name=<span class="code-quote">"poolPreparedStatements"</span> value=<span class="code-quote">"<span class="code-keyword">true</span>"</span>/&gt;
+  &lt;bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"&gt;
+    &lt;property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/&gt;
+    &lt;property name="url" value="jdbc:oracle:thin:@localhost:1521:AMQDB"/&gt;
+    &lt;property name="username" value="scott"/&gt;
+    &lt;property name="password" value="tiger"/&gt;
+    &lt;property name="poolPreparedStatements" value="true"/&gt;
   &lt;/bean&gt;
   --&gt;
       
   &lt;!-- Embedded Derby DataSource Sample Setup --&gt;
   &lt;!-- 
-  &lt;bean id=<span class="code-quote">"derby-ds"</span> class=<span class="code-quote">"org.apache.derby.jdbc.EmbeddedDataSource"</span>&gt;
-    &lt;property name=<span class="code-quote">"databaseName"</span> value=<span class="code-quote">"derbydb"</span>/&gt;
-    &lt;property name=<span class="code-quote">"createDatabase"</span> value=<span class="code-quote">"create"</span>/&gt;
+  &lt;bean id="derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource"&gt;
+    &lt;property name="databaseName" value="derbydb"/&gt;
+    &lt;property name="createDatabase" value="create"/&gt;
   &lt;/bean&gt;
   --&gt;  
 
 &lt;/beans&gt;
-</pre>
+]]></script>
 </div></div>
 
 
@@ -219,8 +229,8 @@ failover:(tcp:<span class="code-comment"
 
 <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/jdbc-support.html
==============================================================================
--- websites/production/activemq/content/jdbc-support.html (original)
+++ websites/production/activemq/content/jdbc-support.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; -- JDBC Support
     </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>
@@ -90,9 +101,9 @@
 
 <p>You can explicitly specify the JDBC adaptor using its xbean identifier, inside the activemq.xml...</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;jdbcPersistenceAdapter  adapter=<span class="code-quote">"postgresql-jdbc-adapter"</span>/&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;jdbcPersistenceAdapter  adapter="postgresql-jdbc-adapter"/&gt;
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="JDBCSupport-CustomizingtheSQLDDL"></a>Customizing the SQL DDL</h3>
@@ -100,19 +111,19 @@
 <p>You can confiugure the various SQL datatypes - such as column sizes and so forth - using the statements element</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">false</span>"</span>&gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+  &lt;broker useJmx="false"&gt;
 
     &lt;persistenceAdapter&gt;
-      &lt;journaledJDBC useJournal=<span class="code-quote">"<span class="code-keyword">false</span>"</span>&gt;
+      &lt;journaledJDBC useJournal="false"&gt;
         &lt;statements&gt;
-          &lt;statements stringIdDataType =<span class="code-quote">"VARCHAR(128)"</span>/&gt;
+          &lt;statements stringIdDataType ="VARCHAR(128)"/&gt;
         &lt;/statements&gt;
       &lt;/journaledJDBC&gt;
     &lt;/persistenceAdapter&gt;
 
   &lt;/broker&gt;
-</pre>
+]]></script>
 </div></div>
 
 <p>For more info on what attributes can be set on the statements element, see the <a shape="rect" class="external-link" href="http://activemq.apache.org/maven/apidocs/org/apache/activemq/store/jdbc/Statements.html">Statements class</a>. All the settable bean properties can be used as attributes of the &lt;statements&gt; element. </p>
@@ -123,15 +134,15 @@
 <p>If you are using MySQL then you should set the <b>relaxAutoCommit</b> flag to be true. e.g.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-  &lt;bean id=<span class="code-quote">"mysql-ds"</span> class=<span class="code-quote">"org.apache.commons.dbcp.BasicDataSource"</span> destroy-method=<span class="code-quote">"close"</span>&gt;
-    &lt;property name=<span class="code-quote">"driverClassName"</span> value=<span class="code-quote">"com.mysql.jdbc.Driver"</span>/&gt;
-    &lt;property name=<span class="code-quote">"url"</span> value=<span class="code-quote">"jdbc:mysql:<span class="code-comment">//localhost/activemq?relaxAutoCommit=<span class="code-keyword">true</span>"</span>/&gt;
-</span>    &lt;property name=<span class="code-quote">"username"</span> value=<span class="code-quote">"activemq"</span>/&gt;
-    &lt;property name=<span class="code-quote">"password"</span> value=<span class="code-quote">"activemq"</span>/&gt;
-    &lt;property name=<span class="code-quote">"poolPreparedStatements"</span> value=<span class="code-quote">"<span class="code-keyword">true</span>"</span>/&gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+  &lt;bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"&gt;
+    &lt;property name="driverClassName" value="com.mysql.jdbc.Driver"/&gt;
+    &lt;property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/&gt;
+    &lt;property name="username" value="activemq"/&gt;
+    &lt;property name="password" value="activemq"/&gt;
+    &lt;property name="poolPreparedStatements" value="true"/&gt;
   &lt;/bean&gt;
-</pre>
+]]></script>
 </div></div>
 
 <p>To see this in action see the <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/activemq/trunk/assembly/src/release/conf/activemq.xml">default configuration file</a></p>
@@ -142,11 +153,11 @@
 <p>In 3.x you can specify the adapter as follows</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;jdbcPersistence adapterClass=<span class="code-quote">"org.activemq.store.jdbc.adapter.ImageBasedJDBCAdaptor"</span>&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;jdbcPersistence adapterClass="org.activemq.store.jdbc.adapter.ImageBasedJDBCAdaptor"&gt;
     ...
-<span class="code-tag">&lt;/jdbcPersistence&gt;</span>
-</pre>
+&lt;/jdbcPersistence&gt;
+]]></script>
 </div></div>
           </div>
         </td>
@@ -161,8 +172,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/jmeter-performance-tests.html
==============================================================================
--- websites/production/activemq/content/jmeter-performance-tests.html (original)
+++ websites/production/activemq/content/jmeter-performance-tests.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- JMeter Performance Tests
     </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>
@@ -146,8 +147,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/jmeter-system-tests.html
==============================================================================
--- websites/production/activemq/content/jmeter-system-tests.html (original)
+++ websites/production/activemq/content/jmeter-system-tests.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- JMeter System Tests
     </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>
@@ -135,8 +136,8 @@ The Test would check for duplicate messa
 
 <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">