Scheduling(delayed delivery) a message AMQP.NETLIBRARY broker: ActiveMQ Windows platform C#

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Scheduling(delayed delivery) a message AMQP.NETLIBRARY broker: ActiveMQ Windows platform C#

bittusrivastava
Hi,
I have seen that scheduling facility available in ActiveMQ. but i am using
amqp.netLibrary for sending messages on amqp protocol using broker activeMQ.
i tried to google as how i can schedule a message using amqp.net library.
but i didnt find any .
Please help me on this .

Thanks



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Reply | Threaded
Open this post in threaded view
|

Re: Scheduling(delayed delivery) a message AMQP.NETLIBRARY broker: ActiveMQ Windows platform C#

Tim Bain
If the library you use allows you to set custom headers on the AMQP
message, you should be able to set the headers described in
https://issues.apache.org/jira/browse/AMQ-6037 to send scheduled messages
over AMQP.

Tim

On Feb 9, 2018 3:18 AM, "bittusrivastava" <[hidden email]> wrote:

> Hi,
> I have seen that scheduling facility available in ActiveMQ. but i am using
> amqp.netLibrary for sending messages on amqp protocol using broker
> activeMQ.
> i tried to google as how i can schedule a message using amqp.net library.
> but i didnt find any .
> Please help me on this .
>
> Thanks
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>
Reply | Threaded
Open this post in threaded view
|

Re: Scheduling(delayed delivery) a message AMQP.NETLIBRARY broker: ActiveMQ Windows platform C#

bittusrivastava
Thanks for response. I couldn't find where i can set those header in AMQP.net
library.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Reply | Threaded
Open this post in threaded view
|

Re: Scheduling(delayed delivery) a message AMQP.NETLIBRARY broker: ActiveMQ Windows platform C#

tabish121@gmail.com
On 02/12/2018 01:58 AM, bittusrivastava wrote:
> Thanks for response. I couldn't find where i can set those header in AMQP.net
> library.
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>
They would be set in the MessageAnnotations on the message that you want
to be delayed

https://github.com/Azure/amqpnetlite/blob/master/src/Message.cs#L42


--
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply | Threaded
Open this post in threaded view
|

Re: Scheduling(delayed delivery) a message AMQP.NETLIBRARY broker: ActiveMQ Windows platform C#

bittusrivastava
Thanks for reply.
how to use MessageAnnotation. i tried reading documentation but couldn't
find any useful resource. for example if i have to set attribute
"x-opt-delivery-delay" how can we do it.

Thanks



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Reply | Threaded
Open this post in threaded view
|

Re: Scheduling(delayed delivery) a message AMQP.NETLIBRARY broker: ActiveMQ Windows platform C#

tabish121@gmail.com
On 02/14/2018 07:06 AM, bittusrivastava wrote:

> Thanks for reply.
> how to use MessageAnnotation. i tried reading documentation but couldn't
> find any useful resource. for example if i have to set attribute
> "x-opt-delivery-delay" how can we do it.
>
> Thanks
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>
How about looking at the source code, or the tests, like this one

https://github.com/Azure/amqpnetlite/blob/master/test/Common/LinkTests.cs#L411

Create MessageAnnotations and assign to your message and populate it
with the values needed.

--
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/