[jira] Created: (AMQNET-137) Add support for redelivery policy

View: New views
10 Messages — Rating Filter:   Alert me  

[jira] Created: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Add support for redelivery policy
---------------------------------

                 Key: AMQNET-137
                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
             Project: ActiveMQ .Net
          Issue Type: New Feature
          Components: ActiveMQ Client
            Reporter: Mark Keenan
            Assignee: Jim Gomes
            Priority: Minor


It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:

http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/activemq/browse/AMQNET-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Gomes updated AMQNET-137:
-----------------------------

    Affects Version/s: 1.1
        Fix Version/s: 1.2

> Add support for redelivery policy
> ---------------------------------
>
>                 Key: AMQNET-137
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ Client
>    Affects Versions: 1.1
>            Reporter: Mark Keenan
>            Assignee: Jim Gomes
>            Priority: Minor
>             Fix For: 1.2
>
>
> It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:
> http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/activemq/browse/AMQNET-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49154#action_49154 ]

Allan Schrum commented on AMQNET-137:
-------------------------------------

Much of the supporting classes were added in support of the failover transport that would be needed to support this. State tracking, transacations, etc, so adding support for redelivery should be relatively easy. Failover uses these mechanisms to silently replay messages in the event of a transport failure. A similar process would be used to redeliver stuff to the client upon demand or rollback.

Before starting on this process, a clean review of the State (directory) code is in order.

> Add support for redelivery policy
> ---------------------------------
>
>                 Key: AMQNET-137
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ Client
>    Affects Versions: 1.1
>            Reporter: Mark Keenan
>            Assignee: Jim Gomes
>            Priority: Minor
>             Fix For: 1.2
>
>
> It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:
> http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/activemq/browse/AMQNET-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Gellings updated AMQNET-137:
---------------------------------

    Attachment: RedeliveryPolicyTest.cs
                RedeliveryPolicy.cs

Attached is a RedeliveryPolicy class and tests that we are using for redelivery policy logic.  The RedeliveryDelay method is a bit different than the java implementation as it takes in a redelivered counter.

We have integration tests as well.  They are not attached as they use a framework that sits on top of ActiveMQ NMS.  We can sort through them and code them so they are directly using ActiveMQ NMS if needed.

> Add support for redelivery policy
> ---------------------------------
>
>                 Key: AMQNET-137
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ Client
>    Affects Versions: 1.1.0
>            Reporter: Mark Keenan
>            Assignee: Jim Gomes
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: RedeliveryPolicy.cs, RedeliveryPolicyTest.cs
>
>
> It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:
> http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/activemq/browse/AMQNET-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54878#action_54878 ]

Mark Gellings commented on AMQNET-137:
--------------------------------------

Regarding redelivery policy, currently client acknowledgement mode will not redeliver a message.  There is no support of redeliveries.  Would it be stretching NMS too far to allow to configure for a mode that "does" redeliver messages when the session is in client acknowledgement mode?  If I understand correctly the redelivery logic is on the provider side and not the broker so perhaps this is possible.  Straying too far from the java implementation wouldn't be a good thing though so would like everyone's opinion...

Here is a discussion in the forum regarding the situation.

http://www.nabble.com/Transactions-and-redelivery-td25915300.html 

We have coded a solution to redelivery optimistically or pessimistically with client acknowledgement mode.  Optimistic will redeliver immediately before processing additional messages in the queue (like transactional acknowledgement mode).  The message will not get ack'd until it exhausts all possible redeliveries.  Pessimistic will simply clone the message, placing it at the end of the queue, and ack the current message.  It will embed some metadata into the message and only redeliver (clone the message) up to the max redelivery count on the redelivery policy.

Thoughts?

> Add support for redelivery policy
> ---------------------------------
>
>                 Key: AMQNET-137
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>    Affects Versions: 1.1.0
>            Reporter: Mark Keenan
>            Assignee: Jim Gomes
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: RedeliveryPolicy.cs, RedeliveryPolicyTest.cs
>
>
> It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:
> http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/activemq/browse/AMQNET-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish reassigned AMQNET-137:
-----------------------------------

    Assignee: Timothy Bish  (was: Jim Gomes)

> Add support for redelivery policy
> ---------------------------------
>
>                 Key: AMQNET-137
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>    Affects Versions: 1.1.0
>            Reporter: Mark Keenan
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: RedeliveryPolicy.cs, RedeliveryPolicyTest.cs
>
>
> It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:
> http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/activemq/browse/AMQNET-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55089#action_55089 ]

Timothy Bish commented on AMQNET-137:
-------------------------------------

I've committed my changes to add the Redelivery Policy to NMS and use it in NMS.ActiveMQ everything appears to be working am planning on more testing tomorrow.

> Add support for redelivery policy
> ---------------------------------
>
>                 Key: AMQNET-137
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>    Affects Versions: 1.1.0
>            Reporter: Mark Keenan
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: RedeliveryPolicy.cs, RedeliveryPolicyTest.cs
>
>
> It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:
> http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/activemq/browse/AMQNET-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQNET-137.
---------------------------------

    Resolution: Fixed

Resolved in trunk.

> Add support for redelivery policy
> ---------------------------------
>
>                 Key: AMQNET-137
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>    Affects Versions: 1.1.0
>            Reporter: Mark Keenan
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: RedeliveryPolicy.cs, RedeliveryPolicyTest.cs
>
>
> It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:
> http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/activemq/browse/AMQNET-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55182#action_55182 ]

Timothy Bish commented on AMQNET-137:
-------------------------------------

Mark

I've reviewed the discussion on the ClientAcknowledge redelivery and I don't really think we put something like this directly into NMS.  The only logic for redelivery in NMS.ActiveMQ that happens on the client side is for Transacted sessions.  Putting something like this Client Ack redelivery in something that seems better suited for a higher level.  This seems more like something that would belong in a Camel.NET project than it does here as it sounds as if it could apply to all the NMS providers.  

> Add support for redelivery policy
> ---------------------------------
>
>                 Key: AMQNET-137
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>    Affects Versions: 1.1.0
>            Reporter: Mark Keenan
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: RedeliveryPolicy.cs, RedeliveryPolicyTest.cs
>
>
> It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:
> http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AMQNET-137) Add support for redelivery policy

by JIRA jira+amqnet@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/activemq/browse/AMQNET-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55183#action_55183 ]

Mark Gellings commented on AMQNET-137:
--------------------------------------

That is fine Tim.  For now we have it in our own framework resting on top of NMS ActiveMQ.  Thanks for reviewing.  :)

> Add support for redelivery policy
> ---------------------------------
>
>                 Key: AMQNET-137
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-137
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>    Affects Versions: 1.1.0
>            Reporter: Mark Keenan
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: RedeliveryPolicy.cs, RedeliveryPolicyTest.cs
>
>
> It would be nice if we could set redelivery policy (similar to the Java client).  See this ActiveMQ mailing list thread for details:
> http://www.nabble.com/configuring-redelivery-with-NMS-td21714808.html#a21717670

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.