You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2009/12/16 15:23:56 UTC

[jira] Commented: (AMQNET-225) Make PrefetchPolicy a property of IConnection for easier unit testing against NMS ActiveMQ

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

Timothy Bish commented on AMQNET-225:
-------------------------------------

Prefetch is an ActiveMQ feature that's not really present in the other provides as far as I know.  I don't really want to throw all the ActiveMQ only stuff up into the NMS API as it will just create more confusion for others using the other NMS modules.  

As it stands now I've added a fix to the code in SVN to allow setting the prefetch value via the connection URI.  The URI would look something like this example from the unit tests.

{noformat}
            string uri2 = "activemq:tcp://${activemqhost}:61616" +

                          "?nms.PrefetchPolicy.queuePrefetch=112" +

                          "&nms.PrefetchPolicy.queueBrowserPrefetch=212" +

                          "&nms.PrefetchPolicy.topicPrefetch=312" +

                          "&nms.PrefetchPolicy.durableTopicPrefetch=412" +

                          "&nms.PrefetchPolicy.maximumPendingMessageLimit=512";

{noformat}




> Make PrefetchPolicy a property of IConnection for easier unit testing against NMS ActiveMQ
> ------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-225
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-225
>             Project: ActiveMQ .Net
>          Issue Type: Improvement
>          Components: NMS
>    Affects Versions: 1.2.0
>            Reporter: Mark Gellings
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> Make PrefetchPolicy a property of IConnection for easier unit testing against Apache.NMS.ActiveMQ.Connection class. 
> If a prefetch policy is set in code right now, the IConnection needs to be casted to Connection.  This breaks tests mocking a Connection with IConnection.  

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