Package org.jboss.naming

Examples of org.jboss.naming.NamingProviderURLWriter


      String fileName = "jnp-service-" + count + ".url";
      tearDownLatch = new CountDownLatch(1);
      CountDownLatch lockedLatch = new CountDownLatch(1);
      FileLocker locker = new FileLocker(tempDir, fileName, null, tearDownLatch, lockedLatch);
     
      NamingProviderURLWriter testee = new NamingProviderURLWriter();
      testee.setOutputDirURL(tempDir);
      testee.setOutputFileName(fileName);
      testee.setBootstrapAddress("localhost");
      testee.setBootstrapPort(9999);
     
      Thread t = new Thread(locker);
      t.setDaemon(true);
      t.start();
      assertTrue("FileLocker locked file", lockedLatch.await(10, TimeUnit.SECONDS));
      testee.start();
      testee.stop();
   }
View Full Code Here

TOP

Related Classes of org.jboss.naming.NamingProviderURLWriter

Copyright © 2018 www.massapicom. 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.