activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r860533 - in /websites/production/activemq/content: cache/main.pageCache how-do-i-use-ssl.html
Date Wed, 01 May 2013 23:21:34 GMT
Author: buildbot
Date: Wed May  1 23:21:34 2013
New Revision: 860533

Log:
Production update by buildbot for activemq

Modified:
    websites/production/activemq/content/cache/main.pageCache
    websites/production/activemq/content/how-do-i-use-ssl.html

Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/activemq/content/how-do-i-use-ssl.html
==============================================================================
--- websites/production/activemq/content/how-do-i-use-ssl.html (original)
+++ websites/production/activemq/content/how-do-i-use-ssl.html Wed May  1 23:21:34 2013
@@ -113,7 +113,33 @@ export SSL_OPTS = -Djavax.net.ssl.keySto
 <p>Sometimes the use of javax.net.ssl.* system properties is not appropriate as they
effect all SSL users in a JVM. ActiveMQ 5.2.x adds an &lt;sslContext&gt; element to
the &lt;amq:broker&gt; that allows a broker specific set of SSL properties to be configured.
</p>
 
 <p>The sslContext <a shape="rect" class="external-link" href="https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslContextBrokerServiceTest.java">test
case</a>  validates starting an ssl transport listener using the configuration specified
in the broker Xbean. The sslContext element is added to the broker as follows: </p>
- 	<div class="error"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException:
Index: 20, Size: 20</span> </div>
+ 	<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">&lt;beans 
+  xmlns=<span class="code-quote">"http:<span class="code-comment">//www.springframework.org/schema/beans"</span>

+</span>  xmlns:amq=<span class="code-quote">"http:<span class="code-comment">//activemq.apache.org/schema/core"</span>
+</span>  xmlns:xsi=<span class="code-quote">"http:<span class="code-comment">//www.w3.org/2001/XMLSchema-instance"</span>
+</span>  xsi:schemaLocation="http:<span class="code-comment">//www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+</span>  http:<span class="code-comment">//activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"&gt;
+</span>  
+  &lt;!--  lets create an embedded ActiveMQ Broker --&gt;
+  &lt;amq:broker useJmx=<span class="code-quote">"<span class="code-keyword">false</span>"</span>
persistent=<span class="code-quote">"<span class="code-keyword">false</span>"</span>&gt;
+
+    &lt;amq:sslContext&gt;
+      &lt;amq:sslContext 
+      		keyStore=<span class="code-quote">"server.keystore"</span> keyStorePassword=<span
class="code-quote">"password"</span>
+      		trustStore=<span class="code-quote">"client.keystore"</span> trustStorePassword=<span
class="code-quote">"password"</span>/&gt;
+    &lt;/amq:sslContext&gt;
+    
+    &lt;amq:transportConnectors&gt;
+      &lt;amq:transportConnector uri=<span class="code-quote">"ssl:<span class="code-comment">//localhost:61616"</span>
/&gt;
+</span>    &lt;/amq:transportConnectors&gt;
+    
+  &lt;/amq:broker&gt;
+  
+&lt;/beans&gt;
+
+</pre>
+</div></div>
 
 <p>The sslContext is used to configure the <a shape="rect" class="external-link"
href="https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/SslTransportFactory.java">SslTransportFactory</a>
for that broker. Full details of the configuration options available can be seen in the <a
shape="rect" class="external-link" href="http://activemq.apache.org/schema/core/activemq-core-5.2-SNAPSHOT.xsd">schema
definition</a> or in the accessors of <a shape="rect" class="external-link" href="https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/spring/SpringSslContext.java">org.apache.activemq.spring.SpringSslContext</a></p>
 



Mime
View raw message