You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Nithesh Shetty <kn...@yahoo.com> on 2011/07/12 08:26:37 UTC

qpid 0.8 queries

<div class="plainMail">Hi,<BR><BR>I have been usign Websphere MQ for messaging in Linux.<BR>MQ has a option of generating unique message id for all the messages inserted in the queue.<BR>and we can retrieve those messages from the queue using the messageId.<BR><BR>I have checked MessageProperties structure in qpid. it has a field called messageid. But<BR>did not find any way of generating unique message id while messageTransfer or <BR>getting the message using message id.<BR><BR>Can you please provide any reference for it or any suggestion as i need this functionality.<BR><BR>Reason being there is a functionality in my project which we need to get msg process them and then delete the msg using msg id.<BR><BR>Query2.<BR><BR>When we close the broker all the queue created get deleted even after specifying the option of<BR>durable while creating the queue.<BR><BR>Regards,<BR><BR>Nithesh<BR><BR>Awaiting your reply.<BR><BR>Regards<BR></div>

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
> and we can reach to the starting point. if there is
> possibility of doing so please let me know.

i meant to say is there any way to iterate through the message queue to and fro.

--- On Thu, 7/14/11, Nithesh Shetty <kn...@yahoo.com> wrote:

> From: Nithesh Shetty <kn...@yahoo.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Thursday, July 14, 2011, 11:09 AM
> > You can also browse the queue to
> non-destructively read
> > messages, instead of draining the queue. See e.g. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html-single/Programming_in_Apache_Qpid/index.html,
> > section "2.4.3.3. browse".
> 
> that will help me to browse the message but after browsing
> when it satifies my condition i want to remove it but since
> its browing mode
> i cannot remove it from the queue.
> 
> Let me explain  u my requirement by qiving an ex:
> 
> let say there are ten messages in an queue
> i want to delete the msg on 7 pos in the queue reason being
> it matches
> the unique msg id which i have set during sending.
> Now i want to delete the first msg  and so on.
> 
> In qpid i suppose while getting / fetching it moves to the
> next window
> and we can reach to the starting point. if there is
> possibility of doing so please let me know.
> 
> 
> 
> 
> 
> 
> --- On Thu, 7/14/11, Pavel Moravec <pm...@redhat.com>
> wrote:
> 
> > From: Pavel Moravec <pm...@redhat.com>
> > Subject: Re: qpid 0.8 queries
> > To: users@qpid.apache.org
> > Date: Thursday, July 14, 2011, 6:52 AM
> > > even that is difficult to
> > implement because asoon as u get a message its
> > > removed from the queue 
> > You can also browse the queue to non-destructively
> read
> > messages, instead of draining the queue. See e.g. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html-single/Programming_in_Apache_Qpid/index.html,
> > section "2.4.3.3. browse".
> > 
> > 
> > Kind regards,
> > Pavel
> > 
> > 
> > ----- Original Message -----
> > From: "Nithesh Shetty" <kn...@yahoo.com>
> > To: users@qpid.apache.org
> > Sent: Thursday, July 14, 2011 5:59:28 AM
> > Subject: Re: qpid 0.8 queries
> > 
> > So to remove a message with a given id, you would have
> to
> > > go through all the messages on the queue until
> you
> > find the
> > > one you want and then acknowledge only that
> message
> > and
> > > release all the others. That is not a pattern I
> would
> > > recommend for general use.
> > > 
> > 
> > even that is difficult to implement because asoon as u
> get
> > a message its
> > removed from the queue 
> > 
> > I have used localqueue.get api is there any other way.
> need
> > help 
> > 
> > --- On Wed, 7/13/11, Gordon Sim <gs...@redhat.com>
> > wrote:
> > 
> > > From: Gordon Sim <gs...@redhat.com>
> > > Subject: Re: qpid 0.8 queries
> > > To: users@qpid.apache.org
> > > Date: Wednesday, July 13, 2011, 10:57 AM
> > > On 07/13/2011 05:36 AM, Nithesh
> > > Shetty wrote:
> > > > My requirement is
> > > > when i browse a  msg in a queue it should
> > return
> > > me unique msg id.
> > > > 
> > > > and if i successfully process the msg
> received
> > from
> > > the queue then
> > > > i remove the msg from the queue matching the
> msg
> > id
> > > mentioned.
> > > 
> > > The problem you have here is that the c++
> messaging
> > API
> > > does not support selecting a message by id (or
> indeed
> > in any
> > > way filtering the messages to be received from a
> > queue).
> > > 
> > > So to remove a message with a given id, you would
> have
> > to
> > > go through all the messages on the queue until
> you
> > find the
> > > one you want and then acknowledge only that
> message
> > and
> > > release all the others. That is not a pattern I
> would
> > > recommend for general use.
> > > 
> > > Selectors is a feature we plan to add in the
> future to
> > the
> > > messaging API and to the c++ broker.
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > Apache Qpid - AMQP Messaging Implementation
> > > Project:      http://qpid.apache.org
> > > Use/Interact: mailto:users-subscribe@qpid.apache.org
> > > 
> > >
> > 
> >
> ---------------------------------------------------------------------
> > Apache Qpid - AMQP Messaging Implementation
> > Project:      http://qpid.apache.org
> > Use/Interact: mailto:users-subscribe@qpid.apache.org
> > 
> > 
> >
> ---------------------------------------------------------------------
> > Apache Qpid - AMQP Messaging Implementation
> > Project:      http://qpid.apache.org
> > Use/Interact: mailto:users-subscribe@qpid.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
> You can also browse the queue to non-destructively read
> messages, instead of draining the queue. See e.g. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html-single/Programming_in_Apache_Qpid/index.html,
> section "2.4.3.3. browse".

that will help me to browse the message but after browsing when it satifies my condition i want to remove it but since its browing mode
i cannot remove it from the queue.

Let me explain  u my requirement by qiving an ex:

let say there are ten messages in an queue
i want to delete the msg on 7 pos in the queue reason being it matches
the unique msg id which i have set during sending.
Now i want to delete the first msg  and so on.

In qpid i suppose while getting / fetching it moves to the next window
and we can reach to the starting point. if there is possibility of doing so please let me know.






--- On Thu, 7/14/11, Pavel Moravec <pm...@redhat.com> wrote:

> From: Pavel Moravec <pm...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Thursday, July 14, 2011, 6:52 AM
> > even that is difficult to
> implement because asoon as u get a message its
> > removed from the queue 
> You can also browse the queue to non-destructively read
> messages, instead of draining the queue. See e.g. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html-single/Programming_in_Apache_Qpid/index.html,
> section "2.4.3.3. browse".
> 
> 
> Kind regards,
> Pavel
> 
> 
> ----- Original Message -----
> From: "Nithesh Shetty" <kn...@yahoo.com>
> To: users@qpid.apache.org
> Sent: Thursday, July 14, 2011 5:59:28 AM
> Subject: Re: qpid 0.8 queries
> 
> So to remove a message with a given id, you would have to
> > go through all the messages on the queue until you
> find the
> > one you want and then acknowledge only that message
> and
> > release all the others. That is not a pattern I would
> > recommend for general use.
> > 
> 
> even that is difficult to implement because asoon as u get
> a message its
> removed from the queue 
> 
> I have used localqueue.get api is there any other way. need
> help 
> 
> --- On Wed, 7/13/11, Gordon Sim <gs...@redhat.com>
> wrote:
> 
> > From: Gordon Sim <gs...@redhat.com>
> > Subject: Re: qpid 0.8 queries
> > To: users@qpid.apache.org
> > Date: Wednesday, July 13, 2011, 10:57 AM
> > On 07/13/2011 05:36 AM, Nithesh
> > Shetty wrote:
> > > My requirement is
> > > when i browse a  msg in a queue it should
> return
> > me unique msg id.
> > > 
> > > and if i successfully process the msg received
> from
> > the queue then
> > > i remove the msg from the queue matching the msg
> id
> > mentioned.
> > 
> > The problem you have here is that the c++ messaging
> API
> > does not support selecting a message by id (or indeed
> in any
> > way filtering the messages to be received from a
> queue).
> > 
> > So to remove a message with a given id, you would have
> to
> > go through all the messages on the queue until you
> find the
> > one you want and then acknowledge only that message
> and
> > release all the others. That is not a pattern I would
> > recommend for general use.
> > 
> > Selectors is a feature we plan to add in the future to
> the
> > messaging API and to the c++ broker.
> > 
> >
> ---------------------------------------------------------------------
> > Apache Qpid - AMQP Messaging Implementation
> > Project:      http://qpid.apache.org
> > Use/Interact: mailto:users-subscribe@qpid.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Pavel Moravec <pm...@redhat.com>.
> even that is difficult to implement because asoon as u get a message its
> removed from the queue 
You can also browse the queue to non-destructively read messages, instead of draining the queue. See e.g. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html-single/Programming_in_Apache_Qpid/index.html, section "2.4.3.3. browse".


Kind regards,
Pavel


----- Original Message -----
From: "Nithesh Shetty" <kn...@yahoo.com>
To: users@qpid.apache.org
Sent: Thursday, July 14, 2011 5:59:28 AM
Subject: Re: qpid 0.8 queries

So to remove a message with a given id, you would have to
> go through all the messages on the queue until you find the
> one you want and then acknowledge only that message and
> release all the others. That is not a pattern I would
> recommend for general use.
> 

even that is difficult to implement because asoon as u get a message its
removed from the queue 

I have used localqueue.get api is there any other way. need help 

--- On Wed, 7/13/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Wednesday, July 13, 2011, 10:57 AM
> On 07/13/2011 05:36 AM, Nithesh
> Shetty wrote:
> > My requirement is
> > when i browse a  msg in a queue it should return
> me unique msg id.
> > 
> > and if i successfully process the msg received from
> the queue then
> > i remove the msg from the queue matching the msg id
> mentioned.
> 
> The problem you have here is that the c++ messaging API
> does not support selecting a message by id (or indeed in any
> way filtering the messages to be received from a queue).
> 
> So to remove a message with a given id, you would have to
> go through all the messages on the queue until you find the
> one you want and then acknowledge only that message and
> release all the others. That is not a pattern I would
> recommend for general use.
> 
> Selectors is a feature we plan to add in the future to the
> messaging API and to the c++ broker.
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
>

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


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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
So to remove a message with a given id, you would have to
> go through all the messages on the queue until you find the
> one you want and then acknowledge only that message and
> release all the others. That is not a pattern I would
> recommend for general use.
> 

even that is difficult to implement because asoon as u get a message its
removed from the queue 

I have used localqueue.get api is there any other way. need help 

--- On Wed, 7/13/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Wednesday, July 13, 2011, 10:57 AM
> On 07/13/2011 05:36 AM, Nithesh
> Shetty wrote:
> > My requirement is
> > when i browse a  msg in a queue it should return
> me unique msg id.
> > 
> > and if i successfully process the msg received from
> the queue then
> > i remove the msg from the queue matching the msg id
> mentioned.
> 
> The problem you have here is that the c++ messaging API
> does not support selecting a message by id (or indeed in any
> way filtering the messages to be received from a queue).
> 
> So to remove a message with a given id, you would have to
> go through all the messages on the queue until you find the
> one you want and then acknowledge only that message and
> release all the others. That is not a pattern I would
> recommend for general use.
> 
> Selectors is a feature we plan to add in the future to the
> messaging API and to the c++ broker.
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/13/2011 05:36 AM, Nithesh Shetty wrote:
> My requirement is
> when i browse a  msg in a queue it should return me unique msg id.
>
> and if i successfully process the msg received from the queue then
> i remove the msg from the queue matching the msg id mentioned.

The problem you have here is that the c++ messaging API does not support 
selecting a message by id (or indeed in any way filtering the messages 
to be received from a queue).

So to remove a message with a given id, you would have to go through all 
the messages on the queue until you find the one you want and then 
acknowledge only that message and release all the others. That is not a 
pattern I would recommend for general use.

Selectors is a feature we plan to add in the future to the messaging API 
and to the c++ broker.

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
What i plan to do is
Browse each msg in the queue
match the msgid if it matches then Get the message
else move to next frame using sendCompletion.

But the problem here is if i move to next frame then when i want 
to check for another message i want to Browse msg from the start again
to compare again with the current msg id.

there is no function for that stuck again

--- On Wed, 7/13/11, Nithesh Shetty <kn...@yahoo.com> wrote:

> From: Nithesh Shetty <kn...@yahoo.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Wednesday, July 13, 2011, 4:36 AM
> Hi,
> 
> My requirement is
> when i browse a  msg in a queue it should return me
> unique msg id.
> 
> and if i successfully process the msg received from the
> queue then 
> i remove the msg from the queue matching the msg id
> mentioned.
> 
> 
> Now as per your mail. I will browse the msg in the queue
> and after processing the msg. 
> again search in a loop for the matching msd id in queue and
> then delete 
> it
> 
> or is there any other way
> 
> --- On Tue, 7/12/11, Gordon Sim <gs...@redhat.com>
> wrote:
> 
> > From: Gordon Sim <gs...@redhat.com>
> > Subject: Re: qpid 0.8 queries
> > To: users@qpid.apache.org
> > Date: Tuesday, July 12, 2011, 12:54 PM
> > On 07/12/2011 01:50 PM, Nithesh
> > Shetty wrote:
> > > But can i check the message id of message is the
> > localqueue and then match with my message id and it
> they
> > match then read...
> > >
> > > Some way through messageproperties or
> messageheader.
> > 
> > You can check the message-id on the receiving client,
> > certainly (using 
> > Message::getMessageId()). However you can't only
> receiver a
> > message with 
> > a given id . Not sure if that is what you are looking
> for.
> > 
> > >
> > > --- On Tue, 7/12/11, Gordon Sim<gs...@redhat.com> 
> > wrote:
> > >
> > >> From: Gordon Sim<gs...@redhat.com>
> > >> Subject: Re: qpid 0.8 queries
> > >> To: users@qpid.apache.org
> > >> Date: Tuesday, July 12, 2011, 12:41 PM
> > >> On 07/12/2011 01:22 PM, Nithesh
> > >> Shetty wrote:
> > >>> yes m using c++ qpid.messaging API?
> > >>
> > >> Then its easy enough to set the ID:
> > >>
> > >> import<qpid/types/Uuid.h>
> > >>
> > >> using qpid::types::Uuid;
> > >> ...
> > >> message.setMessageId(Uuid(true).str());
> > >>
> > >> However there is no support for selectors yet
> on
> > this API.
> > >>
> > >>
> >
> ---------------------------------------------------------------------
> > >> Apache Qpid - AMQP Messaging Implementation
> > >> Project:      http://qpid.apache.org
> > >> Use/Interact: mailto:users-subscribe@qpid.apache.org
> > >>
> > >>
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > Apache Qpid - AMQP Messaging Implementation
> > > Project:      http://qpid.apache.org
> > > Use/Interact: mailto:users-subscribe@qpid.apache.org
> > >
> > 
> > 
> >
> ---------------------------------------------------------------------
> > Apache Qpid - AMQP Messaging Implementation
> > Project:      http://qpid.apache.org
> > Use/Interact: mailto:users-subscribe@qpid.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
Hi,

My requirement is
when i browse a  msg in a queue it should return me unique msg id.

and if i successfully process the msg received from the queue then 
i remove the msg from the queue matching the msg id mentioned.


Now as per your mail. I will browse the msg in the queue and after processing the msg. 
again search in a loop for the matching msd id in queue and then delete 
it

or is there any other way

--- On Tue, 7/12/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Tuesday, July 12, 2011, 12:54 PM
> On 07/12/2011 01:50 PM, Nithesh
> Shetty wrote:
> > But can i check the message id of message is the
> localqueue and then match with my message id and it they
> match then read...
> >
> > Some way through messageproperties or messageheader.
> 
> You can check the message-id on the receiving client,
> certainly (using 
> Message::getMessageId()). However you can't only receiver a
> message with 
> a given id . Not sure if that is what you are looking for.
> 
> >
> > --- On Tue, 7/12/11, Gordon Sim<gs...@redhat.com> 
> wrote:
> >
> >> From: Gordon Sim<gs...@redhat.com>
> >> Subject: Re: qpid 0.8 queries
> >> To: users@qpid.apache.org
> >> Date: Tuesday, July 12, 2011, 12:41 PM
> >> On 07/12/2011 01:22 PM, Nithesh
> >> Shetty wrote:
> >>> yes m using c++ qpid.messaging API?
> >>
> >> Then its easy enough to set the ID:
> >>
> >> import<qpid/types/Uuid.h>
> >>
> >> using qpid::types::Uuid;
> >> ...
> >> message.setMessageId(Uuid(true).str());
> >>
> >> However there is no support for selectors yet on
> this API.
> >>
> >>
> ---------------------------------------------------------------------
> >> Apache Qpid - AMQP Messaging Implementation
> >> Project:      http://qpid.apache.org
> >> Use/Interact: mailto:users-subscribe@qpid.apache.org
> >>
> >>
> >
> >
> ---------------------------------------------------------------------
> > Apache Qpid - AMQP Messaging Implementation
> > Project:      http://qpid.apache.org
> > Use/Interact: mailto:users-subscribe@qpid.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/12/2011 01:50 PM, Nithesh Shetty wrote:
> But can i check the message id of message is the localqueue and then match with my message id and it they match then read...
>
> Some way through messageproperties or messageheader.

You can check the message-id on the receiving client, certainly (using 
Message::getMessageId()). However you can't only receiver a message with 
a given id . Not sure if that is what you are looking for.

>
> --- On Tue, 7/12/11, Gordon Sim<gs...@redhat.com>  wrote:
>
>> From: Gordon Sim<gs...@redhat.com>
>> Subject: Re: qpid 0.8 queries
>> To: users@qpid.apache.org
>> Date: Tuesday, July 12, 2011, 12:41 PM
>> On 07/12/2011 01:22 PM, Nithesh
>> Shetty wrote:
>>> yes m using c++ qpid.messaging API?
>>
>> Then its easy enough to set the ID:
>>
>> import<qpid/types/Uuid.h>
>>
>> using qpid::types::Uuid;
>> ...
>> message.setMessageId(Uuid(true).str());
>>
>> However there is no support for selectors yet on this API.
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>


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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
But can i check the message id of message is the localqueue and then match with my message id and it they match then read...

Some way through messageproperties or messageheader.

--- On Tue, 7/12/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Tuesday, July 12, 2011, 12:41 PM
> On 07/12/2011 01:22 PM, Nithesh
> Shetty wrote:
> > yes m using c++ qpid.messaging API?
> 
> Then its easy enough to set the ID:
> 
> import <qpid/types/Uuid.h>
> 
> using qpid::types::Uuid;
> ...
> message.setMessageId(Uuid(true).str());
> 
> However there is no support for selectors yet on this API.
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/12/2011 01:22 PM, Nithesh Shetty wrote:
> yes m using c++ qpid.messaging API?

Then its easy enough to set the ID:

import <qpid/types/Uuid.h>

using qpid::types::Uuid;
...
message.setMessageId(Uuid(true).str());

However there is no support for selectors yet on this API.

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
yes m using c++ qpid.messaging API?


--- On Tue, 7/12/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Tuesday, July 12, 2011, 12:16 PM
> On 07/12/2011 01:14 PM, Nithesh
> Shetty wrote:
> > I am using C++ Broker and checked there is no function
> called setDisableMessageID
> 
> Right, its on the JMS client API. Are you saying you are
> using the c++ qpid.messaging API?
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/12/2011 01:14 PM, Nithesh Shetty wrote:
> I am using C++ Broker and checked there is no function called setDisableMessageID

Right, its on the JMS client API. Are you saying you are using the c++ 
qpid.messaging API?

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.

--- On Tue, 7/12/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Tuesday, July 12, 2011, 12:02 PM
> On 07/12/2011 07:26 AM, Nithesh
> Shetty wrote:
> > MQ has a option of generating unique message id for
> all the messages
> > inserted in the queue and we can retrieve those
> messages from the
> > queue using the messageId. I have checked
> MessageProperties structure
> > in qpid. it has a field called messageid. But did not
> find any way of
> > generating unique message id while messageTransfer or
> getting the
> > message using message id.
> > Can you please provide any reference for it or any
> suggestion as i
> > need this functionality.
> 
> I believe the message id is generated by default, but you
> can control it via the setDisableMessageID() on the JMS
> MessageProducer interface.

I am using C++ Broker and checked there is no function called setDisableMessageID

> 
> You should be able to retrieve the id with
> Message.getJMSMessageID().

using C++ Broker.

> 
> There is no direct support for accessing a message by id,
> but you should be able to use a selector to do so (standard
> JMS).
> 
> > When we close the broker all the queue created get
> deleted even after
> > specifying the option of durable while creating the
> queue.
> 
> Do you have a persistence plugin installed? (https://cwiki.apache.org/qpid/faq.html#FAQ-Persistence).
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
ok..
when i ran bootstrap is said
Python sources senn but 'PYTHON' is undefined
the usual way to define 'PYTHON' is  to add 'AM_PATH_PYTHON'
to 'configure.ac' and run 'aclocal' and 'autoconf' again

i executed aclocal and autoconf it created a configure file.

But when i executed ./configure

it gace error
./configure: line 5229: syntax error near unexpected token `-Werror'
./configure: line 5229: ` gl_COMPILER_FLAGS(-Werror)


--- On Mon, 7/18/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Monday, July 18, 2011, 2:44 PM
> On 07/18/2011 03:28 PM, Nithesh
> Shetty wrote:
> > there are two source code folders
> > 
> > 1. actual qpid0.10 from where i built the broker
> > 2. http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/
> > 
> > 
> > now i have called configure from qpid0.10/cpp and set
> > wiht-qpid-checkout=2
> > 
> > since there is no configure file in folder 2.
> 
> Read http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/cpp/README
> 
> "1. './bootstrap' (This initializes the autotools)" <-
> this will create the configure script
> 
> "2. If the qpidd package is installed, then:
> 
>    './configure'
> 
>    Otherwise, if using an svn checkout of
> qpidd (as opposed to installing
>    the qpidd package), then:
> 
>    './configure
> --with-qpid-checkout=<path_to_qpid>'
> 
>    (Point to the top-level qpid dir in which
> the cpp and python dirs exist)"
> 
> In your case, if you have installed qpid then you don't
> need the --with-qpid-checkout option. If you have not
> installed it you should use that option and specify the path
> to the source you built (i.e. 1. in your original mail
> above).
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
u know what stange but
i have persistant module of qpid 0.8 
i ran configure file(0.8) i executed well.

then i executed configure file of qpid 0.10 again 
and there was no error

msgstore.so got created..



--- On Tue, 7/19/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Tuesday, July 19, 2011, 11:52 AM
> On 07/19/2011 12:34 PM, Nithesh
> Shetty wrote:
> > /usr/include/db.h
> > /usr/include/db4
> > /usr/include/db4/db.h
> > /usr/include/db4/db_185.h
> > /usr/include/db4/db_cxx.h
> > /usr/include/db_185.h
> > /usr/include/db_cxx.h
> 
> That seems normal (where did you get that package though,
> looks like its a fedora6 package rather than a rhel
> package).
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/19/2011 12:34 PM, Nithesh Shetty wrote:
> /usr/include/db.h
> /usr/include/db4
> /usr/include/db4/db.h
> /usr/include/db4/db_185.h
> /usr/include/db4/db_cxx.h
> /usr/include/db_185.h
> /usr/include/db_cxx.h

That seems normal (where did you get that package though, looks like its 
a fedora6 package rather than a rhel package).

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
/usr/include/db.h
/usr/include/db4
/usr/include/db4/db.h
/usr/include/db4/db_185.h
/usr/include/db4/db_cxx.h
/usr/include/db_185.h
/usr/include/db_cxx.h



--- On Tue, 7/19/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Tuesday, July 19, 2011, 10:41 AM
> On 07/19/2011 11:29 AM, Nithesh
> Shetty wrote:
> > db4-devel-4.3.29-9.fc6
> 
> That seems odd, I would expect db4-devel-4.3.29-10.el5_5.2
> for the platform specified.
> 
> What does 'rpm -ql db4-devel | grep include' show?
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/19/2011 11:29 AM, Nithesh Shetty wrote:
> db4-devel-4.3.29-9.fc6

That seems odd, I would expect db4-devel-4.3.29-10.el5_5.2 for the 
platform specified.

What does 'rpm -ql db4-devel | grep include' show?

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
db4-devel-4.3.29-9.fc6

--- On Tue, 7/19/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Tuesday, July 19, 2011, 10:12 AM
> On 07/19/2011 10:24 AM, Nithesh
> Shetty wrote:
> > 
> > Red Hat Endterprise Linux Server release 5 (Tikanga)
> > libdb-4.3.so /usr/lib
> 
> Strange, that should certainly work. What version of
> db4-devel do you have (rpm -qv db4-devel)?
> 
> > and i have installed qpid
> > 
> > but still when i try to call configure for the
> persistance module
> > 
> > it say use --with-qpid-checkout
> 
> It seems qpid no longer installs the internal broker
> headers files needed for compiling the store. It also
> appears that with-qpid-checkout will only work against a
> full svn checkout of the qpid tree and not against a source
> release.
> 
> That means you need to check out and rebuild Qpid from the
> svn branch for 0.10:
> 
> svn co https://svn.apache.org/repos/asf/qpid/branches/0.10
> cd qpid/cpp
> ./bootstrap
> ./configure
> make
> 
> then use the root of this checkout (the qpid dir) as the
> path to --with-qpid-checkout for your store build.
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/19/2011 10:24 AM, Nithesh Shetty wrote:
>
> Red Hat Endterprise Linux Server release 5 (Tikanga)
> libdb-4.3.so /usr/lib

Strange, that should certainly work. What version of db4-devel do you 
have (rpm -qv db4-devel)?

> and i have installed qpid
>
> but still when i try to call configure for the persistance module
>
> it say use --with-qpid-checkout

It seems qpid no longer installs the internal broker headers files 
needed for compiling the store. It also appears that with-qpid-checkout 
will only work against a full svn checkout of the qpid tree and not 
against a source release.

That means you need to check out and rebuild Qpid from the svn branch 
for 0.10:

svn co https://svn.apache.org/repos/asf/qpid/branches/0.10
cd qpid/cpp
./bootstrap
./configure
make

then use the root of this checkout (the qpid dir) as the path to 
--with-qpid-checkout for your store build.


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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
Red Hat Endterprise Linux Server release 5 (Tikanga)
libdb-4.3.so /usr/lib


and i have installed qpid 

but still when i try to call configure for the persistance module

it say use --with-qpid-checkout



--- On Tue, 7/19/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Tuesday, July 19, 2011, 8:26 AM
> On 07/19/2011 08:32 AM, Nithesh
> Shetty wrote:
> > ./configure gives error saying
> > ...
> > checking for db_cxx.h... no
> > configure: error: db4-devel package missing. Please
> ensure both db4 and db4-devel are installed. (hint: "yum
> install db4-devel" should do it ...)
> >
> >
> > i have already installed db4 and db4-devel but still
> it gives me the error
> 
> What platform are you building on, what version of
> db4-devel do you have 
> and where is it installed?
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/19/2011 08:32 AM, Nithesh Shetty wrote:
> ./configure gives error saying
> ...
> checking for db_cxx.h... no
> configure: error: db4-devel package missing. Please ensure both db4 and db4-devel are installed. (hint: "yum install db4-devel" should do it ...)
>
>
> i have already installed db4 and db4-devel but still it gives me the error

What platform are you building on, what version of db4-devel do you have 
and where is it installed?

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
./configure gives error saying
....
checking for db_cxx.h... no
configure: error: db4-devel package missing. Please ensure both db4 and db4-devel are installed. (hint: "yum install db4-devel" should do it ...)


i have already installed db4 and db4-devel but still it gives me the error
 
awaiting your reply


--- On Mon, 7/18/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Monday, July 18, 2011, 2:44 PM
> On 07/18/2011 03:28 PM, Nithesh
> Shetty wrote:
> > there are two source code folders
> > 
> > 1. actual qpid0.10 from where i built the broker
> > 2. http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/
> > 
> > 
> > now i have called configure from qpid0.10/cpp and set
> > wiht-qpid-checkout=2
> > 
> > since there is no configure file in folder 2.
> 
> Read http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/cpp/README
> 
> "1. './bootstrap' (This initializes the autotools)" <-
> this will create the configure script
> 
> "2. If the qpidd package is installed, then:
> 
>    './configure'
> 
>    Otherwise, if using an svn checkout of
> qpidd (as opposed to installing
>    the qpidd package), then:
> 
>    './configure
> --with-qpid-checkout=<path_to_qpid>'
> 
>    (Point to the top-level qpid dir in which
> the cpp and python dirs exist)"
> 
> In your case, if you have installed qpid then you don't
> need the --with-qpid-checkout option. If you have not
> installed it you should use that option and specify the path
> to the source you built (i.e. 1. in your original mail
> above).
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/18/2011 03:28 PM, Nithesh Shetty wrote:
> there are two source code folders
>
> 1. actual qpid0.10 from where i built the broker
> 2. http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/
>
>
> now i have called configure from qpid0.10/cpp and set
> wiht-qpid-checkout=2
>
> since there is no configure file in folder 2.

Read 
http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/cpp/README

"1. './bootstrap' (This initializes the autotools)" <- this will create 
the configure script

"2. If the qpidd package is installed, then:

    './configure'

    Otherwise, if using an svn checkout of qpidd (as opposed to installing
    the qpidd package), then:

    './configure --with-qpid-checkout=<path_to_qpid>'

    (Point to the top-level qpid dir in which the cpp and python dirs 
exist)"

In your case, if you have installed qpid then you don't need the 
--with-qpid-checkout option. If you have not installed it you should use 
that option and specify the path to the source you built (i.e. 1. in 
your original mail above).


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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
there are two source code folders

1. actual qpid0.10 from where i built the broker 
2. http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/ 


now i have called configure from qpid0.10/cpp and set
wiht-qpid-checkout=2

since there is no configure file in folder 2.

i need to build msgstore.so to make my broker support persistant queue

i am total confused here

--- On Mon, 7/18/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Monday, July 18, 2011, 2:17 PM
> On 07/18/2011 03:00 PM, Nithesh
> Shetty wrote:
> >
> > i have downloaded individual files from the below
> mentioned site
> >
> > http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/cpp/
> >
> > my qpid version is 0.10.
> >
> > but when i configure using wiht-qpid-checkout=path of
> above download folder
> > it say does not appear to be a valid wpid checkout
> 
> What are you setting --with-qpid-checkout to? It should
> point to a 
> checkout of the qpid code (*not* the store code). If you
> have qpid 0.10 
> installed you may not need it, but if you do (which will be
> if there are 
> headers needed that are not installed) you should set the
> path to the 
> source from which you built qpid. Use absolute paths, not
> relative ones.
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/18/2011 03:00 PM, Nithesh Shetty wrote:
>
> i have downloaded individual files from the below mentioned site
>
> http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/cpp/
>
> my qpid version is 0.10.
>
> but when i configure using wiht-qpid-checkout=path of above download folder
> it say does not appear to be a valid wpid checkout

What are you setting --with-qpid-checkout to? It should point to a 
checkout of the qpid code (*not* the store code). If you have qpid 0.10 
installed you may not need it, but if you do (which will be if there are 
headers needed that are not installed) you should set the path to the 
source from which you built qpid. Use absolute paths, not relative ones.

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
i have downloaded individual files from the below mentioned site

http://anonsvn.jboss.org/repos/rhmessaging/store/tags/qpid-0.10-release/cpp/

my qpid version is 0.10.

but when i configure using wiht-qpid-checkout=path of above download folder
it say does not appear to be a valid wpid checkout


--- On Mon, 7/18/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Monday, July 18, 2011, 1:53 PM
> On 07/18/2011 02:51 PM, Nithesh
> Shetty wrote:
> >
> >> Do you have a persistence plugin installed? (https://cwiki.apache.org/qpid/faq.html#FAQ-Persistence).
> >
> > Is there any other link from where i can download any
> tar file
> >
> > below the link u have mentioned. i have download
> individual files
> >
> >   http://anonsvn.jboss.org/repos/rhmessaging/store/trunk/cpp
> >
> > or is there any other way
> 
> No, at present you have to checkout the relevant revision
> (or tag) for 
> your broker from svn.
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/18/2011 02:51 PM, Nithesh Shetty wrote:
>
>> Do you have a persistence plugin installed? (https://cwiki.apache.org/qpid/faq.html#FAQ-Persistence).
>
> Is there any other link from where i can download any tar file
>
> below the link u have mentioned. i have download individual files
>
>   http://anonsvn.jboss.org/repos/rhmessaging/store/trunk/cpp
>
> or is there any other way

No, at present you have to checkout the relevant revision (or tag) for 
your broker from svn.

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


Re: qpid 0.8 queries

Posted by Nithesh Shetty <kn...@yahoo.com>.
> Do you have a persistence plugin installed? (https://cwiki.apache.org/qpid/faq.html#FAQ-Persistence).

Is there any other link from where i can download any tar file

below the link u have mentioned. i have download individual files

 http://anonsvn.jboss.org/repos/rhmessaging/store/trunk/cpp

or is there any other way 


--- On Tue, 7/12/11, Gordon Sim <gs...@redhat.com> wrote:

> From: Gordon Sim <gs...@redhat.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Tuesday, July 12, 2011, 12:02 PM
> On 07/12/2011 07:26 AM, Nithesh
> Shetty wrote:
> > MQ has a option of generating unique message id for
> all the messages
> > inserted in the queue and we can retrieve those
> messages from the
> > queue using the messageId. I have checked
> MessageProperties structure
> > in qpid. it has a field called messageid. But did not
> find any way of
> > generating unique message id while messageTransfer or
> getting the
> > message using message id.
> > Can you please provide any reference for it or any
> suggestion as i
> > need this functionality.
> 
> I believe the message id is generated by default, but you
> can control it via the setDisableMessageID() on the JMS
> MessageProducer interface.
> 
> You should be able to retrieve the id with
> Message.getJMSMessageID().
> 
> There is no direct support for accessing a message by id,
> but you should be able to use a selector to do so (standard
> JMS).
> 
> > When we close the broker all the queue created get
> deleted even after
> > specifying the option of durable while creating the
> queue.
> 
> Do you have a persistence plugin installed? (https://cwiki.apache.org/qpid/faq.html#FAQ-Persistence).
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

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


Re: qpid 0.8 queries

Posted by Gordon Sim <gs...@redhat.com>.
On 07/12/2011 07:26 AM, Nithesh Shetty wrote:
> MQ has a option of generating unique message id for all the messages
> inserted in the queue and we can retrieve those messages from the
> queue using the messageId. I have checked MessageProperties structure
> in qpid. it has a field called messageid. But did not find any way of
> generating unique message id while messageTransfer or getting the
> message using message id.
> Can you please provide any reference for it or any suggestion as i
> need this functionality.

I believe the message id is generated by default, but you can control it 
via the setDisableMessageID() on the JMS MessageProducer interface.

You should be able to retrieve the id with Message.getJMSMessageID().

There is no direct support for accessing a message by id, but you should 
be able to use a selector to do so (standard JMS).

> When we close the broker all the queue created get deleted even after
> specifying the option of durable while creating the queue.

Do you have a persistence plugin installed? 
(https://cwiki.apache.org/qpid/faq.html#FAQ-Persistence).


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