Hello All,

  I'm newbie to Xindice.
  I'm just trying to use it from my code.
  I create new thread:
    ...
    Thread serverThread = new Thread(new Runnable()
    {
      public void run()
      {
        Xindice.main(new String[]{_path});
      }
    });
    serverThread.start();
    ...
    , where _path is real path to {XINDICE_HOME}/config/system.xml.

    It works. The problem of this code is that I can't know exactly
    when server becomes ready to process requests to database.
    There is one (for me) bad way to set hardcoded pause in main thread:
    ...
    Thread.sleep(SERVER_START_TIME);
    ...
    But it is really bad way.
    Is there any other way to start server and be notified to start
    working with database???

    Thanks for any help.

-- 
Best regards,
Pavel

mailto:[EMAIL PROTECTED]


Reply via email to