I hope it will help
http://qpid.apache.org/books/0.8/Programming-In-Apache-Qpid/html/ch05s03.html#id3088698

Property: Durable
.NET    public bool Durable { get; set; }

-----Original Message-----
From: KB Shiva Gowda [mailto:shiva.go...@headstrong.com] 
Sent: Thursday, March 17, 2011 7:23 PM
To: users@qpid.apache.org
Subject: RE: Using Qpid Persistence -- Help Required

I've made the queue durable as follows,

session.QueueDeclare(queue, org.apache.qpid.transport.Option.DURABLE);

still not persisting.



-----Original Message-----
From: KB Shiva Gowda
Sent: Thursday, March 17, 2011 8:36 PM
To: users@qpid.apache.org
Subject: RE: Using Qpid Persistence -- Help Required

Thanks a lot, Steve

I am working on it, now.

I have C++ broker but the clients (both publisher & subscriber) are in .NET.
Please provide some pointer for making  Queue & Message DURABLE in .NET clients.

Thanks,
KBS

-----Original Message-----
From: Steve Huston [mailto:shus...@riverace.com]
Sent: Thursday, March 17, 2011 8:20 PM
To: users@qpid.apache.org
Subject: RE: Using Qpid Persistence -- Help Required

> I have built qpid C++ source and I am starting  the QPID with 
> following command
>
> qpidd.exe --auth no  --data-dir "D:\QPID\Data" --load-module "D:\ 
> qpidc-0.8\bin\stored.dll" --load-module 
> "D:\qpidc-0.8\bin\msclfs_stored.dll"
>
> Is this the correct option to start QPID with Persistence?

Assuming there's not really a space in the first load-module, yes.
>
> It's creating QpidStore Database on my SQL Server.  But it's not 
> persisting the data published.

Ok. Well, you have verified that the modules are loading at least.

> Here, How I tested this......
>
> 1) Start QPID with above command
>
> 2) Execute Subscriber/Listener and subscribed for topic 'abc'
>  -  Kill the subscriber after this
>
> 3) Execute Publisher and publish  'abc' -- Kill the publisher after 
> this
>
> 4) Run, Subscriber/Listener again, -- I got all messages published So, 
> in-memory persistence is working.
>
>
>
> 1) Start QPID with above command
>
> 2) Execute Subscriber/Listener and subscribed for topic 'abc'
>  -  Kill the subscriber after this
>
> 3) Execute Publisher and publish  'abc' -- Kill the publisher after 
> this 4)Shut down QPID
>
> 4) Run, Subscriber/Listener again, -- I got No messages
>
>
>
> So, actual persistence is NOT working. OR my understanding of QPID 
> persistence is wrong.
>
> Please help me in enabling it.

The queue and messages sent both need to be marked persistent. Unless you make 
the appropriate changes to enable persistence in the application, the messages 
won't be stored.

-Steve

--
Steve Huston, Riverace Corporation
Total Lifecycle Support for Your Networked Applications http://www.riverace.com


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org


***The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged material. 
Any review,retransmission,dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.***

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org


***The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged material. 
Any review,retransmission,dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.***

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org


_______________________________________________________

The information contained in this message may be privileged and conf idential 
and protected from disclosure. If you are not the original intended recipient, 
you are hereby notified that any review, retransmission, dissemination, or 
other use of, or taking of any action in reliance upon, this information is 
prohibited. If you have received this communication in error, please notify the 
sender immediately by replying to this message and delete it from your 
computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or 
go to www.troika.ru/eng/Contacts/system.wbp  



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org

Reply via email to