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/



Reply via email to