You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/02/04 10:28:34 UTC
[jira] [Created] (AMQ-5563) activemq-camel - Wrong default value in
javadoc
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)