activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-406) enable the configuration of prefetch policies in the JNDI configuration file by allowing the prefetch values to be visible as properties on ActiveMQConnectionFactory
Date Sat, 01 Jul 2006 18:10:51 GMT
    [ https://issues.apache.org/activemq/browse/AMQ-406?page=comments#action_36488 ] 

Hiram Chirino commented on AMQ-406:
-----------------------------------

Fixed in trunk rev 418495.

You can now configure the prefetchPolicy and redeliveryPolicy using the jndi properties. 
For example:

        properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.activemq.jndi.ActiveMQInitialContextFactory");
        properties.put(Context.PROVIDER_URL, "tcp://localhost:65432");
        properties.put("prefetchPolicy.queuePrefetch", "777");
        properties.put("redeliveryPolicy.maximumRedeliveries", "15");
        properties.put("redeliveryPolicy.backOffMultiplier", "32");
        InitialContext context = new InitialContext(properties);

You can also do it using the Broker URL:

    new ActiveMQConnectionFactory("tcp://localhost:61616?jms.redeliveryPolicy.maximumRedeliveries=15");


> enable the configuration of prefetch policies in the JNDI configuration file by allowing
the prefetch values to be visible as properties on ActiveMQConnectionFactory
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AMQ-406
>          URL: https://issues.apache.org/activemq/browse/AMQ-406
>      Project: ActiveMQ
>         Type: Improvement

>     Reporter: james strachan
>      Fix For: 4.1

>
>
> if we delegate all the properties on PrefetchPolicy as basisc properties on ActiveMQConnectionFactory
we can configue the values in JNDI. e.g. in jndi.properties
> ConnectionFactory.queuePrefetch = 100
> which would call ActiveMQConnectionFactory.setQueuePrefetch(100) => prefetchPolicy.setQueuePrefetch(100)
etc

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message