Package org.jboss.remoting.samples.detection.jndi.ssl

Source Code of org.jboss.remoting.samples.detection.jndi.ssl.SimpleSSLDetectorServer

/*    */ package org.jboss.remoting.samples.detection.jndi.ssl;
/*    */
/*    */ import java.net.URL;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import org.jboss.remoting.samples.detection.jndi.SimpleDetectorServer;
/*    */
/*    */ public class SimpleSSLDetectorServer extends SimpleDetectorServer
/*    */ {
/*    */   public static void main(String[] args)
/*    */   {
/* 42 */     println("Starting JBoss/Remoting server... to stop this server, kill it manually via Control-C");
/* 43 */     String locatorURI = getLocatorURI(args);
/* 44 */     println("This server's endpoint will be: " + locatorURI);
/*    */
/* 46 */     SimpleDetectorServer server = new SimpleSSLDetectorServer();
/*    */     try
/*    */     {
/* 49 */       server.setupDetector();
/* 50 */       server.setupServer(locatorURI);
/*    */       while (true)
/*    */       {
/* 55 */         Thread.sleep(1000L);
/*    */       }
/*    */     }
/*    */     catch (Exception e)
/*    */     {
/* 60 */       e.printStackTrace();
/*    */
/* 63 */       println("Stopping JBoss/Remoting server");
/*    */     }
/*    */   }
/*    */
/*    */   protected Map getConfiguration() {
/* 68 */     Map config = new HashMap();
/* 69 */     config.put("org.jboss.remoting.keyStoreType", "JKS");
/* 70 */     String keyStoreFilePath = getClass().getResource("keystore").getFile();
/* 71 */     config.put("org.jboss.remoting.keyStore", keyStoreFilePath);
/* 72 */     config.put("org.jboss.remoting.keyStorePassword", "unit-tests-server");
/* 73 */     return config;
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.remoting.samples.detection.jndi.ssl.SimpleSSLDetectorServer
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.remoting.samples.detection.jndi.ssl.SimpleSSLDetectorServer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.