activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johndam...@apache.org
Subject [3/5] activemq-artemis git commit: ARTEMIS-601 some documentation changes around reload
Date Wed, 10 Aug 2016 23:56:15 GMT
ARTEMIS-601 some documentation changes around reload


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/1f9ca74f
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/1f9ca74f
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/1f9ca74f

Branch: refs/heads/master
Commit: 1f9ca74f01c7fada3fa1e53d6da3c2b7a417b3ee
Parents: 3099c4b
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Wed Aug 10 18:37:40 2016 -0400
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Wed Aug 10 18:38:14 2016 -0400

----------------------------------------------------------------------
 docs/user-manual/en/SUMMARY.md             |  1 +
 docs/user-manual/en/config-reload.md       | 13 +++++++++++++
 docs/user-manual/en/configuration-index.md |  1 +
 docs/user-manual/en/connection-ttl.md      | 17 ++++++++++++++++-
 4 files changed, 31 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/1f9ca74f/docs/user-manual/en/SUMMARY.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md
index 127dff0..57d83ab 100644
--- a/docs/user-manual/en/SUMMARY.md
+++ b/docs/user-manual/en/SUMMARY.md
@@ -17,6 +17,7 @@
 * [Filter Expressions](filter-expressions.md)
 * [Persistence](persistence.md)
 * [Configuring Transports](configuring-transports.md)
+* [Configuration Reload](config-reload.md)
 * [Detecting Dead Connections](connection-ttl.md)
 * [Detecting Slow Consumers](slow-consumers.md)
 * [Resource Manager Configuration](transaction-config.md)

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/1f9ca74f/docs/user-manual/en/config-reload.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/config-reload.md b/docs/user-manual/en/config-reload.md
new file mode 100644
index 0000000..50d9c25
--- /dev/null
+++ b/docs/user-manual/en/config-reload.md
@@ -0,0 +1,13 @@
+# Configuration Reload
+
+The system will perform a periodic check on the configuration files, configured by `configuration-file-refresh-period`,
with the default at 5000, in milliseconds.
+
+Once the configuration file is changed (broker.xml) the following modules will be reloaded
automatically:
+
+- Address Settings
+- Security Settings
+- JMS Queues
+- JMS Topics
+
+
+Notice: Queues and Topics won't be removed upon reload, given the risk of losing messages.
You may execute explicit CLI or Management operations to remove destinations.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/1f9ca74f/docs/user-manual/en/configuration-index.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/configuration-index.md b/docs/user-manual/en/configuration-index.md
index bf4461c..6660b5a 100644
--- a/docs/user-manual/en/configuration-index.md
+++ b/docs/user-manual/en/configuration-index.md
@@ -30,6 +30,7 @@ Name | Description
 [bindings-directory](persistence.md "Configuring the bindings journal")  | The folder in
use for the bindings folder
 [bridges](core-bridges.md "Core Bridges")  | [a list of bridge](#bridge-type)
 [broadcast-groups](clusters.md "Clusters")                                            | [a
list of broadcast-group](#broadcast-group-type)
+[configuration-file-refresh-period](config-reload.md) |  The frequency in milliseconds the
configuration file is checked for changes (default 5000)
 [check-for-live-server](ha.md)   |  Used for a live server to verify if there are other nodes
with the same ID on the topology
 [cluster-connections](clusters.md "Clusters") |  [a list of cluster-connection](#cluster-connection-type)
 [cluster-password](clusters.md "Clusters")                                              
                                               |   Cluster password. It applies to all cluster
configurations.

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/1f9ca74f/docs/user-manual/en/connection-ttl.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/connection-ttl.md b/docs/user-manual/en/connection-ttl.md
index f4b6738..7ab051c 100644
--- a/docs/user-manual/en/connection-ttl.md
+++ b/docs/user-manual/en/connection-ttl.md
@@ -69,6 +69,21 @@ finally
 }
 ```
 
+
+Or with using auto-closeable feature from Java, which can save a few lines of code:
+
+``` java
+
+
+try (
+     ActiveMQConnectionFactory jmsConnectionFactory = new ActiveMQConnectionFactory();
+     Connection jmsConnection = jmsConnectionFactory.createConnection())
+{
+   ... do some stuff with the connection...
+}
+```
+
+
 Unfortunately users don't always write well behaved applications, and
 sometimes clients just crash so they don't have a chance to clean up
 their resources!
@@ -205,4 +220,4 @@ thread adds a little more latency. These packets are:
 
 To disable asynchronous connection execution, set the parameter
 `async-connection-execution-enabled` in `broker.xml` to
-`false` (default value is `true`).
+`false` (default value is `true`).
\ No newline at end of file


Mime
View raw message