Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.remoting.samples.detection.jndi.ssl;
 
 import java.util.Map;
 
A SimpleDetectorSSLClient.

Author(s):
Adrian Brock
Version:
$Revision: 1480 $
   public static void main(String[] args)
   {
      println("Starting JBoss/Remoting client... to stop this client, kill it manually via Control-C");
      SimpleDetectorClient client = new SimpleSSLDetectorClient();
      try
      {
         client.setupDetector();
         // let this client run forever - welcoming new servers when then come online
         while(true)
         {
            Thread.sleep(1000);
         }
      }
      catch(Throwable e)
      {
         e.printStackTrace();
      }
      println("Stopping JBoss/Remoting client");
   }
   
   protected Map getConfiguration()
   {
      Map config = new HashMap();
      config.put(."JKS");
      String trustStoreFilePath = getClass().getResource("truststore").getFile();
      config.put(.trustStoreFilePath);
      config.put(."unit-tests-client");
      return config;
   }
New to GrepCode? Check out our FAQ X