Distinguish fresh messages in queue

2013-11-18 Thread pela
Hello, I was wondering if there was a technical way for a Java client to understand whether a message fetched from a queue is fresh or rather it was added to the queue while the client was not connected? The reason is to distinguish a /downloading/ phase where the client starts and reads all the

Manual acknowledge within JMS message listener

2013-11-12 Thread pela
Hello, In my application based on QPID JMS, I have a session created in CLIENT_ACKNOWLEDGE mode, which uses a MessageListener for anynchronous message processing. As far as I understand from the JMS specs, in this case: 1) After processing of each message, the message acknowledge() method must

Re: Java client: Cannot stop during failover ?

2013-07-29 Thread pela
Hope this helps. Keith. On 26 July 2013 14:39, pela lt; mpela.gatti@ gt; wrote: Connection.stop() and close() don't seem to help. Returning false from preFailover() is not a solution because that is invoked once before the start of a failover, but my problem is when

Re: Java client: Cannot stop during failover ?

2013-07-26 Thread pela
Hello, Any idea? I can't stop the application cleanly if QPID keep retrying the connection indefinitely (its connection thread remains alive). Thanks Marco -- View this message in context: http://qpid.2158936.n2.nabble.com/Java-client-Cannot-stop-during-failover-tp7595882p7595930.html Sent

Re: Java client: Cannot stop during failover ?

2013-07-26 Thread pela
/client/src/main/java/org/apache/qpid/jms/ConnectionListener.java?revision=1460483view=markup Phil On 26 July 2013 09:59, pela lt; mpela.gatti@ gt; wrote: Hi, The number of retries has been configured to an arbitrary high number, my application should not give up but just retry forever

Java client: Cannot stop during failover ?

2013-07-25 Thread pela
Hi, I have a problem with my Java client application when I enable the failover mechanism. Basically, during failover QPID loops trying to connect to a broker in the broker list (if there's only one broker, it retries the same indefinitely). How can I stop this and close everything, e.g. during

JMS API failover

2013-07-24 Thread pela
Hi, I'm building a client with JMS API and want to achieve automatic reconnection mechanism, that is when the connection to the broker is lost the client should reconnect automatically, resubscribe queues, etc. I've added failover=roundrobin to my connection URL and that seems to work even

[c++] Error while building qpid 0.20 from source distribution

2013-05-21 Thread pela
Hello, I'm trying to build qpid c++ from 0.20 source distribution but I get the following error: In file included from /home/users/mpelagatti/qpid/qpidc-0.20/src/qpid/UrlArray.cpp:23: /home/users/mpelagatti/qpid/qpidc-0.20/src/../include/qpid/framing/FieldValue.h:193: error: got 2 template

Re: [c++] Error while building qpid 0.20 from source distribution

2013-05-21 Thread pela
Christian Fromme wrote Hi, On Tue, May 21, 2013 at 12:54 PM, pela lt; mpela.gatti@ gt; wrote: I'm trying to build qpid c++ from 0.20 source distribution but I get the following error: In file included from /home/users/mpelagatti/qpid/qpidc-0.20/src/qpid/UrlArray.cpp:23: /home/users

Re: Questions regarding Qpid C++ windows client

2012-01-25 Thread pela
Hi, I am interested on that too, as I'm looking to make a client for different platforms (Linux and Windows at least). As far as I understand, some development would be required to support SSL client authentication on the c++ client for Windows. If anyone has any suggestions on where to start