activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: CMS: Session, Destination
Date Fri, 01 May 2009 15:30:10 GMT
On Fri, 2009-05-01 at 07:08 -0700, nmittal wrote:
> Hi All,
> If I am not mistaken, then destinations are created from Sessions.
> (session->createTopic() or session->createQueue())
> 
> Then how come, destinations are required to be thread safe while Sessions
> are not?
> 
> thanks
> Nishant

Mainly because Destinations are a more general purpose object which
could be shared amongst several MessageConsumers or MessageProducers in
a single application.  Typically only one thread uses the Session to
create the application resources at startup.

Regards
Tim.


-- 
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/




Mime
View raw message