Repository: tomee Updated Branches: refs/heads/tomee-1.7.x 8d324d7b7 -> b3d12cbd9
Remove table Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/b3d12cbd Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/b3d12cbd Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/b3d12cbd Branch: refs/heads/tomee-1.7.x Commit: b3d12cbd926af4588a8491692ac5d01cf036d252 Parents: 8d324d7 Author: Jonathan Gallimore <j...@jrg.me.uk> Authored: Wed Apr 15 22:39:10 2015 +0100 Committer: Jonathan Gallimore <j...@jrg.me.uk> Committed: Wed Apr 15 22:39:10 2015 +0100 ---------------------------------------------------------------------- examples/resources-jmx-example/README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/b3d12cbd/examples/resources-jmx-example/README.md ---------------------------------------------------------------------- diff --git a/examples/resources-jmx-example/README.md b/examples/resources-jmx-example/README.md index 9a76cd2..595d331 100644 --- a/examples/resources-jmx-example/README.md +++ b/examples/resources-jmx-example/README.md @@ -241,11 +241,19 @@ Resources are typically discovered, created, and bound to JNDI very early on in The following properties can be used to change this behavior. -| Property | Values | Description | -| -------------------------- | ---------------- | ----------- | -| Lazy | true/false | Creates a proxy that defers the actual instantiation of the resource until the first time it is looked up from JNDI. | -| UseAppClassLoader | true/false | Forces a lazily instantiated resource to use the application classloader, instead of the classloader available when the resources were first processed. | -| InitializeAfterDeployment | true/false | Forces a resource created with the Lazy property to be instantiated once the application has started, as opposed to waiting for it to be looked up. | +* Lazy + +This is a boolean value, which when true, creates a proxy that defers the actual instantiation of the resource until the first time it is looked up from JNDI. This can be useful if the resource's classpath until the application is started (see below), or to improve startup time by not fully initializing resources that might not be used. + +* UseAppClassLoader + +This boolean value forces a lazily instantiated resource to use the application classloader, instead of the classloader available when the resources were first processed. + +* InitializeAfterDeployment + +This boolean setting forces a resource created with the Lazy property to be instantiated once the application has started, as opposed to waiting for it to be looked up. Use this flag if you require the resource to be loaded, irrespective of whether it is injected into a managed component or manually looked up. + +By default, all of these settings are `false`, unless TomEE encounters a custom application resource that cannot be instantiated until the application has started. In this case, it will set these three flags to `true`, unless the `Lazy` flag has been explicitly set. By default, if TomEE encounters a custom application resource that cannot be instantiated until the application has started, it will set these three flags to `true`, unless the `Lazy` flag has been explicitly set.