activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-5563) activemq-camel - Wrong default value in javadoc
Date Wed, 04 Feb 2015 09:28:34 GMT
Claus Ibsen created AMQ-5563:
--------------------------------

             Summary: activemq-camel - Wrong default value in javadoc
                 Key: AMQ-5563
                 URL: https://issues.apache.org/jira/browse/AMQ-5563
             Project: ActiveMQ
          Issue Type: Bug
          Components: activemq-camel
    Affects Versions: 5.11.0
            Reporter: Claus Ibsen
            Priority: Minor


In org.apache.activemq.camel.component.ActiveMQConfiguration

We have default values

    private boolean useSingleConnection = false;
    private boolean usePooledConnection = true;


And the javadoc says
{code}
    /**
     * Enables or disables whether a Spring {@link SingleConnectionFactory} will be used so
that when
     * messages are sent to ActiveMQ from outside of a message consuming thread, pooling will
be used rather
     * than the default with the Spring {@link JmsTemplate} which will create a new connection,
session, producer
     * for each message then close them all down again.
     * <p/>
     * The default value is true so that a single connection is used by default.
     *
     * @param useSingleConnection
     */
    public void setUseSingleConnection(boolean useSingleConnection) {
        this.useSingleConnection = useSingleConnection;
    }


    /**
     * Enables or disables whether a PooledConnectionFactory will be used so that when
     * messages are sent to ActiveMQ from outside of a message consuming thread, pooling will
be used rather
     * than the default with the Spring {@link JmsTemplate} which will create a new connection,
session, producer
     * for each message then close them all down again.
     * <p/>
     * The default value is false by default as it requires an extra dependency on commons-pool.
     */
    public void setUsePooledConnection(boolean usePooledConnection) {
        this.usePooledConnection = usePooledConnection;
    }
{code}

Notice the javadoc has wrong defaults. Its in fact pooled that is the default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message