activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: SimpleProducer example inherits from Runnable.. curious why?
Date Thu, 30 Apr 2009 20:16:46 GMT
On Thu, 2009-04-30 at 13:11 -0700, nmittal wrote:
> Hi All, in the examples that come with the CMS distribution, I see the
> following...
> class SimpleProducer: public Runnable
> is there a reason why a producer has to inherit from Runnable. The run()
> function is called like any other functions.
> any insight is appreciated.
> thanks
> Nishant

It doesn't really have to be, but that code is just a cut and paste from
the main example file in src/example/main.cpp.  It doesn't hurt anything
that it does so it was never removed.  


Tim Bish

View raw message