Re: Running ZooKeeper inside my web app

2009-04-16 Thread David Pollak
Cool!

Good things looming... when I have something to show, I'll pester the group
again. :-)

On Thu, Apr 16, 2009 at 9:47 AM, Mahadev Konar wrote:

> HI David,
>  You should be able to start zookeeper from your web app. Please take a
> look
> at src/java/test where we startup zookeeper servers in the test cases as
> part of junit testing.
>
> mahadev
>
>
> On 4/16/09 6:38 AM, "David Pollak"  wrote:
>
> > Howdy,
> > I'm working on a project of which ZooKeeper is a module.
> >
> > For production mode, having a separate ZooKeeper instance/cluster is
> fine,
> > but in development mode, I'd really like to have ZooKeeper start as part
> of
> > my web app so there's no external dependency/startup/thing to think
> about.
> >  Is it possible to start ZooKeeper programatically from inside my web
> app?
> >
> > Thanks,
> >
> > David
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp


Re: Running ZooKeeper inside my web app

2009-04-16 Thread Mahadev Konar
HI David, 
 You should be able to start zookeeper from your web app. Please take a look
at src/java/test where we startup zookeeper servers in the test cases as
part of junit testing.

mahadev


On 4/16/09 6:38 AM, "David Pollak"  wrote:

> Howdy,
> I'm working on a project of which ZooKeeper is a module.
> 
> For production mode, having a separate ZooKeeper instance/cluster is fine,
> but in development mode, I'd really like to have ZooKeeper start as part of
> my web app so there's no external dependency/startup/thing to think about.
>  Is it possible to start ZooKeeper programatically from inside my web app?
> 
> Thanks,
> 
> David



Re: Running ZooKeeper inside my web app

2009-04-16 Thread Ted Dunning
Absolutely.

Katta did this, at least initially.

Just spawn a thread and mimic the launching of a Zookeeper server.

On Thu, Apr 16, 2009 at 6:38 AM, David Pollak  wrote:

>  Is it possible to start ZooKeeper programatically from inside my web app?




-- 
Ted Dunning, CTO
DeepDyve


Running ZooKeeper inside my web app

2009-04-16 Thread David Pollak
Howdy,
I'm working on a project of which ZooKeeper is a module.

For production mode, having a separate ZooKeeper instance/cluster is fine,
but in development mode, I'd really like to have ZooKeeper start as part of
my web app so there's no external dependency/startup/thing to think about.
 Is it possible to start ZooKeeper programatically from inside my web app?

Thanks,

David

-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp