You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2010/06/25 14:23:07 UTC

svn commit: r957916 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java

Author: gtully
Date: Fri Jun 25 12:23:07 2010
New Revision: 957916

URL: http://svn.apache.org/viewvc?rev=957916&view=rev
Log:
work around: javax.net.ssl.SSLHandshakeException: renegotiation is not allowed - http://java.sun.com/javase/javaseforbusiness/docs/TLSReadme.html for SslBrokerServiceTest with latest jdk security fixes

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java?rev=957916&r1=957915&r2=957916&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java Fri Jun 25 12:23:07 2010
@@ -57,6 +57,11 @@ public class SslBrokerServiceTest extend
     
     @Override
     protected BrokerService createBroker() throws Exception {
+        
+        // http://java.sun.com/javase/javaseforbusiness/docs/TLSReadme.html
+        // work around: javax.net.ssl.SSLHandshakeException: renegotiation is not allowed
+        System.setProperty("sun.security.ssl.allowUnsafeRenegotiation", "true");
+        
         SslBrokerService service = new SslBrokerService();
         service.setPersistent(false);