activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r957916 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java
Date Fri, 25 Jun 2010 12:23:07 GMT
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);
         



Mime
View raw message