Once you have Kafka linked, you do something like this:

    val server = new KafkaServer(new KafkaConfig(props))
    server.startup()


On Sun, May 6, 2012 at 1:03 AM, Bo Sun <[email protected]> wrote:

> use sbt compile the kafka to a jar. and use it ,make your app as a
> broker/producer
>
> On Sun, May 6, 2012 at 2:34 PM, Erwin Karbasi <[email protected]> wrote:
>
> > Hello Evan,
> >
> > I'd appreciate if you could elaborate how did you embed Kafka in an app?
> >
> > Thanks,
> > Erwin
> >
> > On Sat, May 5, 2012 at 6:36 PM, Evan chan <[email protected]> wrote:
> >
> > > It is easy to embed Kafka though within an app and start it that way.
>  We
> > > do this for testing.  I think this is what he is asking.
> > >
> > > -Evan
> > > Carry your candle, run to the darkness
> > > Seek out the helpless, deceived and poor
> > > Hold out your candle for all to see it
> > > Take your candle, and go light your world
> > >
> > >
> > >
> > > On May 5, 2012, at 6:11 AM, Tim Lossen <[email protected]> wrote:
> > >
> > > > no, kafka always acts as a broker.
> > > >
> > > >
> > > > On 2012-05-05, at 11:36 , Erwin Karbasi wrote:
> > > >
> > > >> Hello Masters,
> > > >>
> > > >> I'm looking for lightweight queue that doesn't need server/broker
> > > >> installation, just a jar file that i can stick it to my application
> > lib.
> > > >> Can i use kafka for my above use case?
> > > >>
> > > >> Thanks in advance,
> > > >> Erwin
> > > >
> > > > --
> > > > http://tim.lossen.de
> > > >
> > > >
> > > >
> > >
> >
>



-- 
--
*Evan Chan*
Senior Software Engineer |
[email protected] | (650) 996-4600
www.ooyala.com | blog <http://www.ooyala.com/blog> |
@ooyala<http://www.twitter.com/ooyala>

Reply via email to