Author: david.lloyd(a)jboss.com
Date: 2010-02-27 19:58:32 -0500 (Sat, 27 Feb 2010)
New Revision: 5770
Modified:
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/RemoteTestCase.java
remoting3/trunk/jboss-remoting/src/test/resources/remoting.properties
Log:
Switch to SSL
Modified:
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/RemoteTestCase.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/RemoteTestCase.java 2010-02-28
00:57:54 UTC (rev 5769)
+++
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/RemoteTestCase.java 2010-02-28
00:58:32 UTC (rev 5770)
@@ -47,8 +47,8 @@
final ChannelListener<ConnectedStreamChannel<InetSocketAddress>>
listener = provider.getServerListener(OptionMap.EMPTY);
final Xnio xnio = Xnio.getInstance();
try {
-// final AcceptingServer<InetSocketAddress, ?, ?> server =
xnio.createSslTcpServer(listener, OptionMap.EMPTY);
- final AcceptingServer<InetSocketAddress, ?, ?> server =
xnio.createTcpServer(listener, OptionMap.EMPTY);
+ final AcceptingServer<InetSocketAddress, ?, ?> server =
xnio.createSslTcpServer(listener, OptionMap.EMPTY);
+// final AcceptingServer<InetSocketAddress, ?, ?> server =
xnio.createTcpServer(listener, OptionMap.EMPTY);
final IoFuture<? extends BoundChannel<InetSocketAddress>> future
= server.bind(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0));
final InetSocketAddress localAddress = future.get().getLocalAddress();
final Connection connection = endpoint.connect(new URI("remote",
null, localAddress.getAddress().getHostAddress(), localAddress.getPort(), null, null,
null), OptionMap.EMPTY).get();
Modified: remoting3/trunk/jboss-remoting/src/test/resources/remoting.properties
===================================================================
--- remoting3/trunk/jboss-remoting/src/test/resources/remoting.properties 2010-02-28
00:57:54 UTC (rev 5769)
+++ remoting3/trunk/jboss-remoting/src/test/resources/remoting.properties 2010-02-28
00:58:32 UTC (rev 5770)
@@ -20,4 +20,4 @@
# 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
#
-remote.ssl.enable=false
+#remote.ssl.enable=false