Corosync crashes after a few minutes

2011-10-05 Thread Ilya Haykinson
I've managed to get qpid's c++ broker (0.12, built from trunk) working in a clustered configuration on two machines, and it's easy to illustrate that the cluster is functional (i.e. failover is working, with redelivery etc). However, invariably, after some minutes (rarely a consistent number, but

Re: Authentication newbie help sought - I'm afraid I'm failing at the first hurdle :-(

2011-10-05 Thread fadams
> What version of the cyrus sasl lib do you have? Did you build it yourself > or install it as a package? Hi Gordon, It looks like I've got sasl2.1.23 I installed it as a package on my Ubuntu box via Synaptic Package Manager. > > I believe older versions do not support the sasl_set_path option all

Re: Priority queues with JMS Client/ Java Broker

2011-10-05 Thread Gordon Sim
On 10/05/2011 03:40 PM, Pavel Moravec wrote: From: "Alan Conway" To: users@qpid.apache.org Cc: "Pavel Moravec" Sent: Wednesday, October 5, 2011 3:35:14 PM Subject: Re: Priority queues with JMS Client/ Java Broker On 09/27/2011 03:37 AM, Pavel Moravec wrote: Hi Praveen and all, just an additiona

Re: ring queues

2011-10-05 Thread Carl Trieloff
On 10/05/2011 11:07 AM, Wisler, Trina wrote: > Hi, > > I have a queue setup with max message count of 100 and as a ring queue. The > single client creating that queue will consume 1 message and then wait > indefinitely (for the purpose of my test). I am producing a total of 250 > messages. As

ring queues

2011-10-05 Thread Wisler, Trina
Hi, I have a queue setup with max message count of 100 and as a ring queue. The single client creating that queue will consume 1 message and then wait indefinitely (for the purpose of my test). I am producing a total of 250 messages. As I would expect, qpid-tool reports that 250 messages hav

Re: Priority queues with JMS Client/ Java Broker

2011-10-05 Thread Pavel Moravec
> From: "Alan Conway" > To: users@qpid.apache.org > Cc: "Pavel Moravec" > Sent: Wednesday, October 5, 2011 3:35:14 PM > Subject: Re: Priority queues with JMS Client/ Java Broker > > On 09/27/2011 03:37 AM, Pavel Moravec wrote: > > Hi Praveen and all, > > just an additional info to prevent some c

Re: Priority queues with JMS Client/ Java Broker

2011-10-05 Thread Alan Conway
On 09/27/2011 03:37 AM, Pavel Moravec wrote: Hi Praveen and all, just an additional info to prevent some confusion if you wish to use browse mode: priorities work when consuming the messages, while when browsing the queue, messages are ordered based on their enqueueing time. I.e. when sending

RE: How to set a binding on a receiver

2011-10-05 Thread Virgilio Alexandre Fornazin
Luca We made a 'workaround' to accomplish this (that was supported by old-style Qpid client api, but not for Qpid messaging api). We create two sessions: one for 'management' purposes and other for 'message exchange' purposes. First, we create a Receiver for 'queue declaration' in browse mode wi

Re: receptor out of scope with no calling receptor.close();

2011-10-05 Thread joseluis
Thanks, You are right I will compile qpid from trunk and I will test it again Thanks for your comments -- View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/receptor-out-of-scope-with-no-calling-receptor-close-tp6858408p6861720.html Sent from the Apache Qpid users mai

Re: ring queue needs max-queue-size specified?

2011-10-05 Thread Pavel Moravec
Hi Gordon, thanks for pointing me out to the JIRA case - I should search there first and then ask.. I am using "old good 0.10" so without the fix yet. Kind regards, Pavel - Original Message - > From: "Gordon Sim" > To: users@qpid.apache.org > Sent: Wednesday, October 5, 2011 12:33:01 P

Re: ring queue needs max-queue-size specified?

2011-10-05 Thread Gordon Sim
On 10/05/2011 10:08 AM, Pavel Moravec wrote: Hello, I noticed that declaring ring queue with just max-queue-count parameter prevents me sending messages with nonempty content: # qpid-config add queue Test2 --max-queue-count=100 --limit-policy=ring # ./spout -c 100 --content "a" Test2 2011-10-05

Re: How to set a binding on a receiver

2011-10-05 Thread Gordon Sim
On 10/05/2011 09:32 AM, Luca Martini wrote: I am using Apache qpid C++ broker and the messaging API. I understand that you can create a binding by specifying the correct x-bindings property on the address passed to the createReceiver method. However, I would like to add a key binding to an alread

Re: receptor out of scope with no calling receptor.close();

2011-10-05 Thread Gordon Sim
On 10/04/2011 12:31 PM, joseluis wrote: Hi, With other program, I'm sending 1000 messages per second on exchante testing/PRD1 In program bellow, I'm receiving those messages The receptor gets out of scope and is created a new one per 1000 messages If line receptor.close(); is commented, the

Re: Qpid-tools and SSL certificates

2011-10-05 Thread Gordon Sim
On 10/04/2011 11:36 PM, Bruno França wrote: Hi, when I set ssl-require-client-authentication and require-encryption on my Qpid C++ broker and try to connect to it using qpid-stat, I get the following error: $ export QPID_SSL_CERT_DB=/path/to/mycert_db $ export QPID_SSL_CERT_NAME=mycert $ ./bin/

ring queue needs max-queue-size specified?

2011-10-05 Thread Pavel Moravec
Hello, I noticed that declaring ring queue with just max-queue-count parameter prevents me sending messages with nonempty content: # qpid-config add queue Test2 --max-queue-count=100 --limit-policy=ring # ./spout -c 100 --content "a" Test2 2011-10-05 10:53:18 warning Exception received from broke

Re: Authentication newbie help sought - I'm afraid I'm failing at the first hurdle :-(

2011-10-05 Thread Gordon Sim
On 10/04/2011 09:08 PM, fadams wrote: o, I'm running Ubuntu and I noticed that I've got a file "/etc/sasldb2" (weird location!) in the spirit of nothing ventured nothing gained I did: sudo saslpasswd2 -u QPID guest sure enough sudo sasldblistusers2 gave guest@QPID: userPassword And when I did

Re: Is it possible to set authentication to only authenticate consumers?

2011-10-05 Thread Gordon Sim
On 10/03/2011 06:42 PM, Fraser Adams wrote: Is it possible to set authentication to only authenticate consumers so producers can connect in without needing authentication? You can allow both anonymous- and known- users to connect, and then use ACLs to only allow the known users to consume whil

How to set a binding on a receiver

2011-10-05 Thread Luca Martini
Hi all, I am using Apache qpid C++ broker and the messaging API. I understand that you can create a binding by specifying the correct x-bindings property on the address passed to the createReceiver method. However, I would like to add a key binding to an already created Receiver. Is it possible?

Re: problem with Qpidd

2011-10-05 Thread Gordon Sim
On 09/30/2011 12:09 PM, surya prakash wrote: 1)by using sender i am sending messages with High TPS like 1-15000.and receiver only able to receive 5000-6000 only. *How i tested:*i sent 100 messages using one simple sender application ,it sent those messages very fast.but the receiver is no

Re: problem with Qpidd

2011-10-05 Thread Gordon Sim
On 09/30/2011 06:37 AM, surya prakash wrote: In qpid::messaging API i didn't found queue declare things ,so that i moved to qpid::client API For creating queues you have a number of options to chose from depending on the different use cases. (1) For pub-sub subscriptions, the library will ta

Re: receptor out of scope with no calling receptor.close();

2011-10-05 Thread joseluis
Even calling to receptor.close(); the behavior is bad. In this case, the receptor (even a new one created with drain) receives messages slowly (I didn't check at the moment if there are dropped messages) regards -- View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/re

Re: two set of APIs, which one to use?

2011-10-05 Thread Gordon Sim
On 09/30/2011 01:59 PM, Gang, Litao wrote: I am doing the asynchronous mechanism, i.e. when a message arrives, a callback automatically gets called. How can you do that with the messaging API? I don't want to initiate a call to fetch a messages. This I don't know exactly how to do. At this p

Re: session management

2011-10-05 Thread Gordon Sim
On 09/30/2011 06:30 AM, Brandon Pedersen wrote: I am wondering what the best practices are for session management. I will be sending messages every few seconds from a couple different threads. Right now I am opening a new session for each message but I am wondering if that could slow things down