activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r869232 [18/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/jms-and-jdbc-operations-in-one-transaction.html
==============================================================================
--- websites/production/activemq/content/jms-and-jdbc-operations-in-one-transaction.html (original)
+++ websites/production/activemq/content/jms-and-jdbc-operations-in-one-transaction.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; -- JMS and JDBC operations in one transaction
     </title>
@@ -50,8 +61,8 @@
       <div>
 
 <!-- Banner -->
-
-	<div id="asf_logo">
+<p>
+	</p><div id="asf_logo">
 	<div id="activemq_logo">
             <a shape="rect" style="float:left; width:280px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:10px; margin-left:100px;" href="http://activemq.apache.org" title="The most popular and powerful open source Message Broker">ActiveMQ</a> &#8482;
             <a shape="rect" style="float:right; width:210px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:15px; margin-right:10px;" href="http://www.apache.org" title="The Apache Software Foundation">ASF</a>
@@ -76,155 +87,155 @@
 
 <p>Spring beans:</p>
 <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;!-- ActiveMQ Broker --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"broker"</span> class=<span class="code-quote">"org.apache.activemq.broker.BrokerService"</span> init-method=<span class="code-quote">"start"</span> destroy-method=<span class="code-quote">"stop"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"persistent"</span> value=<span class="code-quote">"false"</span>/&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"transportConnectorURIs"</span>&gt;</span>
-            <span class="code-tag">&lt;list&gt;</span>
-                <span class="code-tag">&lt;value&gt;</span>tcp://localhost:5000<span class="code-tag">&lt;/value&gt;</span>
-            <span class="code-tag">&lt;/list&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-
-    <span class="code-tag"><span class="code-comment">&lt;!-- Geronimo Transaction Manager --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"transactionContextManager"</span> class=<span class="code-quote">"org.jencks.factory.TransactionContextManagerFactoryBean"</span>/&gt;</span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"geronimo"</span> class=<span class="code-quote">"org.jencks.factory.GeronimoTransactionManagerFactoryBean"</span>/&gt;</span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"geronimoTransactionManager"</span> class=<span class="code-quote">"org.springframework.transaction.jta.JtaTransactionManager"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"userTransaction"</span> ref=<span class="code-quote">"geronimo"</span> /&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-
-    <span class="code-tag"><span class="code-comment">&lt;!-- Jencks Connection Manager --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"connectionManager"</span> class=<span class="code-quote">"org.jencks.factory.ConnectionManagerFactoryBean"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"transactionSupport"</span>&gt;</span>
-            <span class="code-tag">&lt;bean class=<span class="code-quote">"org.jencks.factory.XATransactionFactoryBean"</span>&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"useTransactionCaching"</span> value=<span class="code-quote">"true"</span>/&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"useThreadCaching"</span> value=<span class="code-quote">"false"</span>/&gt;</span>
-            <span class="code-tag">&lt;/bean&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"poolingSupport"</span>&gt;</span>
-            <span class="code-tag">&lt;bean class=<span class="code-quote">"org.jencks.factory.SinglePoolFactoryBean"</span>&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"maxSize"</span> value=<span class="code-quote">"2"</span>/&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"minSize"</span> value=<span class="code-quote">"1"</span>/&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"blockingTimeoutMilliseconds"</span> value=<span class="code-quote">"60"</span>/&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"idleTimeoutMinutes"</span> value=<span class="code-quote">"60"</span>/&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"matchOne"</span> value=<span class="code-quote">"true"</span>/&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"matchAll"</span> value=<span class="code-quote">"true"</span>/&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"selectOneAssumeMatch"</span> value=<span class="code-quote">"true"</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>
-
-    <span class="code-tag"><span class="code-comment">&lt;!-- ActiveMQ Connection --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"jmsResourceAdapter"</span> class=<span class="code-quote">"org.apache.activemq.ra.ActiveMQResourceAdapter"</span> depends-on=<span class="code-quote">"broker"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"serverUrl"</span>&gt;</span>
-            <span class="code-tag">&lt;value&gt;</span>tcp://localhost:5000<span class="code-tag">&lt;/value&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"jmsManagedConnectionFactory"</span> class=<span class="code-quote">"org.apache.activemq.ra.ActiveMQManagedConnectionFactory"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"resourceAdapter"</span> ref=<span class="code-quote">"jmsResourceAdapter"</span>/&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"jmsConnectionFactory"</span> class=<span class="code-quote">"org.springframework.jca.support.LocalConnectionFactoryBean"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"managedConnectionFactory"</span> ref=<span class="code-quote">"jmsManagedConnectionFactory"</span>/&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"connectionManager"</span> ref=<span class="code-quote">"connectionManager"</span>/&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans&gt;
+    &lt;!-- ActiveMQ Broker --&gt;
+    &lt;bean id="broker" class="org.apache.activemq.broker.BrokerService" init-method="start" destroy-method="stop"&gt;
+        &lt;property name="persistent" value="false"/&gt;
+        &lt;property name="transportConnectorURIs"&gt;
+            &lt;list&gt;
+                &lt;value&gt;tcp://localhost:5000&lt;/value&gt;
+            &lt;/list&gt;
+        &lt;/property&gt;
+    &lt;/bean&gt;
+
+    &lt;!-- Geronimo Transaction Manager --&gt;
+    &lt;bean id="transactionContextManager" class="org.jencks.factory.TransactionContextManagerFactoryBean"/&gt;
+    &lt;bean id="geronimo" class="org.jencks.factory.GeronimoTransactionManagerFactoryBean"/&gt;
+    &lt;bean id="geronimoTransactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"&gt;
+        &lt;property name="userTransaction" ref="geronimo" /&gt;
+    &lt;/bean&gt;
+
+    &lt;!-- Jencks Connection Manager --&gt;
+    &lt;bean id="connectionManager" class="org.jencks.factory.ConnectionManagerFactoryBean"&gt;
+        &lt;property name="transactionSupport"&gt;
+            &lt;bean class="org.jencks.factory.XATransactionFactoryBean"&gt;
+                &lt;property name="useTransactionCaching" value="true"/&gt;
+                &lt;property name="useThreadCaching" value="false"/&gt;
+            &lt;/bean&gt;
+        &lt;/property&gt;
+        &lt;property name="poolingSupport"&gt;
+            &lt;bean class="org.jencks.factory.SinglePoolFactoryBean"&gt;
+                &lt;property name="maxSize" value="2"/&gt;
+                &lt;property name="minSize" value="1"/&gt;
+                &lt;property name="blockingTimeoutMilliseconds" value="60"/&gt;
+                &lt;property name="idleTimeoutMinutes" value="60"/&gt;
+                &lt;property name="matchOne" value="true"/&gt;
+                &lt;property name="matchAll" value="true"/&gt;
+                &lt;property name="selectOneAssumeMatch" value="true"/&gt;
+            &lt;/bean&gt;
+        &lt;/property&gt;
+    &lt;/bean&gt;
+
+    &lt;!-- ActiveMQ Connection --&gt;
+    &lt;bean id="jmsResourceAdapter" class="org.apache.activemq.ra.ActiveMQResourceAdapter" depends-on="broker"&gt;
+        &lt;property name="serverUrl"&gt;
+            &lt;value&gt;tcp://localhost:5000&lt;/value&gt;
+        &lt;/property&gt;
+    &lt;/bean&gt;
+    &lt;bean id="jmsManagedConnectionFactory" class="org.apache.activemq.ra.ActiveMQManagedConnectionFactory"&gt;
+        &lt;property name="resourceAdapter" ref="jmsResourceAdapter"/&gt;
+    &lt;/bean&gt;
+    &lt;bean id="jmsConnectionFactory" class="org.springframework.jca.support.LocalConnectionFactoryBean"&gt;
+        &lt;property name="managedConnectionFactory" ref="jmsManagedConnectionFactory"/&gt;
+        &lt;property name="connectionManager" ref="connectionManager"/&gt;
+    &lt;/bean&gt;
 
-    <span class="code-tag"><span class="code-comment">&lt;!-- Tranql JDBC Connection --&gt;</span></span>
+    &lt;!-- Tranql JDBC Connection --&gt;
     &lt;!--
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"tranqlManagedConnectionFactory"</span> class=<span class="code-quote">"org.jencks.tranql.XAPoolDataSourceMCF"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"driverName"</span> value=<span class="code-quote">"org.postgresql.Driver"</span>/&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"url"</span> value=<span class="code-quote">"jdbc:postgresql://ats-manager/activemq"</span>/&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"user"</span> value=<span class="code-quote">"activemq"</span>/&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"tranqlDataSource"</span> class=<span class="code-quote">"org.springframework.jca.support.LocalConnectionFactoryBean"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"managedConnectionFactory"</span> ref=<span class="code-quote">"tranqlManagedConnectionFactory"</span>/&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"connectionManager"</span> ref=<span class="code-quote">"connectionManager"</span>/&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
+    &lt;bean id="tranqlManagedConnectionFactory" class="org.jencks.tranql.XAPoolDataSourceMCF"&gt;
+        &lt;property name="driverName" value="org.postgresql.Driver"/&gt;
+        &lt;property name="url" value="jdbc:postgresql://ats-manager/activemq"/&gt;
+        &lt;property name="user" value="activemq"/&gt;
+    &lt;/bean&gt;
+    &lt;bean id="tranqlDataSource" class="org.springframework.jca.support.LocalConnectionFactoryBean"&gt;
+        &lt;property name="managedConnectionFactory" ref="tranqlManagedConnectionFactory"/&gt;
+        &lt;property name="connectionManager" ref="connectionManager"/&gt;
+    &lt;/bean&gt;
     --&gt;
 
-    <span class="code-tag"><span class="code-comment">&lt;!-- Enhydra JDBC Connection --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"enhydraDataSource"</span> class=<span class="code-quote">"org.enhydra.jdbc.pool.StandardXAPoolDataSource"</span> destroy-method=<span class="code-quote">"shutdown"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"dataSource"</span>&gt;</span>
-            <span class="code-tag">&lt;bean class=<span class="code-quote">"org.enhydra.jdbc.standard.StandardXADataSource"</span> destroy-method=<span class="code-quote">"shutdown"</span>&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"transactionManager"</span> ref=<span class="code-quote">"geronimo"</span> /&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"driverName"</span> value=<span class="code-quote">"org.postgresql.Driver"</span> /&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"url"</span> value=<span class="code-quote">"jdbc:postgresql://ats-manager/activemq"</span> /&gt;</span>
-            <span class="code-tag">&lt;/bean&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"user"</span> value=<span class="code-quote">"activemq"</span>/&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"jencksJCAContainer"</span> class=<span class="code-quote">"org.jencks.JCAContainer"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"bootstrapContext"</span>&gt;</span>
-            <span class="code-tag">&lt;bean class=<span class="code-quote">"org.jencks.factory.BootstrapContextFactoryBean"</span>&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"threadPoolSize"</span> value=<span class="code-quote">"25"</span>/&gt;</span>
-            <span class="code-tag">&lt;/bean&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"resourceAdapter"</span> ref=<span class="code-quote">"jmsResourceAdapter"</span>/&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"inboundConnector"</span> class=<span class="code-quote">"org.jencks.JCAConnector"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"jcaContainer"</span> ref=<span class="code-quote">"jencksJCAContainer"</span> /&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"activationSpec"</span>&gt;</span>
-            <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.activemq.ra.ActiveMQActivationSpec"</span>&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"destination"</span> value=<span class="code-quote">"messages.input"</span>/&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"destinationType"</span> value=<span class="code-quote">"javax.jms.Queue"</span>/&gt;</span>
-            <span class="code-tag">&lt;/bean&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"transactionManager"</span> ref=<span class="code-quote">"geronimo"</span>/&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"ref"</span> value=<span class="code-quote">"echoBean"</span>/&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"echoBean"</span> class=<span class="code-quote">"transactions.EchoBean"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"jdbcTemplate"</span>&gt;</span>
-            <span class="code-tag">&lt;bean class=<span class="code-quote">"org.springframework.jdbc.core.JdbcTemplate"</span>&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"dataSource"</span> ref=<span class="code-quote">"enhydraDataSource"</span>/&gt;</span>
-            <span class="code-tag">&lt;/bean&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"jmsTemplate"</span>&gt;</span>
-            <span class="code-tag">&lt;bean class=<span class="code-quote">"org.springframework.jms.core.JmsTemplate"</span>&gt;</span>
-                <span class="code-tag">&lt;property name=<span class="code-quote">"connectionFactory"</span> ref=<span class="code-quote">"jmsConnectionFactory"</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>
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+    &lt;!-- Enhydra JDBC Connection --&gt;
+    &lt;bean id="enhydraDataSource" class="org.enhydra.jdbc.pool.StandardXAPoolDataSource" destroy-method="shutdown"&gt;
+        &lt;property name="dataSource"&gt;
+            &lt;bean class="org.enhydra.jdbc.standard.StandardXADataSource" destroy-method="shutdown"&gt;
+                &lt;property name="transactionManager" ref="geronimo" /&gt;
+                &lt;property name="driverName" value="org.postgresql.Driver" /&gt;
+                &lt;property name="url" value="jdbc:postgresql://ats-manager/activemq" /&gt;
+            &lt;/bean&gt;
+        &lt;/property&gt;
+        &lt;property name="user" value="activemq"/&gt;
+    &lt;/bean&gt;
+
+    &lt;bean id="jencksJCAContainer" class="org.jencks.JCAContainer"&gt;
+        &lt;property name="bootstrapContext"&gt;
+            &lt;bean class="org.jencks.factory.BootstrapContextFactoryBean"&gt;
+                &lt;property name="threadPoolSize" value="25"/&gt;
+            &lt;/bean&gt;
+        &lt;/property&gt;
+        &lt;property name="resourceAdapter" ref="jmsResourceAdapter"/&gt;
+    &lt;/bean&gt;
+
+    &lt;bean id="inboundConnector" class="org.jencks.JCAConnector"&gt;
+        &lt;property name="jcaContainer" ref="jencksJCAContainer" /&gt;
+        &lt;property name="activationSpec"&gt;
+            &lt;bean class="org.apache.activemq.ra.ActiveMQActivationSpec"&gt;
+                &lt;property name="destination" value="messages.input"/&gt;
+                &lt;property name="destinationType" value="javax.jms.Queue"/&gt;
+            &lt;/bean&gt;
+        &lt;/property&gt;
+        &lt;property name="transactionManager" ref="geronimo"/&gt;
+        &lt;property name="ref" value="echoBean"/&gt;
+    &lt;/bean&gt;
+
+    &lt;bean id="echoBean" class="transactions.EchoBean"&gt;
+        &lt;property name="jdbcTemplate"&gt;
+            &lt;bean class="org.springframework.jdbc.core.JdbcTemplate"&gt;
+                &lt;property name="dataSource" ref="enhydraDataSource"/&gt;
+            &lt;/bean&gt;
+        &lt;/property&gt;
+        &lt;property name="jmsTemplate"&gt;
+            &lt;bean class="org.springframework.jms.core.JmsTemplate"&gt;
+                &lt;property name="connectionFactory" ref="jmsConnectionFactory"/&gt;
+            &lt;/bean&gt;
+        &lt;/property&gt;
+    &lt;/bean&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
 <p>Java code:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<span class="code-keyword">public</span> class EchoBean <span class="code-keyword">implements</span> MessageListener {
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+public class EchoBean implements MessageListener {
 
-    <span class="code-keyword">private</span> Log log = LogFactory.getLog(getClass());
+    private Log log = LogFactory.getLog(getClass());
 
-    <span class="code-keyword">private</span> JdbcTemplate jdbcTemplate;
-    <span class="code-keyword">private</span> JmsTemplate jmsTemplate;
+    private JdbcTemplate jdbcTemplate;
+    private JmsTemplate jmsTemplate;
 
-    <span class="code-keyword">public</span> void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
-        <span class="code-keyword">this</span>.jdbcTemplate = jdbcTemplate;
+    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
+        this.jdbcTemplate = jdbcTemplate;
     }
 
-    <span class="code-keyword">public</span> void setJmsTemplate(JmsTemplate jmsTemplate) {
-        <span class="code-keyword">this</span>.jmsTemplate = jmsTemplate;
+    public void setJmsTemplate(JmsTemplate jmsTemplate) {
+        this.jmsTemplate = jmsTemplate;
     }
 
-    <span class="code-keyword">public</span> void onMessage(Message message) {
+    public void onMessage(Message message) {
         log.debug(message);
-        <span class="code-keyword">if</span> (message <span class="code-keyword">instanceof</span> TextMessage) {
-            <span class="code-keyword">try</span> {
-                <span class="code-object">String</span> messageText = ((TextMessage)message).getText();
-                log.debug(<span class="code-quote">"execute JMS operation"</span>);
-                jmsTemplate.convertAndSend(<span class="code-quote">"messages.ouptut"</span>, messageText);
-                log.debug(<span class="code-quote">"execute JDBC operation"</span>);
-                jdbcTemplate.execute(<span class="code-quote">"insert into t1 values('"</span>+messageText+<span class="code-quote">"')"</span>);
-            } <span class="code-keyword">catch</span> (JMSException e) {
+        if (message instanceof TextMessage) {
+            try {
+                String messageText = ((TextMessage)message).getText();
+                log.debug("execute JMS operation");
+                jmsTemplate.convertAndSend("messages.ouptut", messageText);
+                log.debug("execute JDBC operation");
+                jdbcTemplate.execute("insert into t1 values('"+messageText+"')");
+            } catch (JMSException e) {
                 e.printStackTrace();
             }
         }
     }
 }
-</pre>
+]]></script>
 </div></div>
           </div>
         </td>
@@ -239,8 +250,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/jms-bridge-with-local-broker.html
==============================================================================
--- websites/production/activemq/content/jms-bridge-with-local-broker.html (original)
+++ websites/production/activemq/content/jms-bridge-with-local-broker.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; -- JMS Bridge With Local Broker
     </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,37 +86,37 @@
 <h3><a shape="rect" name="JMSBridgeWithLocalBroker-ExampleofaconfigurationthatshowshowtouseaBridgeConnectortomakeaconnectiontothelocalActiveMQbroker."></a>Example of a configuration that shows how to use a BridgeConnector to make a connection to the local ActiveMQ broker.</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;jmsBridgeConnectors&gt;</span>
-            <span class="code-tag">&lt;jmsQueueConnector outboundQueueConnectionFactory=<span class="code-quote">"#localBroker"</span>&gt;</span>
-                <span class="code-tag">&lt;inboundQueueBridges&gt;</span>
+<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;jmsBridgeConnectors&gt;
+            &lt;jmsQueueConnector outboundQueueConnectionFactory="#localBroker"&gt;
+                &lt;inboundQueueBridges&gt;
                     &lt;inboundQueueBridge
-                            inboundQueueName = <span class="code-quote">"queue.ping"</span>
-                            localQueueName   = <span class="code-quote">"queue.incomingMsgs.ping"</span>
-                            selector         = <span class="code-quote">"JMSType LIKE 'foo%'"</span>/&gt;
-                <span class="code-tag">&lt;/inboundQueueBridges&gt;</span>
-                <span class="code-tag">&lt;outboundQueueBridges&gt;</span>
+                            inboundQueueName = "queue.ping"
+                            localQueueName   = "queue.incomingMsgs.ping"
+                            selector         = "JMSType LIKE 'foo%'"/&gt;
+                &lt;/inboundQueueBridges&gt;
+                &lt;outboundQueueBridges&gt;
                     &lt;outboundQueueBridge
-                            localQueueName    = <span class="code-quote">"queue.incomingMsgs.ping"</span>
-                            outboundQueueName = <span class="code-quote">"queue.pong"</span>
-                            selector          = <span class="code-quote">"JMSType LIKE 'foo%'"</span>/&gt;
-                <span class="code-tag">&lt;/outboundQueueBridges&gt;</span>
-            <span class="code-tag">&lt;/jmsQueueConnector&gt;</span>
-        <span class="code-tag">&lt;/jmsBridgeConnectors&gt;</span>
-    <span class="code-tag">&lt;/broker&gt;</span>
-
-    <span class="code-tag"><span class="code-comment">&lt;!-- JMS ConnectionFactory to use for local bridging --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"localBroker"</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:61616"</span> /&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+                            localQueueName    = "queue.incomingMsgs.ping"
+                            outboundQueueName = "queue.pong"
+                            selector          = "JMSType LIKE 'foo%'"/&gt;
+                &lt;/outboundQueueBridges&gt;
+            &lt;/jmsQueueConnector&gt;
+        &lt;/jmsBridgeConnectors&gt;
+    &lt;/broker&gt;
+
+    &lt;!-- JMS ConnectionFactory to use for local bridging --&gt;
+    &lt;bean id="localBroker" class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
+        &lt;property name="brokerURL" value="vm://localhost:61616" /&gt;
+    &lt;/bean&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
           </div>
         </td>
@@ -120,8 +131,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/jms-bridge-with-oracle-aq.html
==============================================================================
--- websites/production/activemq/content/jms-bridge-with-oracle-aq.html (original)
+++ websites/production/activemq/content/jms-bridge-with-oracle-aq.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; -- JMS Bridge With Oracle AQ
     </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,95 +86,95 @@
 <h3><a shape="rect" name="JMSBridgeWithOracleAQ-ExampleofaconfigurationthatshowshowtoconnecttoOracleAQqueuesandtopics."></a>Example of a configuration that shows how to connect to Oracle AQ queues and topics.</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;!-- Dependencies: ojdbc.jar and aqjms.jar must be in the activemq lib directory --&gt;</span></span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- this camel route will read incoming messages from Oracle --&gt;</span></span>
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"oracleQueue:queue:ORACLE_QUEUE"</span>&gt;</span>
-            <span class="code-tag">&lt;to   uri=<span class="code-quote">"activemq:queue:queue.inboundOracleAQqueue"</span> &gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag"><span class="code-comment">&lt;!-- NOTE: I have had success with a topic using ActiveMQ 5.3, but not 5.1 --&gt;</span></span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"oracleTopic:topic:ORACLE_TOPIC"</span>&gt;</span>
-            <span class="code-tag">&lt;to   uri=<span class="code-quote">"activemq:queue:queue.inboundOracleAQtopic"</span> &gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- these camel routes will log the messages to the console .... replace them with something more useful!!  --&gt;</span></span>
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:queue:queue.inboundOracleAQqueue"</span> &gt;</span>
-            <span class="code-tag">&lt;to uri=<span class="code-quote">"log:oracleAQ.inbound.got_a_queue_message?level=ERROR"</span>&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-        <span class="code-tag">&lt;route&gt;</span>
-            <span class="code-tag">&lt;from uri=<span class="code-quote">"activemq:queue:queue.inboundOracleAQtopic"</span> &gt;</span>
-            <span class="code-tag">&lt;to uri=<span class="code-quote">"log:oracleAQ.inbound.got_a_topic_message?level=ERROR"</span>&gt;</span>
-        <span class="code-tag">&lt;/route&gt;</span>
-    <span class="code-tag">&lt;/camelContext&gt;</span>
-
-    <span class="code-tag"><span class="code-comment">&lt;!-- without the following bean instantiation, we will get an oracle.jms.AQjmsException with each and every received message --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"requiredBeanForOracleAq"</span> class=<span class="code-quote">"org.apache.activemq.ActiveMQConnectionFactory"</span> /&gt;</span>
-
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"connectionFactoryOracleAQQueue"</span> class=<span class="code-quote">"oracle.jms.AQjmsFactory"</span> factory-method=<span class="code-quote">"getQueueConnectionFactory"</span>&gt;</span>
-        <span class="code-tag">&lt;constructor-arg index=<span class="code-quote">"0"</span>&gt;</span>
-            <span class="code-tag">&lt;value&gt;</span>jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST ....... (SERVICE_NAME = myDbService)))<span class="code-tag">&lt;/value&gt;</span>
-        <span class="code-tag">&lt;/constructor-arg&gt;</span>
-        <span class="code-tag">&lt;constructor-arg index=<span class="code-quote">"1"</span> type=<span class="code-quote">"java.util.Properties"</span>&gt;</span>
-            <span class="code-tag">&lt;value&gt;</span><span class="code-tag">&lt;/value&gt;</span>
-        <span class="code-tag">&lt;/constructor-arg&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-
-    &lt;bean id=<span class="code-quote">"connectionFactoryOracleAQTopic"</span> class=<span class="code-quote">"oracle.jms.AQjmsFactory"</span>
-                factory-method=<span class="code-quote">"getQueueConnectionFactory"</span>&gt;
-        <span class="code-tag">&lt;constructor-arg index=<span class="code-quote">"0"</span>&gt;</span>
-            <span class="code-tag">&lt;value&gt;</span>jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST ....... (SERVICE_NAME = myDbService)))<span class="code-tag">&lt;/value&gt;</span>
-        <span class="code-tag">&lt;/constructor-arg&gt;</span>
-        <span class="code-tag">&lt;constructor-arg index=<span class="code-quote">"1"</span> type=<span class="code-quote">"java.util.Properties"</span>&gt;</span>
-            <span class="code-tag">&lt;value&gt;</span><span class="code-tag">&lt;/value&gt;</span>
-        <span class="code-tag">&lt;/constructor-arg&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"oracleQueueCredentials"</span> class=<span class="code-quote">"org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"targetConnectionFactory"</span>&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"connectionFactoryOracleAQQueue"</span>&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"username"</span>&gt;</span>
-            <span class="code-tag">&lt;value&gt;</span>foo<span class="code-tag">&lt;/value&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"password"</span>&gt;</span>
-            <span class="code-tag">&lt;value&gt;</span>bar<span class="code-tag">&lt;/value&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"oracleTopicCredentials"</span> class=<span class="code-quote">"org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"targetConnectionFactory"</span>&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"connectionFactoryOracleAQTopic"</span>&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"username"</span>&gt;</span>
-            <span class="code-tag">&lt;value&gt;</span>foo<span class="code-tag">&lt;/value&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"password"</span>&gt;</span>
-            <span class="code-tag">&lt;value&gt;</span>bar<span class="code-tag">&lt;/value&gt;</span>
-        <span class="code-tag">&lt;/property&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-
-   <span class="code-tag">&lt;bean id=<span class="code-quote">"oracleQueue"</span> class=<span class="code-quote">"org.apache.camel.component.jms.JmsComponent"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"connectionFactory"</span> ref=<span class="code-quote">"oracleQueueCredentials"</span>&gt;</span>
-   <span class="code-tag">&lt;/bean&gt;</span>
-
-   <span class="code-tag">&lt;bean id=<span class="code-quote">"oracleTopic"</span> class=<span class="code-quote">"org.apache.camel.component.jms.JmsComponent"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"connectionFactory"</span> ref=<span class="code-quote">"oracleTopicCredentials"</span>&gt;</span>
-   <span class="code-tag">&lt;/bean&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;!-- Dependencies: ojdbc.jar and aqjms.jar must be in the activemq lib directory --&gt;
+
+        &lt;!-- this camel route will read incoming messages from Oracle --&gt;
+        &lt;route&gt;
+            &lt;from uri="oracleQueue:queue:ORACLE_QUEUE"&gt;
+            &lt;to   uri="activemq:queue:queue.inboundOracleAQqueue" &gt;
+        &lt;/route&gt;
+        &lt;route&gt;
+            &lt;!-- NOTE: I have had success with a topic using ActiveMQ 5.3, but not 5.1 --&gt;
+            &lt;from uri="oracleTopic:topic:ORACLE_TOPIC"&gt;
+            &lt;to   uri="activemq:queue:queue.inboundOracleAQtopic" &gt;
+        &lt;/route&gt;
+
+        &lt;!-- these camel routes will log the messages to the console .... replace them with something more useful!!  --&gt;
+        &lt;route&gt;
+            &lt;from uri="activemq:queue:queue.inboundOracleAQqueue" &gt;
+            &lt;to uri="log:oracleAQ.inbound.got_a_queue_message?level=ERROR"&gt;
+        &lt;/route&gt;
+        &lt;route&gt;
+            &lt;from uri="activemq:queue:queue.inboundOracleAQtopic" &gt;
+            &lt;to uri="log:oracleAQ.inbound.got_a_topic_message?level=ERROR"&gt;
+        &lt;/route&gt;
+    &lt;/camelContext&gt;
+
+    &lt;!-- without the following bean instantiation, we will get an oracle.jms.AQjmsException with each and every received message --&gt;
+    &lt;bean id="requiredBeanForOracleAq" class="org.apache.activemq.ActiveMQConnectionFactory" /&gt;
+
+    &lt;bean id="connectionFactoryOracleAQQueue" class="oracle.jms.AQjmsFactory" factory-method="getQueueConnectionFactory"&gt;
+        &lt;constructor-arg index="0"&gt;
+            &lt;value&gt;jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST ....... (SERVICE_NAME = myDbService)))&lt;/value&gt;
+        &lt;/constructor-arg&gt;
+        &lt;constructor-arg index="1" type="java.util.Properties"&gt;
+            &lt;value&gt;&lt;/value&gt;
+        &lt;/constructor-arg&gt;
+    &lt;/bean&gt;
+
+    &lt;bean id="connectionFactoryOracleAQTopic" class="oracle.jms.AQjmsFactory"
+                factory-method="getQueueConnectionFactory"&gt;
+        &lt;constructor-arg index="0"&gt;
+            &lt;value&gt;jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST ....... (SERVICE_NAME = myDbService)))&lt;/value&gt;
+        &lt;/constructor-arg&gt;
+        &lt;constructor-arg index="1" type="java.util.Properties"&gt;
+            &lt;value&gt;&lt;/value&gt;
+        &lt;/constructor-arg&gt;
+    &lt;/bean&gt;
+
+    &lt;bean id="oracleQueueCredentials" class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter"&gt;
+        &lt;property name="targetConnectionFactory"&gt;
+            &lt;ref bean="connectionFactoryOracleAQQueue"&gt;
+        &lt;/property&gt;
+        &lt;property name="username"&gt;
+            &lt;value&gt;foo&lt;/value&gt;
+        &lt;/property&gt;
+        &lt;property name="password"&gt;
+            &lt;value&gt;bar&lt;/value&gt;
+        &lt;/property&gt;
+    &lt;/bean&gt;
+
+    &lt;bean id="oracleTopicCredentials" class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter"&gt;
+        &lt;property name="targetConnectionFactory"&gt;
+            &lt;ref bean="connectionFactoryOracleAQTopic"&gt;
+        &lt;/property&gt;
+        &lt;property name="username"&gt;
+            &lt;value&gt;foo&lt;/value&gt;
+        &lt;/property&gt;
+        &lt;property name="password"&gt;
+            &lt;value&gt;bar&lt;/value&gt;
+        &lt;/property&gt;
+    &lt;/bean&gt;
+
+   &lt;bean id="oracleQueue" class="org.apache.camel.component.jms.JmsComponent"&gt;
+        &lt;property name="connectionFactory" ref="oracleQueueCredentials"&gt;
+   &lt;/bean&gt;
+
+   &lt;bean id="oracleTopic" class="org.apache.camel.component.jms.JmsComponent"&gt;
+        &lt;property name="connectionFactory" ref="oracleTopicCredentials"&gt;
+   &lt;/bean&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
 
 
@@ -172,7 +183,7 @@
 <h4><a shape="rect" name="JMSBridgeWithOracleAQ-OracleSQLcode"></a>Oracle SQL code</h4>
 <p>You may need to setup OracleAQ, and here is a sample code</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[
 BEGIN
  DBMS_AQADM.CREATE_QUEUE_TABLE( queue_table =&gt; 'queue_message_table', queue_payload_type =&gt; 'SYS.AQ$_JMS_TEXT_MESSAGE');
 END;        
@@ -184,7 +195,7 @@ END;
 BEGIN
   DBMS_AQADM.START_QUEUE(queue_name =&gt; 'ORACLE_QUEUE');
 END;  
-</pre>
+]]></script>
 </div></div>
 
 <p>You can also find more information about OracleAQ and using JMS at: <a shape="rect" class="external-link" href="http://docs.oracle.com/cd/B13789_01/server.101/b10785/jm_exmpl.htm" rel="nofollow">http://docs.oracle.com/cd/B13789_01/server.101/b10785/jm_exmpl.htm</a></p>
@@ -201,8 +212,8 @@ END;  
 
 <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/jms-bridge-with-remote-broker.html
==============================================================================
--- websites/production/activemq/content/jms-bridge-with-remote-broker.html (original)
+++ websites/production/activemq/content/jms-bridge-with-remote-broker.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; -- JMS Bridge With Remote Broker
     </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,37 +86,37 @@
 <h3><a shape="rect" name="JMSBridgeWithRemoteBroker-ExampleofaconfigurationthatshowshowtouseaBridgeConnectortomakeaconnectiontoaremoteActiveMQbroker."></a>Example of a configuration that shows how to use a BridgeConnector to make a connection to a remote ActiveMQ broker.</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;jmsBridgeConnectors&gt;</span>
-            <span class="code-tag">&lt;jmsQueueConnector outboundQueueConnectionFactory=<span class="code-quote">"#remoteBroker"</span>&gt;</span>
-                <span class="code-tag">&lt;inboundQueueBridges&gt;</span>
+<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;jmsBridgeConnectors&gt;
+            &lt;jmsQueueConnector outboundQueueConnectionFactory="#remoteBroker"&gt;
+                &lt;inboundQueueBridges&gt;
                     &lt;inboundQueueBridge
-                            inboundQueueName = <span class="code-quote">"queue.ping"</span>
-                            localQueueName   = <span class="code-quote">"queue.incomingMsgs.ping"</span>
-                            selector         = <span class="code-quote">"JMSType LIKE 'foo%'"</span>/&gt;
-                <span class="code-tag">&lt;/inboundQueueBridges&gt;</span>
-                <span class="code-tag">&lt;outboundQueueBridges&gt;</span>
+                            inboundQueueName = "queue.ping"
+                            localQueueName   = "queue.incomingMsgs.ping"
+                            selector         = "JMSType LIKE 'foo%'"/&gt;
+                &lt;/inboundQueueBridges&gt;
+                &lt;outboundQueueBridges&gt;
                     &lt;outboundQueueBridge
-                            outboundQueueName = <span class="code-quote">"queue.pong"</span>
-                            localQueueName    = <span class="code-quote">"queue.incomingMsgs.ping"</span>
-                            selector          = <span class="code-quote">"JMSType LIKE 'foo%'"</span>/&gt;
-                <span class="code-tag">&lt;/outboundQueueBridges&gt;</span>
-            <span class="code-tag">&lt;/jmsQueueConnector&gt;</span>
-        <span class="code-tag">&lt;/jmsBridgeConnectors&gt;</span>
-    <span class="code-tag">&lt;/broker&gt;</span>
-
-    <span class="code-tag"><span class="code-comment">&lt;!-- JMS ConnectionFactory to use for remote bridging --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"remoteBroker"</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">"failover:(tcp://remote_activemq:61616)"</span> /&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+                            outboundQueueName = "queue.pong"
+                            localQueueName    = "queue.incomingMsgs.ping"
+                            selector          = "JMSType LIKE 'foo%'"/&gt;
+                &lt;/outboundQueueBridges&gt;
+            &lt;/jmsQueueConnector&gt;
+        &lt;/jmsBridgeConnectors&gt;
+    &lt;/broker&gt;
+
+    &lt;!-- JMS ConnectionFactory to use for remote bridging --&gt;
+    &lt;bean id="remoteBroker" class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
+        &lt;property name="brokerURL" value="failover:(tcp://remote_activemq:61616)" /&gt;
+    &lt;/bean&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
           </div>
         </td>
@@ -120,8 +131,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/jms-bridge-with-remote-tibco-broker.html
==============================================================================
--- websites/production/activemq/content/jms-bridge-with-remote-tibco-broker.html (original)
+++ websites/production/activemq/content/jms-bridge-with-remote-tibco-broker.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; -- JMS Bridge With Remote TIBCO Broker
     </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,41 +86,41 @@
 <h3><a shape="rect" name="JMSBridgeWithRemoteTIBCOBroker-ExampleofaconfigurationthatshowshowtouseaBridgeConnectortomakeaconnectiontoaremoteTIBCOEMSbroker."></a>Example of a configuration that shows how to use a BridgeConnector to make a connection to a remote TIBCO EMS broker.</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"><span class="code-comment">&lt;!-- Dependencies: tibjms.jar must be in the activemq lib directory --&gt;</span></span>
-
-        <span class="code-tag"><span class="code-comment">&lt;!-- bridging definitions for traffic to/from remote activemq instance --&gt;</span></span>
-        <span class="code-tag">&lt;jmsBridgeConnectors&gt;</span>
-            <span class="code-tag">&lt;jmsQueueConnector outboundQueueConnectionFactory=<span class="code-quote">"#tibco"</span>&gt;</span>
-                <span class="code-tag">&lt;inboundQueueBridges&gt;</span>
+<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;!-- Dependencies: tibjms.jar must be in the activemq lib directory --&gt;
+
+        &lt;!-- bridging definitions for traffic to/from remote activemq instance --&gt;
+        &lt;jmsBridgeConnectors&gt;
+            &lt;jmsQueueConnector outboundQueueConnectionFactory="#tibco"&gt;
+                &lt;inboundQueueBridges&gt;
                     &lt;inboundQueueBridge
-                            inboundQueueName = <span class="code-quote">"queue.ping"</span>
-                            localQueueName   = <span class="code-quote">"queue.incomingMsgs.ping"</span>
-                            selector         = <span class="code-quote">"JMSType LIKE 'foo%'"</span>/&gt;
-                <span class="code-tag">&lt;/inboundQueueBridges&gt;</span>
-                <span class="code-tag">&lt;outboundQueueBridges&gt;</span>
+                            inboundQueueName = "queue.ping"
+                            localQueueName   = "queue.incomingMsgs.ping"
+                            selector         = "JMSType LIKE 'foo%'"/&gt;
+                &lt;/inboundQueueBridges&gt;
+                &lt;outboundQueueBridges&gt;
                     &lt;outboundQueueBridge
-                            outboundQueueName = <span class="code-quote">"queue.pong"</span>
-                            localQueueName    = <span class="code-quote">"queue.incomingMsgs.ping"</span>
-                            selector          = <span class="code-quote">"JMSType LIKE 'foo%'"</span>/&gt;
-                 <span class="code-tag">&lt;/outboundQueueBridges&gt;</span>
-            <span class="code-tag">&lt;/jmsQueueConnector&gt;</span>
-        <span class="code-tag">&lt;/jmsBridgeConnectors&gt;</span>
-    <span class="code-tag">&lt;/broker&gt;</span>
-
-    <span class="code-tag"><span class="code-comment">&lt;!-- JMS ConnectionFactory to use for local bridging --&gt;</span></span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"tibco"</span> class=<span class="code-quote">"com.tibco.tibjms.TibjmsQueueConnectionFactory"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"serverUrl"</span> value=<span class="code-quote">"tcp://remote_tibco:7222"</span> /&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-<span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+                            outboundQueueName = "queue.pong"
+                            localQueueName    = "queue.incomingMsgs.ping"
+                            selector          = "JMSType LIKE 'foo%'"/&gt;
+                 &lt;/outboundQueueBridges&gt;
+            &lt;/jmsQueueConnector&gt;
+        &lt;/jmsBridgeConnectors&gt;
+    &lt;/broker&gt;
+
+    &lt;!-- JMS ConnectionFactory to use for local bridging --&gt;
+    &lt;bean id="tibco" class="com.tibco.tibjms.TibjmsQueueConnectionFactory"&gt;
+        &lt;property name="serverUrl" value="tcp://remote_tibco:7222" /&gt;
+    &lt;/bean&gt;
+&lt;/beans&gt;
+]]></script>
 </div></div>
           </div>
         </td>
@@ -124,8 +135,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/jms-streams.html
==============================================================================
--- websites/production/activemq/content/jms-streams.html (original)
+++ websites/production/activemq/content/jms-streams.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; -- JMS Streams
     </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>
@@ -88,30 +98,30 @@
 <p>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[
 ActiveMQConnection connection = ...;
-Destination destination = <span class="code-keyword">new</span> ActiveMQQueue(<span class="code-quote">"FOO.BAR"</span>);
+Destination destination = new ActiveMQQueue("FOO.BAR");
 
 OutputStream out = connection.createOutputStream(destination);
 
-<span class="code-comment">// write the file to out
-</span>out.close();
-</pre>
+// write the file to out
+out.close();
+]]></script>
 </div></div>
 
 <p>Or to consume a large message</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[
 ActiveMQConnection connection = ...;
-Destination destination = <span class="code-keyword">new</span> ActiveMQQueue(<span class="code-quote">"FOO.BAR"</span>);
+Destination destination = new ActiveMQQueue("FOO.BAR");
 
 InputStream in = connection.createInputStream(destination)
 
-<span class="code-comment">// read the stream...
-</span>in.close();
-</pre>
+// read the stream...
+in.close();
+]]></script>
 </div></div>
 
 <p>There are overloaded createInputStream/createOutputStream methods which support additional paramateres to be passed.</p>
@@ -139,8 +149,8 @@ The  counterpart classes in AMQ 3.x  are
 
 <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