Skip to content

Commit

Permalink
Fix JNDI examples in messaging doc [IMMUTANT-596]
Browse files Browse the repository at this point in the history
We do now require a JNDI entry of a specific form for destinations that
are specified via the xml or api configuration.
  • Loading branch information
tobias committed Nov 19, 2015
1 parent bd7545d commit bf4a72e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/guides/messaging.md
Expand Up @@ -276,18 +276,20 @@ with comments showing the Clojure code required to reference each one:

<!-- (topic "/foo/bar") -->
<jms-topic name="/foo/bar">
<entry name="java:/jms/topic/anything/really/foo/bar"/>
<entry name="java:/jms/topic/_/foo/bar"/>
</jms-topic>

</jms-destinations>
</hornetq-server>
</subsystem>
```

Note that while WildFly does require an `<entry>` element for each
destination, the Immutant client ignores it: the name you pass to
[[queue]] or [[topic]] directly corresponds to the `name` attribute of
`<jms-queue>` or `<jms-topic>`, 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

Expand Down

0 comments on commit bf4a72e

Please sign in to comment.