Commit 02244bc6 authored by afreyssin's avatar afreyssin
Browse files

Allows to test SSL connections.

parent e119d342
......@@ -94,15 +94,23 @@ class TcpBaseTest {
public static void AdminConnect() throws Exception {
String host = System.getProperty("hostname", "localhost");
int port = Integer.getInteger("port", 16010).intValue();
AdminModule.connect(host, port, "root", "root", 60);
boolean ssl = Boolean.getBoolean("WithSSL");
if (ssl)
AdminModule.connect(host, port, "root", "root", 60, "org.objectweb.joram.client.jms.tcp.ReliableSSLTcpClient");
else
AdminModule.connect(host, port, "root", "root", 60);
}
public static ConnectionFactory createConnectionFactory() throws Exception {
String host = System.getProperty("hostname", "localhost");
int port = Integer.getInteger("port", 16010).intValue();
return TcpConnectionFactory.create(host, port);
boolean ssl = Boolean.getBoolean("WithSSL");
if (ssl)
return TcpConnectionFactory.create(host, port, "org.objectweb.joram.client.jms.tcp.ReliableSSLTcpClient");
else
return TcpConnectionFactory.create(host, port);
}
}
<?xml version="1.0"?>
<config>
<property name="Engine" value="@engine@"/>
<property name="Transaction" value="@transaction@"/>
<!--property name="Transaction.NbLogFile" value="256"/ -->
<!--property name="Transaction.MaxLogFileSize" value="256"/ -->
<!--property name="Transaction.minObjInLog" value="0"/ -->
<server id="0" name="S0" hostname="localhost">
<service class="fr.dyade.aaa.agent.AdminProxy" args="7890"/>
<service class="org.objectweb.joram.mom.proxies.ConnectionManager"
args="root root"/>
<service class="org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService"
args="16010"/>
<service class="fr.dyade.aaa.jndi2.server.JndiServer" args="16400"/>
</server>
</config>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment