[openamq-dev] Threadsafe channels?

Birju Prajapati birju.prajapati at schneidertrading.com
Tue Sep 25 16:06:25 CEST 2007


Hi Mato,

On Tue, Sep 25, 2007 at 03:02:58PM +0200, Martin Lucina wrote:
> 
> 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 was talking about the WireAPI (for AMQP 0.9). This is a bit confusing for me as this statement from Section 2 of http://www.openamq.org/wireapi.html seems to contradict itself:

"AMQP is a multi-channel protocol, meaning that one network connection can carry an arbitrary number of parallel, independent virtual connections, which AMQP calls "channels". In WireAPI these are called "sessions" for compatability with other middleware APIs. NOTE: OpenAMQ supports exactly ONE session per connection."

The first sentence seems to be stating that multiple parallel 'sessions/channels' are allowed per connection, whereas the 'NOTE' seems to be stating that only one 'session/channel' is allowed per connection. Am I misinterpreting the document?
Do you mean to say that the spec allows multiple channels, but the WireAPI only allows one?

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

No worries, I've found the same problem in:
http://www.openamq.org/doc_wireapi.txt_flat.html

Many thanks,
Birju
 

 
Schneider Trading
4th Floor,
25 Copthall Avenue
London EC2R 7BP

--------------------------------------------------------



Message from: birju.prajapati at schneidertrading.com
Message to: openamq-dev at lists.openamq.org
Attached files: 0
This e-mail and any files transmitted with it are confidential, may be legally privileged, and are for the sole use of the intended recipient. Copyright in this e-mail and any accompanying document created by us is owned by us. If you are not the intended recipient of this e-mail or any part of it please telephone our IT Department at the number shown above or by e-mail at info at schneidertrading.com. 
You should not use or disclose to any other person the contents of this e-mail or its attachments (if any), nor take copies. This e-mail is not a representation or warranty and is not intended nor should it be taken to create any legal relations, contractual or otherwise.
Schneider Trading Associates Ltd (Registration No. 3692131) is incorporated in England and Wales and the registered office is at 25 Copthall Avenue, London EC2R 7BP. The company is authorised and regulated by the Financial Services Authority


More information about the openamq-dev mailing list