diff --git a/docs/user-manual/en/persistence.md b/docs/user-manual/en/persistence.md index d0e0a0a8c3..eb5cec481a 100644 --- a/docs/user-manual/en/persistence.md +++ b/docs/user-manual/en/persistence.md @@ -426,13 +426,13 @@ To configure Apache ActiveMQ Artemis to use a database for persisting messages a ```xml + org.apache.derby.jdbc.EmbeddedDriver jdbc:derby:data/derby/database-store;create=true BINDINGS_TABLE MESSAGE_TABLE MESSAGE_TABLE LARGE_MESSAGES_TABLE NODE_MANAGER_TABLE - org.apache.derby.jdbc.EmbeddedDriver ``` @@ -493,6 +493,7 @@ It is also possible to explicitly add the user and password rather than in the J ```xml + org.apache.derby.jdbc.EmbeddedDriver jdbc:derby:data/derby/database-store;create=true ENC(dasfn353cewc) ENC(ucwiurfjtew345) @@ -501,10 +502,39 @@ It is also possible to explicitly add the user and password rather than in the J MESSAGE_TABLE LARGE_MESSAGES_TABLE NODE_MANAGER_TABLE - org.apache.derby.jdbc.EmbeddedDriver ``` + +### Configuring JDBC connection pooling + +To configure Apache ActiveMQ Artemis to use a database with a JDBC connection pool +you need to set the data source properties, for example: +```xml + + + + + + + + + + BINDINGS + MESSAGES + LARGE_MESSAGES + PAGE_STORE + NODE_MANAGER_STORE + + +``` +You can find the documentation of the data source properties at https://commons.apache.org/proper/commons-dbcp/configuration.html. + +To mask the value of a property you can use the same procedure used to [mask passwords](masking-passwords.md). + +Please note that the reconnection works only if there is no client sending messages. Instead, if there is an attempt +to write to the journal's tables during the reconnection, then the broker will fail fast and shutdown. + ## Zero Persistence In some situations, zero persistence is sometimes required for a