From bf4a72e96682c6dd78e84f59cf30c4a65adccc9b Mon Sep 17 00:00:00 2001 From: Toby Crawley Date: Thu, 19 Nov 2015 12:24:14 -0500 Subject: [PATCH] Fix JNDI examples in messaging doc [IMMUTANT-596] We do now require a JNDI entry of a specific form for destinations that are specified via the xml or api configuration. --- docs/guides/messaging.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/guides/messaging.md b/docs/guides/messaging.md index bf36b3e4..6673f603 100644 --- a/docs/guides/messaging.md +++ b/docs/guides/messaging.md @@ -276,7 +276,7 @@ with comments showing the Clojure code required to reference each one: - + @@ -284,10 +284,12 @@ with comments showing the Clojure code required to reference each one: ``` -Note that while WildFly does require an `` element for each -destination, the Immutant client ignores it: the name you pass to -[[queue]] or [[topic]] directly corresponds to the `name` attribute of -`` or ``, respectively. +Note that Immutant looks the destination up via JNDI, so you must have +an entry of the same form as those given above. Also note that if the +name of the destination starts with `/`, you must include a `_` +segment in the JNDI names, as JNDI does not allow blank +segments. Immutant will insert the `_` when looking up or creating +destination entries where the name starts with `/`. ## Context modes