Here is the code I use
    class startServer implements Runnable {

        @Override
        public void run() {
            try {
                CassandraDaemon cassandraDaemon = new CassandraDaemon();
                cassandraDaemon.init(null);
                cassandraDaemon.start();
            } catch (TTransportException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    }

        Thread thread = new Thread(new startServer());
        thread.start();

<the code to test here>


On Thu, Jan 21, 2010 at 12:08 PM, Richard Grossman <richie...@gmail.com>wrote:

> Yes I've seen this and also check it but if I start the server then it
> block the current thread I can continue the test in sequence.
> So I've tried to start into separate thread but no chance too it close the
> server even before I arrive to the code to test.
>
> If you've a trick to start the server in JVM thank
>
> Richard
>
> On Wed, Jan 20, 2010 at 3:47 PM, Jonathan Ellis <jbel...@gmail.com> wrote:
>
>> did you look at CassandraDaemon?
>>
>>

Reply via email to