incubator-nuvem-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1142099 - /incubator/nuvem/trunk/nuvem-standalone/src/main/java/org/apache/nuvem/cloud/xmpp/server/DefaultXMPPServer.java
Date Fri, 01 Jul 2011 21:26:53 GMT
Author: johnp
Date: Fri Jul  1 21:26:53 2011
New Revision: 1142099

URL: http://svn.apache.org/viewvc?rev=1142099&view=rev
Log:
changed code to load certificate from class path which is required to start the vysper server

Modified:
    incubator/nuvem/trunk/nuvem-standalone/src/main/java/org/apache/nuvem/cloud/xmpp/server/DefaultXMPPServer.java

Modified: incubator/nuvem/trunk/nuvem-standalone/src/main/java/org/apache/nuvem/cloud/xmpp/server/DefaultXMPPServer.java
URL: http://svn.apache.org/viewvc/incubator/nuvem/trunk/nuvem-standalone/src/main/java/org/apache/nuvem/cloud/xmpp/server/DefaultXMPPServer.java?rev=1142099&r1=1142098&r2=1142099&view=diff
==============================================================================
--- incubator/nuvem/trunk/nuvem-standalone/src/main/java/org/apache/nuvem/cloud/xmpp/server/DefaultXMPPServer.java
(original)
+++ incubator/nuvem/trunk/nuvem-standalone/src/main/java/org/apache/nuvem/cloud/xmpp/server/DefaultXMPPServer.java
Fri Jul  1 21:26:53 2011
@@ -42,6 +42,7 @@ import org.oasisopen.sca.annotation.Serv
 public class DefaultXMPPServer implements XMPPServer {
 
 	private static String DEFAULT_HOST = "localhost";
+	private static String CERT_PATH = "/config/bogus_mina_tls.cert";
 
 	private org.apache.vysper.xmpp.server.XMPPServer server;
 
@@ -70,10 +71,7 @@ public class DefaultXMPPServer implement
 			server.addEndpoint(new StanzaSessionFactory());
 			server.setStorageProviderRegistry(providerRegistry);
 
-			server
-					.setTLSCertificateInfo(new File(
-							"C:\\john\\nuvem\\ssl\\bogus_mina_tls.cert"),
-							"boguspw");
+			server.setTLSCertificateInfo(new File(getClass().getResource(CERT_PATH).toURI()), "boguspw");
 
 			try {
 				server.start();



Mime
View raw message