[openamq-dev] Threadsafe channels?

Martin Lucina mato at imatix.com
Tue Sep 25 15:02:58 CEST 2007


Hi Birju,

Birju.Prajapati at schneidertrading.com said:
> I hope you can help with this short one: Is a channel threadsafe? I
> don't see anywhere in the docs that states otherwise. I.e. can multiple
> threads simultaneously send messages through one channel?

That is the intent of the design.  However, I'm not sure which
implementation your question is referring to.  I can't speak for the
QPid developers, but the current OpenAMQ release only supports one
channel (i.e. session in WireAPI) per connection.

> I also think that there is a minor mistake in the following link:
> Section 3 (The Session Class) http://openamq.org/wireapi.html
> Reads:
> "Multithreaded applications can create many sessions per channel"
> Should this not read:
> "Multithreaded applications can create many sessions per _connection_"
> ?

That's correct, thanks for reporting it, I'll fix it in SVN and update
the website with the next release.

-mato


More information about the openamq-dev mailing list