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

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

/*    */ 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.SimpleDetectorClient;
/*    */
/*    */ public class SimpleSSLDetectorClient extends SimpleDetectorClient
/*    */ {
/*    */   public static void main(String[] args)
/*    */   {
/* 20 */     println("Starting JBoss/Remoting client... to stop this client, kill it manually via Control-C");
/* 21 */     SimpleDetectorClient client = new SimpleSSLDetectorClient();
/*    */     try
/*    */     {
/* 24 */       client.setupDetector();
/*    */       while (true)
/*    */       {
/* 29 */         Thread.sleep(1000L);
/*    */       }
/*    */     }
/*    */     catch (Throwable e)
/*    */     {
/* 34 */       e.printStackTrace();
/*    */
/* 37 */       println("Stopping JBoss/Remoting client");
/*    */     }
/*    */   }
/*    */
/*    */   protected Map getConfiguration()
/*    */   {
/* 43 */     Map config = new HashMap();
/* 44 */     config.put("org.jboss.remoting.trustStoreType", "JKS");
/* 45 */     String trustStoreFilePath = getClass().getResource("truststore").getFile();
/* 46 */     config.put("org.jboss.remoting.trustStore", trustStoreFilePath);
/* 47 */     config.put("org.jboss.remoting.trustStorePassword", "unit-tests-client");
/* 48 */     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.SimpleSSLDetectorClient
* JD-Core Version:    0.6.0
*/
TOP

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

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.