Re: Using Qpid 0.8 java client with Qpid 0.6 C++ broker.

2011-05-19 Thread Charith Wickramarachchi
On Thu, May 19, 2011 at 3:41 PM, Gordon Sim wrote: > On 05/19/2011 11:04 AM, Charith Wickramarachchi wrote: > >> Hi, >> >> I was using Qpidc 0.6 broker with qpid 0.6 Java client. But i'm facing a >> Memory leak in the long run. Issue is in the close() in the >> org.apache.qpid.transport.Session c

Re: Java Messaging API

2011-05-19 Thread qpid user 2
I added the double quotes around it and still same error. Is there any difference in the grammars? I am currently using 0.6 and 0.8 and they both give me same error. For some coordination issues with others in the team, I cant move on to use 0.10 at this moment :) On Thu, May 19, 2011 at 5:55 PM,

Re: Java Messaging API

2011-05-19 Thread Rajith Attapattu
1. Two issues. It looks like you have an older version where the default syntax is Binding URL. So which version are you using? I'd recommend using the latest release (0.10 release). 2. Once you fix your first problem, then use double quotes around your address string destination.header = "m

Re: Java Messaging API

2011-05-19 Thread qpid user 2
Guys. I am using the following destination address in my jndi property, as advised: destination.header = my-subscription-queue; {create:always, node:{x-declare:{auto-delete:True}, x-bindings:[{queue:my-subscription-queue, exchange:'amq.match', arguments:{'x-match':any, 'userid':10}}]}} but I am ge

Re: Java Messaging API

2011-05-19 Thread Gordon Sim
On 05/19/2011 03:53 PM, Rajith Attapattu wrote: On Thu, May 19, 2011 at 10:04 AM, Gordon Sim wrote: On 05/19/2011 02:36 PM, qpid user 2 wrote: So any input on this? I am trying to construct a header exchange subscription using JMS. How would the destination and jndi properties look like? Fo

Re: Java Messaging API

2011-05-19 Thread Rajith Attapattu
On Thu, May 19, 2011 at 10:04 AM, Gordon Sim wrote: > On 05/19/2011 02:36 PM, qpid user 2 wrote: >> >> So any input on this? I am trying to construct a header exchange >> subscription using JMS. How would the destination and jndi properties look >> like? > > For python or c++ the following address

Re: Number of messages in a queue.

2011-05-19 Thread Phil Brown
Hi Gordon, Thank you for your help and the sample code! On Thu, May 19, 2011 at 10:47 AM, Gordon Sim wrote: > On 05/19/2011 02:51 PM, Phil Brown wrote: > >> I am fairly new to qpid and trying to learn the ropes. >> >> From what I understand, there is no way, through the C++ Messaging API, >>>

Re: Number of messages in a queue.

2011-05-19 Thread Phil Brown
Hi Steve, Thank you for your help! On Thu, May 19, 2011 at 10:48 AM, Steve Huston wrote: > Hi Phil, > > > I am fairly new to qpid and trying to learn the ropes. > > Great - welcome! > > > From what I understand, there is no way, through the C++ > > Messaging API, to get the number of messages i

Re: Number of messages in a queue.

2011-05-19 Thread Pavel Moravec
> The attached example shows a simple query of a queue by name. Only the > message depth is printed but there a range of other stats and properties > in the response. The list of stats and properties is e.g. written at http://qpid.apache.org/books/trunk/AMQP-Messaging-Broker-CPP-Book/html/ch02

Re: Number of messages in a queue.

2011-05-19 Thread Gordon Sim
On 05/19/2011 02:51 PM, Phil Brown wrote: I am fairly new to qpid and trying to learn the ropes. From what I understand, there is no way, through the C++ Messaging API, to get the number of messages in a queue. How can this be done? Is there any sample code? Any help would be greatly apprec

RE: Number of messages in a queue.

2011-05-19 Thread Steve Huston
Hi Phil, > I am fairly new to qpid and trying to learn the ropes. Great - welcome! > From what I understand, there is no way, through the C++ > Messaging API, to get the number of messages in a queue. Correct. > How can this be done? Is there any sample code? You can get this info using QMF

Re: Java Messaging API

2011-05-19 Thread Gordon Sim
On 05/19/2011 02:36 PM, qpid user 2 wrote: So any input on this? I am trying to construct a header exchange subscription using JMS. How would the destination and jndi properties look like? For python or c++ the following address is an example of what you want: my-headers-exchange; {link:{x-

Number of messages in a queue.

2011-05-19 Thread Phil Brown
I am fairly new to qpid and trying to learn the ropes. >From what I understand, there is no way, through the C++ Messaging API, to get the number of messages in a queue. How can this be done? Is there any sample code? Any help would be greatly appreciated!!! Thanks! Phil.

Re: Java Messaging API

2011-05-19 Thread qpid user 2
So any input on this? I am trying to construct a header exchange subscription using JMS. How would the destination and jndi properties look like? Thanks On Wed, May 18, 2011 at 4:01 PM, qpid user 2 wrote: > Ok. Originally we thought using a native API such as Messaging API in C++ > would reduce

Re: Using Qpid 0.8 java client with Qpid 0.6 C++ broker.

2011-05-19 Thread Gordon Sim
On 05/19/2011 11:04 AM, Charith Wickramarachchi wrote: Hi, I was using Qpidc 0.6 broker with qpid 0.6 Java client. But i'm facing a Memory leak in the long run. Issue is in the close() in the org.apache.qpid.transport.Session class. From the Source its look like qpid 0.8 java client code is muc