ExecutorService executor = new ThreadPoolExecutor(1, 5, 100, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>());
LogServiceImpl logServiceImpl = new LogServiceImpl(bundleContext, executor);
logServiceImpl.setLimit(100);
logServiceImpl.start();
bundleContext.registerService(new String[]{ LogService.class.getName(), LogReaderService.class.getName() }, logServiceImpl, null);
try
{