activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r869232 [29/44] - in /websites/production/activemq/content: ./ cache/ cms/ nms/ styles/highlighter/ styles/highlighter/scripts/ styles/highlighter/styles/ visualisation.thumbs/ web-console.thumbs/
Date Fri, 12 Jul 2013 12:46:31 GMT
Modified: websites/production/activemq/content/running-a-3x-broker.html
==============================================================================
--- websites/production/activemq/content/running-a-3x-broker.html (original)
+++ websites/production/activemq/content/running-a-3x-broker.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; -- Running a 3.x Broker
     </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>
@@ -76,15 +86,17 @@
 <p>The 3.x <a shape="rect" href="download.html" title="Download">binary distribution</a> of ActiveMQ comes with a script called 'activemq' which allows you to run a broker. Typing the following will run an ActiveMQ Broker using the out of the box configuration</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">activemq
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+activemq
+]]></script>
 </div></div>
 
 <p>You can use the <a shape="rect" href="xml-configuration.html" title="Xml Configuration">Xml Configuration</a> to customize the Message Broker to suit your needs. You can run a broker with a specific XML configuration as</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">activemq foo.xml
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+activemq foo.xml
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="Runninga3.xBroker-RunningthebrokerinsideaServletEngine"></a>Running the broker inside a Servlet Engine</h3>
@@ -92,9 +104,10 @@
 <p>If you have the binary distribution (3.1 onwards) you can run the broker using a WAR distribution. From the binary download type the following</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">cd example
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+cd example
 ant war
-</pre>
+]]></script>
 </div></div>
 
 <p>and you get a war in the target directory capable of being deployed in a servlet engine. This has been tried in Resin, Tomcat 4.x, 5.x, Jetty 5.x and should work in most good servlet engines. See the Ant build for details and web.xml of how this works if you wish to integrate this into your WAR.</p>
@@ -110,23 +123,26 @@ ant war
 <p>Another option, if you have a <a shape="rect" href="building.html" title="Building">source distribution</a>, is to run the broker from inside Maven by typing</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">cd modules/assembly
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+cd modules/assembly
 maven server 
-</pre>
+]]></script>
 </div></div>
 
 <p>You can specify a URL to listen on by specifying a parameter, such as</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">java org.activemq.broker.impl.Main tcp:<span class="code-comment">//localhost:61626</span>
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+java org.activemq.broker.impl.Main tcp://localhost:61626
+]]></script>
 </div></div>
 
 <p>Or via Maven</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">maven server -Durl=tcp:<span class="code-comment">//localhost:61626</span>
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+maven server -Durl=tcp://localhost:61626
+]]></script>
 </div></div>
 
 
@@ -135,15 +151,17 @@ maven server 
 <p>You can use the <a shape="rect" href="xml-configuration.html" title="Xml Configuration">Xml Configuration</a> to customize the Message Broker to suit your needs. You can run a broker from Maven as follows...</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">maven server -Dconfig=src/sample-conf/<span class="code-keyword">default</span>.xml
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+maven server -Dconfig=src/sample-conf/default.xml
+]]></script>
 </div></div>
 
 <p>If your <a shape="rect" href="initial-configuration.html" title="Initial Configuration">classpath is setup correctly</a> you can achieve the same thing from the command line</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">java org.activemq.spring.Main src/sample-conf/<span class="code-keyword">default</span>.xml
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+java org.activemq.spring.Main src/sample-conf/default.xml
+]]></script>
 </div></div>
 
 <p>Notice that we supply an alternative Main which is dependent on Spring and takes an XML configuration file as the argument.</p>
@@ -155,8 +173,9 @@ maven server 
 
 <p>Just change your connection URI in 3.x to</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">reliable:tcp:<span class="code-comment">//host:port</span>
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+reliable:tcp://host:port
+]]></script>
 </div></div>
           </div>
         </td>
@@ -171,8 +190,8 @@ maven server 
 
 <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/running-a-broker.html
==============================================================================
--- websites/production/activemq/content/running-a-broker.html (original)
+++ websites/production/activemq/content/running-a-broker.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- Running a broker
     </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/sample-camel-routes.html
==============================================================================
--- websites/production/activemq/content/sample-camel-routes.html (original)
+++ websites/production/activemq/content/sample-camel-routes.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; -- Sample Camel Routes
     </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>
@@ -75,144 +86,144 @@
 <h3><a shape="rect" name="SampleCamelRoutes-ExampleofaconfigurationthatshowhowtouseCamelrouteswithJuelandXpath."></a>Example of a configuration that show how to use Camel routes with Juel and Xpath.</h3>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;beans&gt;</span>
-    <span class="code-tag"><span class="code-comment">&lt;!-- Allows us to use system properties as variables in this configuration file --&gt;</span></span>
-    <span class="code-tag">&lt;bean class=<span class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</span>/&gt;</span>
-
-    &lt;broker useJmx=<span class="code-quote">"true"</span> persistent=<span class="code-quote">"false"</span> xmlns=<span class="code-quote">"http://activemq.org/config/1.0"</span>
-            brokerName=<span class="code-quote">"localhost"</span> dataDirectory=<span class="code-quote">"${activemq.base}/data"</span>&gt;
-    <span class="code-tag">&lt;/broker&gt;</span>
-
-    <span class="code-tag">&lt;camelContext id=<span class="code-quote">"camel"</span> xmlns=<span class="code-quote">"http://activemq.apache.org/camel/schema/spring"</span>&gt;</span>
-        <span class="code-tag"><span class="code-comment">&lt;!-- simple bridge from a topic to queue --&gt;</span></span>
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:topic:topic.HelloWorld.incoming"</span>&gt;</span>
-            <span class="code-tag">&lt;to   uri=<span class="code-quote">"activemq:queue:queue.HelloWorld"</span>&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- Dependencies: camel-juel-[camel-n].jar, juel-[juel-n]-impl.jar, juel-[juel-n].jar must be in the activemq lib directory --&gt;</span></span>
-        <span class="code-tag"><span class="code-comment">&lt;!-- 2 separate JUEL based filters --&gt;</span></span>
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:topic:topic.HelloWorld.incoming.camel1"</span>&gt;</span>
-            <span class="code-tag">&lt;filter&gt;</span>
-                <span class="code-tag">&lt;el&gt;</span>${in.headers.JMSType.equals('foo')}<span class="code-tag">&lt;/el&gt;</span>
-                <span class="code-tag">&lt;filter&gt;</span>
-                    <span class="code-tag">&lt;el&gt;</span>${in.headers.myHeaderField.equals('takeMe')}<span class="code-tag">&lt;/el&gt;</span>
-                    <span class="code-tag">&lt;to   uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel1.fooMsgs"</span>&gt;</span>
-                <span class="code-tag">&lt;/filter&gt;</span>
-            <span class="code-tag">&lt;/filter&gt;</span>
-            <span class="code-tag">&lt;filter&gt;</span>
-                <span class="code-tag">&lt;el&gt;</span>${in.headers.JMSType.equals('bar')}<span class="code-tag">&lt;/el&gt;</span>
-                <span class="code-tag">&lt;filter&gt;</span>
-                    <span class="code-tag">&lt;el&gt;</span>${in.headers.myHeaderField.equals('takeMe')}<span class="code-tag">&lt;/el&gt;</span>
-                    <span class="code-tag">&lt;filter&gt;</span>
-                        <span class="code-tag">&lt;el&gt;</span>${in.headers.myOtherHeaderField.equals('3')}<span class="code-tag">&lt;/el&gt;</span>
-                        <span class="code-tag">&lt;to   uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel1.fooMsgs.special"</span>&gt;</span>
-                    <span class="code-tag">&lt;/filter&gt;</span>
-                <span class="code-tag">&lt;/filter&gt;</span>
-            <span class="code-tag">&lt;/filter&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- route using 2 separate xpath based filters, assuming the message has an XML body --&gt;</span></span>
-
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:topic:topic.HelloWorld.incoming.camel2"</span>&gt;</span>
-            <span class="code-tag">&lt;filter&gt;</span>
-                <span class="code-tag">&lt;xpath&gt;</span>$JMSType = 'foo' and $myCustomHeader='takeMe'<span class="code-tag">&lt;/xpath&gt;</span>
-                <span class="code-tag">&lt;to   uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel2.fooMsgs"</span>&gt;</span>
-            <span class="code-tag">&lt;/filter&gt;</span>
-            <span class="code-tag">&lt;filter&gt;</span>
-                <span class="code-tag">&lt;xpath&gt;</span>$JMSType = 'bar' and $myCustomHeader='takeMe'<span class="code-tag">&lt;/xpath&gt;</span>
-                <span class="code-tag">&lt;to   uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel2.barMsgs"</span>&gt;</span>
-            <span class="code-tag">&lt;/filter&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- route using choice route based on xpath --&gt;</span></span>
-
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:topic:topic.HelloWorld.incoming.camel3"</span>&gt;</span>
-            <span class="code-tag">&lt;choice&gt;</span>
-                <span class="code-tag">&lt;when&gt;</span>
-                    <span class="code-tag">&lt;xpath&gt;</span>$JMSType = 'foo'<span class="code-tag">&lt;/xpath&gt;</span>
-                    <span class="code-tag">&lt;to   uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel3.fooMsgs"</span>&gt;</span>
-                <span class="code-tag">&lt;/when&gt;</span>
-                <span class="code-tag">&lt;otherwise&gt;</span>
-                    <span class="code-tag">&lt;to   uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel3.nonFooMsgs"</span>&gt;</span>
-                <span class="code-tag">&lt;/otherwise&gt;</span>
-            <span class="code-tag">&lt;/choice&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- route using choice route based on JUEL --&gt;</span></span>
-
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:topic:topic.HelloWorld.incoming.camel4"</span>&gt;</span>
-            <span class="code-tag">&lt;choice&gt;</span>
-                <span class="code-tag">&lt;when&gt;</span>
-                    <span class="code-tag">&lt;el&gt;</span>${in.headers.JMSType.equals('foo')}<span class="code-tag">&lt;/el&gt;</span>
-                    <span class="code-tag">&lt;to uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel4.fooMsgs"</span>&gt;</span>
-                <span class="code-tag">&lt;/when&gt;</span>
-            <span class="code-tag">&lt;/choice&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- route using nested JUEL based filters --&gt;</span></span>
-
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:topic:topic.HelloWorld.incoming.camel5"</span>&gt;</span>
-            <span class="code-tag">&lt;filter&gt;</span>
-                <span class="code-tag">&lt;el&gt;</span>${in.headers.JMSType.equals('foo')}<span class="code-tag">&lt;/el&gt;</span>
-                <span class="code-tag">&lt;filter&gt;</span>
-                    <span class="code-tag">&lt;el&gt;</span>${in.headers.OperationRequest.equals('foo1')}<span class="code-tag">&lt;/el&gt;</span>
-                    <span class="code-tag">&lt;to uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel5.foo1Msgs"</span>&gt;</span>
-                <span class="code-tag">&lt;/filter&gt;</span>
-                <span class="code-tag">&lt;filter&gt;</span>
-                    <span class="code-tag">&lt;el&gt;</span>${in.headers.OperationRequest.equals('foo2')}<span class="code-tag">&lt;/el&gt;</span>
-                    <span class="code-tag">&lt;to uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel5.foo2Msgs"</span>&gt;</span>
-                <span class="code-tag">&lt;/filter&gt;</span>
-            <span class="code-tag">&lt;/filter&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- route using nested JUEL and xpath filters, including a filter which examines the message content for an xml attribute --&gt;</span></span>
-
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:topic:topic.HelloWorld.incoming.camel6"</span>&gt;</span>
-            <span class="code-tag">&lt;filter&gt;</span>
-                <span class="code-tag">&lt;el&gt;</span>${in.headers.JMSType.equals('foo')}<span class="code-tag">&lt;/el&gt;</span>
-                <span class="code-tag">&lt;filter&gt;</span>
-                    <span class="code-tag">&lt;xpath&gt;</span>/rootXMLBodyNode/childXMLBodyNode[@myAttributeKey='myAttributeValue']<span class="code-tag">&lt;/xpath&gt;</span>
-                    <span class="code-tag">&lt;to uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel6.fooMsgs"</span>&gt;</span>
-                <span class="code-tag">&lt;/filter&gt;</span>
-            <span class="code-tag">&lt;/filter&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- route using nested JUEL and xpath filters, including a filter which examines the message content for an xml value --&gt;</span></span>
-
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:topic:topic.HelloWorld.incoming.camel7"</span>&gt;</span>
-            <span class="code-tag">&lt;filter&gt;</span>
-                <span class="code-tag">&lt;el&gt;</span>${in.headers.JMSType.equals('Tideworks.GateVision.XmlCmd')}<span class="code-tag">&lt;/el&gt;</span>
-                <span class="code-tag">&lt;filter&gt;</span>
-                    <span class="code-tag">&lt;xpath&gt;</span>/rootXMLBodyNode/childXMLBodyNode/elementKey = 'elementValue'<span class="code-tag">&lt;/xpath&gt;</span>
-                    <span class="code-tag">&lt;to uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel7.fooMsgs"</span>&gt;</span>
-                <span class="code-tag">&lt;/filter&gt;</span>
-            <span class="code-tag">&lt;/filter&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- route using nested JUEL and xpath filters, including a filter which examines the message content for an xml attribute --&gt;</span></span>
-
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:topic:topic.HelloWorld.incoming.camel8"</span>&gt;</span>
-            <span class="code-tag">&lt;filter&gt;</span>
-                <span class="code-tag">&lt;el&gt;</span>${in.headers.JMSType.equals('foo')}<span class="code-tag">&lt;/el&gt;</span>
-                <span class="code-tag">&lt;filter&gt;</span>
-                    <span class="code-tag">&lt;xpath&gt;</span>/rootXMLBodyNode/childXMLBodyNode[@myAttributeKey='myAttributeValue']/grandchildXMLBodyNode[@myAttributeKey='myAttributeValue']<span class="code-tag">&lt;/xpath&gt;</span>
-                    <span class="code-tag">&lt;to uri=<span class="code-quote">"activemq:queue:queue.HelloWorld.camel8.fooMsgs"</span>&gt;</span>
-                <span class="code-tag">&lt;/filter&gt;</span>
-            <span class="code-tag">&lt;/filter&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-    <span class="code-tag">&lt;/camelContext&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans&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 useJmx="true" persistent="false" xmlns="http://activemq.org/config/1.0"
+            brokerName="localhost" dataDirectory="${activemq.base}/data"&gt;
+    &lt;/broker&gt;
+
+    &lt;camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring"&gt;
+        &lt;!-- simple bridge from a topic to queue --&gt;
+        &lt;route&gt;
+            &lt;from uri="activemq:topic:topic.HelloWorld.incoming"&gt;
+            &lt;to   uri="activemq:queue:queue.HelloWorld"&gt;
+        &lt;/route&gt;
+
+        &lt;!-- Dependencies: camel-juel-[camel-n].jar, juel-[juel-n]-impl.jar, juel-[juel-n].jar must be in the activemq lib directory --&gt;
+        &lt;!-- 2 separate JUEL based filters --&gt;
+        &lt;route&gt;
+            &lt;from uri="activemq:topic:topic.HelloWorld.incoming.camel1"&gt;
+            &lt;filter&gt;
+                &lt;el&gt;${in.headers.JMSType.equals('foo')}&lt;/el&gt;
+                &lt;filter&gt;
+                    &lt;el&gt;${in.headers.myHeaderField.equals('takeMe')}&lt;/el&gt;
+                    &lt;to   uri="activemq:queue:queue.HelloWorld.camel1.fooMsgs"&gt;
+                &lt;/filter&gt;
+            &lt;/filter&gt;
+            &lt;filter&gt;
+                &lt;el&gt;${in.headers.JMSType.equals('bar')}&lt;/el&gt;
+                &lt;filter&gt;
+                    &lt;el&gt;${in.headers.myHeaderField.equals('takeMe')}&lt;/el&gt;
+                    &lt;filter&gt;
+                        &lt;el&gt;${in.headers.myOtherHeaderField.equals('3')}&lt;/el&gt;
+                        &lt;to   uri="activemq:queue:queue.HelloWorld.camel1.fooMsgs.special"&gt;
+                    &lt;/filter&gt;
+                &lt;/filter&gt;
+            &lt;/filter&gt;
+        &lt;/route&gt;
+
+        &lt;!-- route using 2 separate xpath based filters, assuming the message has an XML body --&gt;
+
+        &lt;route&gt;
+            &lt;from uri="activemq:topic:topic.HelloWorld.incoming.camel2"&gt;
+            &lt;filter&gt;
+                &lt;xpath&gt;$JMSType = 'foo' and $myCustomHeader='takeMe'&lt;/xpath&gt;
+                &lt;to   uri="activemq:queue:queue.HelloWorld.camel2.fooMsgs"&gt;
+            &lt;/filter&gt;
+            &lt;filter&gt;
+                &lt;xpath&gt;$JMSType = 'bar' and $myCustomHeader='takeMe'&lt;/xpath&gt;
+                &lt;to   uri="activemq:queue:queue.HelloWorld.camel2.barMsgs"&gt;
+            &lt;/filter&gt;
+        &lt;/route&gt;
+
+        &lt;!-- route using choice route based on xpath --&gt;
+
+        &lt;route&gt;
+            &lt;from uri="activemq:topic:topic.HelloWorld.incoming.camel3"&gt;
+            &lt;choice&gt;
+                &lt;when&gt;
+                    &lt;xpath&gt;$JMSType = 'foo'&lt;/xpath&gt;
+                    &lt;to   uri="activemq:queue:queue.HelloWorld.camel3.fooMsgs"&gt;
+                &lt;/when&gt;
+                &lt;otherwise&gt;
+                    &lt;to   uri="activemq:queue:queue.HelloWorld.camel3.nonFooMsgs"&gt;
+                &lt;/otherwise&gt;
+            &lt;/choice&gt;
+        &lt;/route&gt;
+
+        &lt;!-- route using choice route based on JUEL --&gt;
+
+        &lt;route&gt;
+            &lt;from uri="activemq:topic:topic.HelloWorld.incoming.camel4"&gt;
+            &lt;choice&gt;
+                &lt;when&gt;
+                    &lt;el&gt;${in.headers.JMSType.equals('foo')}&lt;/el&gt;
+                    &lt;to uri="activemq:queue:queue.HelloWorld.camel4.fooMsgs"&gt;
+                &lt;/when&gt;
+            &lt;/choice&gt;
+        &lt;/route&gt;
+
+        &lt;!-- route using nested JUEL based filters --&gt;
+
+        &lt;route&gt;
+            &lt;from uri="activemq:topic:topic.HelloWorld.incoming.camel5"&gt;
+            &lt;filter&gt;
+                &lt;el&gt;${in.headers.JMSType.equals('foo')}&lt;/el&gt;
+                &lt;filter&gt;
+                    &lt;el&gt;${in.headers.OperationRequest.equals('foo1')}&lt;/el&gt;
+                    &lt;to uri="activemq:queue:queue.HelloWorld.camel5.foo1Msgs"&gt;
+                &lt;/filter&gt;
+                &lt;filter&gt;
+                    &lt;el&gt;${in.headers.OperationRequest.equals('foo2')}&lt;/el&gt;
+                    &lt;to uri="activemq:queue:queue.HelloWorld.camel5.foo2Msgs"&gt;
+                &lt;/filter&gt;
+            &lt;/filter&gt;
+        &lt;/route&gt;
+
+        &lt;!-- route using nested JUEL and xpath filters, including a filter which examines the message content for an xml attribute --&gt;
+
+        &lt;route&gt;
+            &lt;from uri="activemq:topic:topic.HelloWorld.incoming.camel6"&gt;
+            &lt;filter&gt;
+                &lt;el&gt;${in.headers.JMSType.equals('foo')}&lt;/el&gt;
+                &lt;filter&gt;
+                    &lt;xpath&gt;/rootXMLBodyNode/childXMLBodyNode[@myAttributeKey='myAttributeValue']&lt;/xpath&gt;
+                    &lt;to uri="activemq:queue:queue.HelloWorld.camel6.fooMsgs"&gt;
+                &lt;/filter&gt;
+            &lt;/filter&gt;
+        &lt;/route&gt;
+
+        &lt;!-- route using nested JUEL and xpath filters, including a filter which examines the message content for an xml value --&gt;
+
+        &lt;route&gt;
+            &lt;from uri="activemq:topic:topic.HelloWorld.incoming.camel7"&gt;
+            &lt;filter&gt;
+                &lt;el&gt;${in.headers.JMSType.equals('Tideworks.GateVision.XmlCmd')}&lt;/el&gt;
+                &lt;filter&gt;
+                    &lt;xpath&gt;/rootXMLBodyNode/childXMLBodyNode/elementKey = 'elementValue'&lt;/xpath&gt;
+                    &lt;to uri="activemq:queue:queue.HelloWorld.camel7.fooMsgs"&gt;
+                &lt;/filter&gt;
+            &lt;/filter&gt;
+        &lt;/route&gt;
+
+        &lt;!-- route using nested JUEL and xpath filters, including a filter which examines the message content for an xml attribute --&gt;
+
+        &lt;route&gt;
+            &lt;from uri="activemq:topic:topic.HelloWorld.incoming.camel8"&gt;
+            &lt;filter&gt;
+                &lt;el&gt;${in.headers.JMSType.equals('foo')}&lt;/el&gt;
+                &lt;filter&gt;
+                    &lt;xpath&gt;/rootXMLBodyNode/childXMLBodyNode[@myAttributeKey='myAttributeValue']/grandchildXMLBodyNode[@myAttributeKey='myAttributeValue']&lt;/xpath&gt;
+                    &lt;to uri="activemq:queue:queue.HelloWorld.camel8.fooMsgs"&gt;
+                &lt;/filter&gt;
+            &lt;/filter&gt;
+        &lt;/route&gt;
+    &lt;/camelContext&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
           </div>
         </td>
@@ -227,8 +238,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/sample-report.html
==============================================================================
--- websites/production/activemq/content/sample-report.html (original)
+++ websites/production/activemq/content/sample-report.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- sample report
     </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>
@@ -157,8 +158,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/sandbox.html
==============================================================================
--- websites/production/activemq/content/sandbox.html (original)
+++ websites/production/activemq/content/sandbox.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- Sandbox
     </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/scaling-queues.html
==============================================================================
--- websites/production/activemq/content/scaling-queues.html (original)
+++ websites/production/activemq/content/scaling-queues.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; -- Scaling Queues
     </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>
@@ -81,9 +91,9 @@
 <p>ActiveMQ can optionally use internally a thread pool to control dispatching of messages - but as a lot of deployment operating systems are good at handling a large number of threads, this is off by default. To enable this option, either set the ACTIVEMQ_OPTS to disable dedicated task runners  in the start up script, INSTALL_DIR/bin/activemq -e.g.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-ACTIVEMQ_OPTS=<span class="code-quote">"-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=<span class="code-keyword">false</span>"</span>  
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+ACTIVEMQ_OPTS="-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=false"  
+]]></script>
 </div></div>
 
 <p>or you can set ACTIVEMQ_OPTS in /etc/activemq.conf.</p>
@@ -123,8 +133,8 @@ ACTIVEMQ_OPTS=<span class="code-quote">"
 
 <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/scaling-the-depth-of-a-queue.html
==============================================================================
--- websites/production/activemq/content/scaling-the-depth-of-a-queue.html (original)
+++ websites/production/activemq/content/scaling-the-depth-of-a-queue.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/shBrushPlain.js' type='text/javascript'></script> 
+         
+      <script type="text/javascript"> 
+        SyntaxHighlighter.defaults['toolbar'] = false; 
+        SyntaxHighlighter.all(); 
+      </script> 
+    
     <title>
     Apache ActiveMQ &#8482; -- Scaling the Depth of a Queue
     </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>
@@ -119,16 +130,16 @@ If a Consumer becomes active after messa
 
 <p>For Topics there is a dispatch queue and pending cursor for every subscriber. &#160;It's possible to configure different policies for durable subscribers and transient subscribers - e.g:</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;destinationPolicy&gt;
       &lt;policyMap&gt;
         &lt;policyEntries&gt;
-          &lt;policyEntry topic=<span class="code-quote">"org.apache.&gt;"</span> producerFlowControl=<span class="code-quote">"<span class="code-keyword">false</span>"</span> memoryLimit=<span class="code-quote">"1mb"</span>&gt;
+          &lt;policyEntry topic="org.apache.&gt;" producerFlowControl="false" memoryLimit="1mb"&gt;
             &lt;dispatchPolicy&gt;
               &lt;strictOrderDispatchPolicy /&gt;
             &lt;/dispatchPolicy&gt;
             &lt;deadLetterStrategy&gt;
-              &lt;individualDeadLetterStrategy  topicPrefix=<span class="code-quote">"Test.DLQ."</span> /&gt;
+              &lt;individualDeadLetterStrategy  topicPrefix="Test.DLQ." /&gt;
             &lt;/deadLetterStrategy&gt;
             &lt;pendingSubscriberPolicy&gt;
             	&lt;vmCursor /&gt;
@@ -140,7 +151,7 @@ If a Consumer becomes active after messa
         &lt;/policyEntries&gt;
       &lt;/policyMap&gt;
 &lt;/destinationPolicy&gt;
-</pre>
+]]></script>
 </div></div>
 <p>Valid Subscriber types are&#160;<b><em>vmCursor</em></b> and <b><em>fileCursor.</em></b>&#160;The default is the store based cursor.<br clear="none">
 Valid Durable Subscriber cursor types are&#160;<b><em>vmDurableCursor</em></b> and <b><em>fileDurableSubscriberCursor.</em></b>&#160;The default is the store based cursor</p>
@@ -149,13 +160,13 @@ Valid Durable Subscriber cursor types ar
 
 <p>For Queues there is a single dispatch Queue and pending Queue for every destination, so configuration is slightly different:</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;destinationPolicy&gt;
       &lt;policyMap&gt;
         &lt;policyEntries&gt;
-          &lt;policyEntry queue=<span class="code-quote">"org.apache.&gt;"</span>&gt;
+          &lt;policyEntry queue="org.apache.&gt;"&gt;
             &lt;deadLetterStrategy&gt;
-              &lt;individualDeadLetterStrategy queuePrefix=<span class="code-quote">"Test.DLQ."</span>/&gt;
+              &lt;individualDeadLetterStrategy queuePrefix="Test.DLQ."/&gt;
             &lt;/deadLetterStrategy&gt;
             &lt;pendingQueuePolicy&gt;
             	&lt;vmQueueCursor /&gt;
@@ -164,7 +175,7 @@ Valid Durable Subscriber cursor types ar
         &lt;/policyEntries&gt;
       &lt;/policyMap&gt;
  &lt;/destinationPolicy&gt;
-</pre>
+]]></script>
 </div></div>
 <p>Valid Queue cursor types are <b><em>vmQueueCursor</em></b> and <b><em>fileQueueCursor.</em></b>&#160;The default is the store based cursor</p>
 
@@ -185,8 +196,8 @@ Valid Durable Subscriber cursor types ar
 
 <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/security.html
==============================================================================
--- websites/production/activemq/content/security.html (original)
+++ websites/production/activemq/content/security.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; -- Security
     </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>
@@ -94,17 +105,17 @@
 
 <p>If you have modest authentication requirements (or just want to quickly set up your testing environment) you can use SimpleAuthenticationPlugin. With this plugin you can define users and groups directly in the broker's XML configuration. Take a look at the following snippet for example:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;simpleAuthenticationPlugin&gt;</span>
-	<span class="code-tag">&lt;users&gt;</span>
-		&lt;authenticationUser username=<span class="code-quote">"system"</span> password=<span class="code-quote">"manager"</span>
-			groups=<span class="code-quote">"users,admins"</span>/&gt;
-		&lt;authenticationUser username=<span class="code-quote">"user"</span> password=<span class="code-quote">"password"</span>
-			groups=<span class="code-quote">"users"</span>/&gt;
-		<span class="code-tag">&lt;authenticationUser username=<span class="code-quote">"guest"</span> password=<span class="code-quote">"password"</span> groups=<span class="code-quote">"guests"</span>/&gt;</span>
-	<span class="code-tag">&lt;/users&gt;</span>
-<span class="code-tag">&lt;/simpleAuthenticationPlugin&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;simpleAuthenticationPlugin&gt;
+	&lt;users&gt;
+		&lt;authenticationUser username="system" password="manager"
+			groups="users,admins"/&gt;
+		&lt;authenticationUser username="user" password="password"
+			groups="users"/&gt;
+		&lt;authenticationUser username="guest" password="password" groups="guests"/&gt;
+	&lt;/users&gt;
+&lt;/simpleAuthenticationPlugin&gt;
+]]></script>
 </div></div>
 <p>Users and groups defined in this way can be later used with the appropriate authorization plugin.</p>
 
@@ -113,17 +124,17 @@
 <p>From version 5.4.0 onwards, you can configure simple authentication plugin to allow anonymous access to the broker.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;simpleAuthenticationPlugin anonymousAccessAllowed=<span class="code-quote">"true"</span>&gt;</span>
-    <span class="code-tag">&lt;users&gt;</span>
-        &lt;authenticationUser username=<span class="code-quote">"system"</span> password=<span class="code-quote">"manager"</span>
-            groups=<span class="code-quote">"users,admins"</span>/&gt;
-        &lt;authenticationUser username=<span class="code-quote">"user"</span> password=<span class="code-quote">"password"</span>
-            groups=<span class="code-quote">"users"</span>/&gt;
-        <span class="code-tag">&lt;authenticationUser username=<span class="code-quote">"guest"</span> password=<span class="code-quote">"password"</span> groups=<span class="code-quote">"guests"</span>/&gt;</span>
-    <span class="code-tag">&lt;/users&gt;</span>
-<span class="code-tag">&lt;/simpleAuthenticationPlugin&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;simpleAuthenticationPlugin anonymousAccessAllowed="true"&gt;
+    &lt;users&gt;
+        &lt;authenticationUser username="system" password="manager"
+            groups="users,admins"/&gt;
+        &lt;authenticationUser username="user" password="password"
+            groups="users"/&gt;
+        &lt;authenticationUser username="guest" password="password" groups="guests"/&gt;
+    &lt;/users&gt;
+&lt;/simpleAuthenticationPlugin&gt;
+]]></script>
 </div></div>
 
 <p>To allow anonymous access to the broker, use <tt>anonymousAccessAllowed</tt> attribute and set it to <tt>true</tt> as shown above. Now, when the client connects without username and password provided, a default username (<tt>anonymous</tt>) and group (<tt>anonymous</tt>) will be assigned to its security context. You can use this username and password to authorize client's access to appropriate broker resources (see the next section). You can also change username and group that will be assigned to <em>anonymous</em> users by using <tt>anonymousUser</tt> and <tt>anonymousGroup</tt> attributes.</p>
@@ -154,14 +165,14 @@ If necessary, the use of advisories in t
 
 <p>In order for BrokerB to connect to BrokerA, the corresponding &lt;networkConnector&gt; element in BrokerB's XML configuration file must be set up as follows.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;networkConnectors&gt;</span>
-   &lt;networkConnector name=<span class="code-quote">"brokerAbridge"</span>
-                     userName=<span class="code-quote">"user"</span>
-                     password=<span class="code-quote">"password"</span>
-                     uri=<span class="code-quote">"static://(tcp://brokerA:61616)"</span>/&gt;
-   <span class="code-tag">&lt;/networkConnectors&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;networkConnectors&gt;
+   &lt;networkConnector name="brokerAbridge"
+                     userName="user"
+                     password="password"
+                     uri="static://(tcp://brokerA:61616)"/&gt;
+   &lt;/networkConnectors&gt;
+]]></script>
 </div></div>
 <p>Note how BrokerB's &lt;networkConnector&gt; element must provide the proper credentials in order to connect to BrokerA. If authorization has been enabled on BrokerA, then the userName assigned to the &lt;networkConnector&gt; element must also have the proper authorization credentials. Messages cannot be forwarded from BrokerB to BrokerA if BrokerA has authorization enabled and BrokerB's corresponding &lt;networkConnector&gt; element's userName has not been given the proper authorization credentials.</p>
 
@@ -171,29 +182,29 @@ If necessary, the use of advisories in t
 
 <p>To control access to temporary destinations, you will need to add a &lt;tempDestinationAuthorizationEntry&gt; element to the authorizationMap.  Through this element, you control access to all temporary destinations. If this element is not present, read, write, and admin privileges for temporary destinations will be granted to all. In the example below,  read, write, and admin privileges for temporary destinations are only granted to those clients that have been assigned to the 'admin' group.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;broker&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;broker&gt;
   ..
-   <span class="code-tag">&lt;plugins&gt;</span>
+   &lt;plugins&gt;
       ..
-   <span class="code-tag">&lt;authorizationPlugin&gt;</span>
-       <span class="code-tag">&lt;map&gt;</span>
-         <span class="code-tag">&lt;authorizationMap&gt;</span>
-           <span class="code-tag">&lt;authorizationEntries&gt;</span>
-             <span class="code-tag">&lt;authorizationEntry queue=<span class="code-quote">"TEST.Q"</span> read=<span class="code-quote">"users"</span> write=<span class="code-quote">"users"</span> admin=<span class="code-quote">"users"</span> /&gt;</span>
-             <span class="code-tag">&lt;authorizationEntry topic=<span class="code-quote">"ActiveMQ.Advisory.&gt;</span>"</span> read=<span class="code-quote">"all"</span> write=<span class="code-quote">"all"</span> admin=<span class="code-quote">"all"</span>/&gt;
-           <span class="code-tag">&lt;/authorizationEntries&gt;</span>
-           <span class="code-tag">&lt;tempDestinationAuthorizationEntry&gt;</span>
-             <span class="code-tag">&lt;tempDestinationAuthorizationEntry read=<span class="code-quote">"admin"</span> write=<span class="code-quote">"admin"</span> admin=<span class="code-quote">"admin"</span>/&gt;</span>
-           <span class="code-tag">&lt;/tempDestinationAuthorizationEntry&gt;</span>
-        <span class="code-tag">&lt;/authorizationMap&gt;</span>
-      <span class="code-tag">&lt;/map&gt;</span>
-   <span class="code-tag">&lt;/authorizationPlugin&gt;</span>
+   &lt;authorizationPlugin&gt;
+       &lt;map&gt;
+         &lt;authorizationMap&gt;
+           &lt;authorizationEntries&gt;
+             &lt;authorizationEntry queue="TEST.Q" read="users" write="users" admin="users" /&gt;
+             &lt;authorizationEntry topic="ActiveMQ.Advisory.&gt;" read="all" write="all" admin="all"/&gt;
+           &lt;/authorizationEntries&gt;
+           &lt;tempDestinationAuthorizationEntry&gt;
+             &lt;tempDestinationAuthorizationEntry read="admin" write="admin" admin="admin"/&gt;
+           &lt;/tempDestinationAuthorizationEntry&gt;
+        &lt;/authorizationMap&gt;
+      &lt;/map&gt;
+   &lt;/authorizationPlugin&gt;
      ..
-  <span class="code-tag">&lt;/plugins&gt;</span>
+  &lt;/plugins&gt;
   ..
-<span class="code-tag">&lt;/broker&gt;</span>
-</pre>
+&lt;/broker&gt;
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="Security-LDAPAuthenticationUsingtheJAASPlugin"></a>LDAP Authentication Using the JAAS Plugin </h3>
@@ -203,76 +214,76 @@ If necessary, the use of advisories in t
 <p>1. Configure the JAAS LDAPLoginModule and the LDAPAuthorizationMap in activemq.xml: </p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-    <span class="code-tag">&lt;plugins&gt;</span> 
-      <span class="code-tag"><span class="code-comment">&lt;!--  use JAAS to authenticate using the login.config file on the classpath to configure JAAS --&gt;</span></span> 
-      <span class="code-tag">&lt;jaasAuthenticationPlugin configuration=<span class="code-quote">"LdapConfiguration"</span> /&gt;</span> 
-      <span class="code-tag"><span class="code-comment">&lt;!--  lets configure a destination based role/group authorization mechanism --&gt;</span></span> 
-      <span class="code-tag">&lt;authorizationPlugin&gt;</span> 
-        <span class="code-tag">&lt;map&gt;</span> 
-          &lt;bean xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span> id=<span class="code-quote">"lDAPAuthorizationMap"</span> 
-                class=<span class="code-quote">"org.apache.activemq.security.LDAPAuthorizationMap"</span>&gt; 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"initialContextFactory"</span> value=<span class="code-quote">"com.sun.jndi.ldap.LdapCtxFactory"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"connectionURL"</span> value=<span class="code-quote">"ldap://ldap.acme.com:389"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"authentication"</span> value=<span class="code-quote">"simple"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"connectionUsername"</span> value=<span class="code-quote">"cn=mqbroker,ou=Services,dc=acme,dc=com"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"connectionPassword"</span> value=<span class="code-quote">"password"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"connectionProtocol"</span> value=<span class="code-quote">"s"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"topicSearchMatching"</span> value=<span class="code-quote">"cn={0},ou=Topic,ou=Destination,ou=ActiveMQ,ou=systems,dc=acme,dc=com"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"topicSearchSubtreeBool"</span> value=<span class="code-quote">"true"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"queueSearchMatching"</span> value=<span class="code-quote">"cn={0},ou=Queue,ou=Destination,ou=ActiveMQ,ou=systems,dc=acme,dc=com"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"queueSearchSubtreeBool"</span> value=<span class="code-quote">"true"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"adminBase"</span> value=<span class="code-quote">"(cn=admin)"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"adminAttribute"</span> value=<span class="code-quote">"member"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"adminAttributePrefix"</span> value=<span class="code-quote">"cn="</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"readBase"</span> value=<span class="code-quote">"(cn=read)"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"readAttribute"</span> value=<span class="code-quote">"member"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"readAttributePrefix"</span> value=<span class="code-quote">"cn="</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"writeBase"</span> value=<span class="code-quote">"(cn=write)"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"writeAttribute"</span> value=<span class="code-quote">"member"</span>/&gt;</span> 
-            <span class="code-tag">&lt;property name=<span class="code-quote">"writeAttributePrefix"</span> value=<span class="code-quote">"cn="</span>/&gt;</span> 
-          <span class="code-tag">&lt;/bean&gt;</span> 
-        <span class="code-tag">&lt;/map&gt;</span> 
-      <span class="code-tag">&lt;/authorizationPlugin&gt;</span> 
-    <span class="code-tag">&lt;/plugins&gt;</span> 
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+    &lt;plugins&gt; 
+      &lt;!--  use JAAS to authenticate using the login.config file on the classpath to configure JAAS --&gt; 
+      &lt;jaasAuthenticationPlugin configuration="LdapConfiguration" /&gt; 
+      &lt;!--  lets configure a destination based role/group authorization mechanism --&gt; 
+      &lt;authorizationPlugin&gt; 
+        &lt;map&gt; 
+          &lt;bean xmlns="http://www.springframework.org/schema/beans" id="lDAPAuthorizationMap" 
+                class="org.apache.activemq.security.LDAPAuthorizationMap"&gt; 
+            &lt;property name="initialContextFactory" value="com.sun.jndi.ldap.LdapCtxFactory"/&gt; 
+            &lt;property name="connectionURL" value="ldap://ldap.acme.com:389"/&gt; 
+            &lt;property name="authentication" value="simple"/&gt; 
+            &lt;property name="connectionUsername" value="cn=mqbroker,ou=Services,dc=acme,dc=com"/&gt; 
+            &lt;property name="connectionPassword" value="password"/&gt; 
+            &lt;property name="connectionProtocol" value="s"/&gt; 
+            &lt;property name="topicSearchMatching" value="cn={0},ou=Topic,ou=Destination,ou=ActiveMQ,ou=systems,dc=acme,dc=com"/&gt; 
+            &lt;property name="topicSearchSubtreeBool" value="true"/&gt; 
+            &lt;property name="queueSearchMatching" value="cn={0},ou=Queue,ou=Destination,ou=ActiveMQ,ou=systems,dc=acme,dc=com"/&gt; 
+            &lt;property name="queueSearchSubtreeBool" value="true"/&gt; 
+            &lt;property name="adminBase" value="(cn=admin)"/&gt; 
+            &lt;property name="adminAttribute" value="member"/&gt; 
+            &lt;property name="adminAttributePrefix" value="cn="/&gt; 
+            &lt;property name="readBase" value="(cn=read)"/&gt; 
+            &lt;property name="readAttribute" value="member"/&gt; 
+            &lt;property name="readAttributePrefix" value="cn="/&gt; 
+            &lt;property name="writeBase" value="(cn=write)"/&gt; 
+            &lt;property name="writeAttribute" value="member"/&gt; 
+            &lt;property name="writeAttributePrefix" value="cn="/&gt; 
+          &lt;/bean&gt; 
+        &lt;/map&gt; 
+      &lt;/authorizationPlugin&gt; 
+    &lt;/plugins&gt; 
+]]></script>
 </div></div> 
 
 <p>2. Configure the JAAS login.config (I haven't de-duplicated the config yet): </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[ 
 LdapConfiguration { 
    org.apache.activemq.jaas.LDAPLoginModule required 
-       debug=<span class="code-keyword">true</span> 
+       debug=true 
        initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory 
-       connectionURL=<span class="code-quote">"ldap:<span class="code-comment">//ldap.acme.com:389"</span> 
-</span>       connectionUsername=<span class="code-quote">"cn=mqbroker,ou=Services,dc=acme,dc=com"</span> 
+       connectionURL="ldap://ldap.acme.com:389" 
+       connectionUsername="cn=mqbroker,ou=Services,dc=acme,dc=com" 
        connectionPassword=password 
        connectionProtocol=s 
        authentication=simple 
-       userBase=<span class="code-quote">"ou=User,ou=ActiveMQ,ou=systems,dc=acme,dc=com"</span> 
+       userBase="ou=User,ou=ActiveMQ,ou=systems,dc=acme,dc=com" 
        userRoleName=dummyUserRoleName 
-       userSearchMatching=<span class="code-quote">"(uid={0})"</span> 
-       userSearchSubtree=<span class="code-keyword">false</span> 
-       roleBase=<span class="code-quote">"ou=Group,ou=ActiveMQ,ou=systems,dc=acme,dc=com"</span> 
+       userSearchMatching="(uid={0})" 
+       userSearchSubtree=false 
+       roleBase="ou=Group,ou=ActiveMQ,ou=systems,dc=acme,dc=com" 
        roleName=cn 
-       roleSearchMatching=<span class="code-quote">"(member:=uid={1})"</span> 
-       roleSearchSubtree=<span class="code-keyword">true</span> 
+       roleSearchMatching="(member:=uid={1})" 
+       roleSearchSubtree=true 
        ; 
 }; 
-</pre>
+]]></script>
 </div></div> 
 
 <p>3. Import the following LDIF file into the LDAP server: </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[
 version: 1
 
 #
-# Sample LDIF <span class="code-keyword">for</span> ActiveMQ LDAP authentication and authorisation
-# Passwords are defaulted to <span class="code-quote">"password"</span> - it is your responsibility to change them!
+# Sample LDIF for ActiveMQ LDAP authentication and authorisation
+# Passwords are defaulted to "password" - it is your responsibility to change them!
 #
 # Sets up:
 # 1. Bind user
@@ -302,7 +313,7 @@ objectClass: organizationalRole
 objectClass: top
 objectClass: simpleSecurityObject
 userPassword: {SSHA}j0NpveEO0YD5rgI5kY8OxSRiN5KQ/kE4
-description: Bind user <span class="code-keyword">for</span> MQ broker
+description: Bind user for MQ broker
 
 dn: ou=systems,dc=acme,dc=com
 ou: systems
@@ -437,7 +448,7 @@ userPassword: {SSHA}j0NpveEO0YD5rgI5kY8O
 objectClass: account
 objectClass: simpleSecurityObject
 objectClass: top
-</pre>
+]]></script>
 </div></div> 
 
 <p>4. Start up ActiveMQ </p>
@@ -453,55 +464,55 @@ objectClass: top
 
 <p>You may have the following Camel context defined in your broker's XML configuration file.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;!--
   ** Lets deploy some Enterprise Integration Patterns inside the ActiveMQ Message Broker
   ** For more details see
   **
   ** http://activemq.apache.org/enterprise-integration-patterns.html --&gt;
 
-  <span class="code-tag">&lt;camelContext id=<span class="code-quote">"camel"</span> xmlns=<span class="code-quote">"http://activemq.apache.org/camel/schema/spring"</span>&gt;</span>
-       <span class="code-tag">&lt;package&gt;</span>org.foo.bar<span class="code-tag">&lt;/package&gt;</span>
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:example.A"</span>/&gt;</span>
-            <span class="code-tag">&lt;to uri=<span class="code-quote">"activemq:example.B"</span>/&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-  <span class="code-tag">&lt;/camelContext&gt;</span>
-</pre>
+  &lt;camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring"&gt;
+       &lt;package&gt;org.foo.bar&lt;/package&gt;
+        &lt;route&gt;
+            &lt;from uri="activemq:example.A"/&gt;
+            &lt;to uri="activemq:example.B"/&gt;
+        &lt;/route&gt;
+  &lt;/camelContext&gt;
+]]></script>
 </div></div>
 <p>The above configuration is not set up to work within a secure environment.</p>
 
 <p>If the application is running in an OSGi container, add the following line before the CamelContext definition:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;osgi:reference id=<span class="code-quote">"activemq"</span> interface=<span class="code-quote">"org.apache.camel.Component"</span> /&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;osgi:reference id="activemq" interface="org.apache.camel.Component" /&gt;
+]]></script>
 </div></div>
 <p>This allows any pre-configured instance of the ActiveMQComponent deployed in the container to take precedence on the default ActiveMQComponent.</p>
 
 <p>That is, with the above configuration, Camel will establish a connection with ActiveMQ, but will not provide a username and password. Therefore, when ActiveMQ security is enabled, the above configuration results in a security exception. The exception will be thrown multiple times, because Camel will continue to retry the connection. If you're not using Camel, comment out the above XML code. If you are using Camel, add the following bean definition to your broker's XML configuration:</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;!-- configure the camel activemq component to use the current broker --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"activemq"</span> class=<span class="code-quote">"org.apache.activemq.camel.component.ActiveMQComponent"</span> &gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"connectionFactory"</span>&gt;</span>
-          <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.activemq.ActiveMQConnectionFactory"</span>&gt;</span>
-            <span class="code-tag">&lt;property name=<span class="code-quote">"brokerURL"</span> value=<span class="code-quote">"vm://localhost?create=false&amp;amp;waitForStart=10000"</span> /&gt;</span>
-            <span class="code-tag">&lt;property name=<span class="code-quote">"userName"</span> value=<span class="code-quote">"system"</span>/&gt;</span>
-            <span class="code-tag">&lt;property name=<span class="code-quote">"password"</span> value=<span class="code-quote">"manager"</span>/&gt;</span>
-          <span class="code-tag">&lt;/bean&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;!-- configure the camel activemq component to use the current broker --&gt;
+    &lt;bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" &gt;
+        &lt;property name="connectionFactory"&gt;
+          &lt;bean class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
+            &lt;property name="brokerURL" value="vm://localhost?create=false&amp;amp;waitForStart=10000" /&gt;
+            &lt;property name="userName" value="system"/&gt;
+            &lt;property name="password" value="manager"/&gt;
+          &lt;/bean&gt;
+        &lt;/property&gt;
+    &lt;/bean&gt;
+]]></script>
 </div></div>
 
 <p>With the above bean definition, Camel will pass the specified security credentials when it connects to the broker. </p>
 
 <p>If the broker is running in an OSGi container, add the following line after the ActiveMQComponent bean definition:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;service ref=<span class="code-quote">"activemq"</span> interface=<span class="code-quote">"org.apache.camel.Component"</span>/&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;service ref="activemq" interface="org.apache.camel.Component"/&gt;
+]]></script>
 </div></div>
 
 <h4><a shape="rect" name="Security-WebConsole"></a>Web Console</h4>
@@ -509,22 +520,22 @@ objectClass: top
 <p>If you want to use the Web Console with a secured broker, you have to change <tt>connectionFactory</tt> bean in your <tt>webapps/admin/WEB-INF/webconsole-embeded.xml</tt> to something like this:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;bean id=<span class="code-quote">"connectionFactory"</span> class=<span class="code-quote">"org.apache.activemq.ActiveMQConnectionFactory"</span>&gt;</span>
-    <span class="code-tag">&lt;property name=<span class="code-quote">"brokerURL"</span> value=<span class="code-quote">"vm://localhost"</span>/&gt;</span>
-    <span class="code-tag">&lt;property name=<span class="code-quote">"userName"</span> value=<span class="code-quote">"system"</span>/&gt;</span>
-    <span class="code-tag">&lt;property name=<span class="code-quote">"password"</span> value=<span class="code-quote">"manager"</span>/&gt;</span>
-  <span class="code-tag">&lt;/bean&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
+    &lt;property name="brokerURL" value="vm://localhost"/&gt;
+    &lt;property name="userName" value="system"/&gt;
+    &lt;property name="password" value="manager"/&gt;
+  &lt;/bean&gt;
+]]></script>
 </div></div>
 
 <h4><a shape="rect" name="Security-CommandAgent"></a>Command Agent</h4>
 
 <p>Starting with version 5.3, the Command Agent can be configured to communicate with a secured broker. Simply, assign the <tt>username</tt> and <tt>password</tt> attributes to your command agent definition tag:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;commandAgent xmlns=<span class="code-quote">"http://activemq.apache.org/schema/core"</span> brokerUrl=<span class="code-quote">"vm://localhost"</span> username=<span class="code-quote">"system"</span> password=<span class="code-quote">"manager"</span>/&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;commandAgent xmlns="http://activemq.apache.org/schema/core" brokerUrl="vm://localhost" username="system" password="manager"/&gt;
+]]></script>
 </div></div>
 <p>and you are ready to go.</p>
 
@@ -533,10 +544,10 @@ objectClass: top
 <p>Starting with version 5.3, all of the above configuration details are included in the default ActiveMQ configuration. Also, there is a central place where you can set credentials that these components will use to connect to the broker. Just set your desired username and password in the <tt>conf/credentials.properties</tt> file, which by default looks like this:</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[
 activemq.username=system
 activemq.password=manager
-</pre>
+]]></script>
 </div></div>
 
 <h4><a shape="rect" name="Security-EncryptedPasswords"></a>Encrypted Passwords</h4>
@@ -547,15 +558,15 @@ activemq.password=manager
 
 <p>We have a configurable MessageAuthorizationPolicy to allow you to authorize each message using some content based authorization policy of your choosing. To enable this policy configure on the broker directly using the * messageAuthorizationPolicy* property or add it to the XML as follows</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;broker&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;broker&gt;
   ..
-  <span class="code-tag">&lt;messageAuthorizationPolicy&gt;</span>
-    <span class="code-tag">&lt;bean class=<span class="code-quote">"com.acme.MyMessageAuthorizationPolicy"</span> xmlns=""/&gt;</span>
-  <span class="code-tag">&lt;/messageAuthorizationPolicy&gt;</span>
+  &lt;messageAuthorizationPolicy&gt;
+    &lt;bean class="com.acme.MyMessageAuthorizationPolicy" xmlns=""/&gt;
+  &lt;/messageAuthorizationPolicy&gt;
   ..
-<span class="code-tag">&lt;/broker&gt;</span>
-</pre>
+&lt;/broker&gt;
+]]></script>
 </div></div>
 
 <h2><a shape="rect" name="Security-ImplementingyourowncustomSecurityPlugin"></a>Implementing your own custom Security Plugin</h2>
@@ -579,8 +590,8 @@ activemq.password=manager
 
 <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/seda.html
==============================================================================
--- websites/production/activemq/content/seda.html (original)
+++ websites/production/activemq/content/seda.html Fri Jul 12 12:46:14 2013
@@ -32,6 +32,7 @@
     </style>
     <![endif]-->
 
+    
     <title>
     Apache ActiveMQ &#8482; -- SEDA
     </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>
@@ -89,8 +90,8 @@ Staged Event Driven Architecture which i
 
 <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/selectors.html
==============================================================================
--- websites/production/activemq/content/selectors.html (original)
+++ websites/production/activemq/content/selectors.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; -- Selectors
     </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>
@@ -79,9 +89,9 @@
 <p>Here is an example</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[
 JMSType = 'car' AND color = 'blue' AND weight &gt; 2500
-</pre>
+]]></script>
 </div></div>
 
 <p>For more documentation on the detail of selectors see the reference on <a shape="rect" class="external-link" href="http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Message.html" rel="nofollow">javax.jmx.Message</a>. <br clear="none">
@@ -92,18 +102,17 @@ ActiveMQ supports some JMS defined prope
 <p>Apache ActiveMQ also supports XPath based selectors when working with messages containing XML bodies. To use an XPath selector use the following syntax</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-XPATH '<span class="code-comment">//title[@lang=''eng'']'</span>
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+XPATH '//title[@lang=''eng'']'
+]]></script>
 </div></div>
 
-<div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Xalan dependency</b><br clear="none">XPath support requires <a shape="rect" class="external-link" href="http://xalan.apache.org/index.html">Xalan</a> which is not part of the distribution. The Xalan jars needs to be manually added to lib directory or pulled into your app via maven 
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">&lt;dependency&gt;
+<div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Xalan dependency</b><br clear="none">XPath support requires <a shape="rect" class="external-link" href="http://xalan.apache.org/index.html">Xalan</a> which is not part of the distribution. The Xalan jars needs to be manually added to lib directory or pulled into your app via maven <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
     &lt;groupId&gt;xalan&lt;/groupId&gt;
     &lt;artifactId&gt;xalan&lt;/artifactId&gt;
     &lt;version&gt;2.6.0&lt;/version&gt;
-&lt;/dependency&gt;</pre>
+&lt;/dependency&gt;]]></script>
 </div></div></td></tr></table></div>
 
 <h3><a shape="rect" name="Selectors-StringPropertyConversions%2FSelectingAgainstSTOMPmessages"></a>String Property Conversions / Selecting Against STOMP messages</h3>
@@ -123,8 +132,8 @@ XPATH '<span class="code-comment">//titl
 
 <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/setting-up-activemq-with-tomcat-559.html
==============================================================================
--- websites/production/activemq/content/setting-up-activemq-with-tomcat-559.html (original)
+++ websites/production/activemq/content/setting-up-activemq-with-tomcat-559.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; -- Setting up ActiveMQ with Tomcat 5.5.9
     </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>
@@ -74,53 +85,53 @@
           <div class="wiki-content maincontent">
 <p>Create the file &lt;webapp-root&gt;/META-INF/context.xml.  Here is an example:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;Context antiJARLocking=<span class="code-quote">"true"</span>&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;Context antiJARLocking="true"&gt;
     &lt;Resource
-        name=<span class="code-quote">"jms/ConnectionFactory"</span>
-        auth=<span class="code-quote">"Container"</span>
-        type=<span class="code-quote">"org.apache.activemq.ActiveMQConnectionFactory"</span>
-        description=<span class="code-quote">"JMS Connection Factory"</span>
-        factory=<span class="code-quote">"org.apache.activemq.jndi.JNDIReferenceFactory"</span>
-        brokerURL=<span class="code-quote">"tcp://localhost:61616"</span>
-        brokerName=<span class="code-quote">"LocalActiveMQBroker"</span>
-        useEmbeddedBroker=<span class="code-quote">"false"</span>/&gt;
-
-    &lt;Resource name=<span class="code-quote">"jms/topic/MyTopic"</span>
-        auth=<span class="code-quote">"Container"</span>
-        type=<span class="code-quote">"org.apache.activemq.command.ActiveMQTopic"</span>
-        factory=<span class="code-quote">"org.apache.activemq.jndi.JNDIReferenceFactory"</span>
-        physicalName=<span class="code-quote">"MY.TEST.FOO"</span>/&gt;
-    &lt;Resource name=<span class="code-quote">"jms/queue/MyQueue"</span>
-        auth=<span class="code-quote">"Container"</span>
-        type=<span class="code-quote">"org.apache.activemq.command.ActiveMQQueue"</span>
-        factory=<span class="code-quote">"org.apache.activemq.jndi.JNDIReferenceFactory"</span>
-        physicalName=<span class="code-quote">"MY.TEST.FOO.QUEUE"</span>/&gt;
-<span class="code-tag">&lt;/Context&gt;</span>
-</pre>
+        name="jms/ConnectionFactory"
+        auth="Container"
+        type="org.apache.activemq.ActiveMQConnectionFactory"
+        description="JMS Connection Factory"
+        factory="org.apache.activemq.jndi.JNDIReferenceFactory"
+        brokerURL="tcp://localhost:61616"
+        brokerName="LocalActiveMQBroker"
+        useEmbeddedBroker="false"/&gt;
+
+    &lt;Resource name="jms/topic/MyTopic"
+        auth="Container"
+        type="org.apache.activemq.command.ActiveMQTopic"
+        factory="org.apache.activemq.jndi.JNDIReferenceFactory"
+        physicalName="MY.TEST.FOO"/&gt;
+    &lt;Resource name="jms/queue/MyQueue"
+        auth="Container"
+        type="org.apache.activemq.command.ActiveMQQueue"
+        factory="org.apache.activemq.jndi.JNDIReferenceFactory"
+        physicalName="MY.TEST.FOO.QUEUE"/&gt;
+&lt;/Context&gt;
+]]></script>
 </div></div>
 <p>This will setup the JNDI for the ConectionFactory and Topic to work within Tomcat.</p>
 
 <p>Here is some example code that will publish a test message to the MY.TEST.FOO Topic:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<span class="code-keyword">try</span> {
-    InitialContext initCtx = <span class="code-keyword">new</span> InitialContext();
-    Context envContext = (Context) initCtx.lookup(<span class="code-quote">"java:comp/env"</span>);
-    ConnectionFactory connectionFactory = (ConnectionFactory) envContext.lookup(<span class="code-quote">"jms/ConnectionFactory"</span>);
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+try {
+    InitialContext initCtx = new InitialContext();
+    Context envContext = (Context) initCtx.lookup("java:comp/env");
+    ConnectionFactory connectionFactory = (ConnectionFactory) envContext.lookup("jms/ConnectionFactory");
     Connection connection = connectionFactory.createConnection();
-    Session session = connection.createSession(<span class="code-keyword">false</span>, Session.AUTO_ACKNOWLEDGE);
-    MessageProducer producer = session.createProducer((Destination) envContext.lookup(<span class="code-quote">"jms/topic/MyTopic"</span>));
+    Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+    MessageProducer producer = session.createProducer((Destination) envContext.lookup("jms/topic/MyTopic"));
 
     Message testMessage = session.createMessage();
-    testMessage.setStringProperty(<span class="code-quote">"testKey"</span>, <span class="code-quote">"testValue"</span>);
+    testMessage.setStringProperty("testKey", "testValue");
     producer.send(testMessage);
-} <span class="code-keyword">catch</span> (NamingException e) {
-    <span class="code-comment">// TODO handle exception
-</span>} <span class="code-keyword">catch</span> (JMSException e) {
-    <span class="code-comment">// TODO handle exception
-</span>}
-</pre>
+} catch (NamingException e) {
+    // TODO handle exception
+} catch (JMSException e) {
+    // TODO handle exception
+}
+]]></script>
 </div></div>
           </div>
         </td>
@@ -135,8 +146,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">



Mime
View raw message