Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B079792FE for ; Thu, 22 Mar 2012 12:41:35 +0000 (UTC) Received: (qmail 53119 invoked by uid 500); 22 Mar 2012 12:41:35 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 53053 invoked by uid 500); 22 Mar 2012 12:41:34 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 53044 invoked by uid 99); 22 Mar 2012 12:41:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2012 12:41:34 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of parkiratbagga@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2012 12:41:28 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SAhKF-0005bC-0Q for users@qpid.apache.org; Thu, 22 Mar 2012 05:41:07 -0700 Date: Thu, 22 Mar 2012 05:41:06 -0700 (PDT) From: ParkiratBagga To: users@qpid.apache.org Message-ID: <1332420066977-7395366.post@n2.nabble.com> Subject: C++ broker 0.14, java client, flow-to-disk not happening MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am using Qpid tools to create the queue's on C++ broker 0.14, and a java client to publish messages to the queue. Both messages and queues are durable/persistent. I have observed that when I have used, the java client, only the messages which enter to the in-memory, are persisted to the persistence store and when I stop and restart my qpid server, the messages are not lost. However, if any of the queue limits(size or count) is hit, messages are not flowing to disk and all the new messages where lost But, if I use the spout which is a c++ client, and any of the queue limit have been hit, messages are persisting to the disk, and I am not loosing messages, even when the queue is full. My requirement is to use C++ broker and a java client, the all the messages should persist to disk when queues are full. Below is the command which I use to create the queue: ======================================================================= *Script to create a queue* qpid-config add queue que1 --durable --file-size=24 --file-count=8 --max-queue-count=20 --limit-policy=flow-to-disk ======================================================================= I am using a java client, which is trying to publish messages to the queue. Below are the jms connection url, connection details and sample code, to show how I publish: =========================================================================== *jms settings:* connectionfactory.customer.qpidConnectionfactory = amqp\://guest\:guest@localhost/test?brokerlist\='tcp\://localhost\:5672?retries\='3'&connecttimeout\='10000'&connectdelay\='3000'' destination.customer.queue=BURL:direct://amq.direct/que1/que1?routingkey='que1'&exclusive='false' ==================== *Sample Code to create connection* ConnectionFactory connectionFactory = (AMQConnectionFactory) context.lookup("customer.qpidConnectionfactory"); AMQConnection connection = (AMQConnection) connectionFactory.createConnection(); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); connection.start(); ===================== *Sample code to create Producer to queue* Destination destination = (Destination) context.lookup("customer.queue"); MessageProducer producer = session.createProducer(destination); producer.send(message, DeliveryMode.PERSISTENT, 0, 0L); ======================================================================== Please help me with this problem. Thanks in advance. Regards, Parkirat Singh Bagga -- View this message in context: http://qpid.2158936.n2.nabble.com/C-broker-0-14-java-client-flow-to-disk-not-happening-tp7395366p7395366.html Sent from the Apache Qpid users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org