You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jim Gomes (JIRA)" <ji...@apache.org> on 2011/03/11 21:47:59 UTC

[jira] Issue Comment Edited: (AMQNET-318) Add support for an "all" prefetch policy setting

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

Jim Gomes edited comment on AMQNET-318 at 3/11/11 8:46 PM:
-----------------------------------------------------------

Looks like there is away of doing what I was asking for, but it was non-obvious.  The following will set all of the prefetch policies at once:

session.PrefetchSize=50

This seems disjointed from the other prefetchPolicy settings that are set via the nms.prefetchPolicy setting, and actually seems quite dangerous because the implementation of it affects the connection's prefetch settings, not just that session's.

      was (Author: jgomes):
    Looks like there is away of doing what I was asking for, but it was non-obvious.  The following will set all of the prefetch policies at once:

session.PrefetchSize=50

This seems disjointed from the other prefetchPolicy settings that are set via the nms.prefetchPolicy setting.
  
> Add support for an "all" prefetch policy setting
> ------------------------------------------------
>
>                 Key: AMQNET-318
>                 URL: https://issues.apache.org/jira/browse/AMQNET-318
>             Project: ActiveMQ .Net
>          Issue Type: Improvement
>          Components: ActiveMQ
>    Affects Versions: 1.5.0
>         Environment: .NET 2.x, .NET 3.x, .NET 4.x
>            Reporter: Jim Gomes
>            Assignee: Jim Gomes
>            Priority: Minor
>             Fix For: 1.5.1
>
>
> The connection setting for nms.prefetchPolicy is missing a convenient way to set all of the prefetch destination policies.  The Java client supports the following syntax:
> jms.prefetchPolicy.all=50
> To accomplish the same thing in NMS, you must do the following:
> nms.prefetchPolicy.queuePrefetch=50&nms.prefetchPolicy.queueBrowserPrefetch=50&nms.prefetchPolicy.topicPrefetch=50&nms.prefetchPolicy.durableTopicPrefetch=50
> There is currently a SetAll() API function, but no way to set all prefetch policies via the URI string.  We should add support that mirrors the simplified syntax of the Java client like so:
> nms.prefetchPolicy.all=50

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira