blob: 3e6b6aa354142c0ec0916c77141ab022f5b43058 [file] [log] [blame]
<div class="docbook"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">6.3.&#160;Topic</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="JMS-Client-0-8-JNDI-Properties-Format-Queue.html">Prev</a>&#160;</td><th align="center" width="60%">Chapter&#160;6.&#160;JNDI Properties Format</th><td align="right" width="20%">&#160;<a accesskey="n" href="JMS-Client-0-8-JNDI-Properties-Format-Destination.html">Next</a></td></tr></table><hr /></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="JMS-Client-0-8-JNDI-Properties-Format-Topic"></a>6.3.&#160;Topic</h2></div></div></div><p><code class="literal">topic.</code><span class="emphasis"><em>name</em></span> declares a <a class="link" href="http://docs.oracle.com/javaee/6/api/javax/jms/Topic.html" target="_top">Topic</a> with the given JNDI name. The
value is topic name. This topic name is used on the Broker as a binding key between the
<code class="literal">amq.topic</code> exchange and the queue corresponding to the topic
subscriber.</p><p>The <code class="literal">topic.</code> form is a short hand for declaring a destination:</p><pre class="screen">destination.name=topic://amq.topic/&lt;topic name&gt;/?routingkey=&lt;topic name&gt;</pre></div><div class="navfooter"><hr /><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="JMS-Client-0-8-JNDI-Properties-Format-Queue.html">Prev</a>&#160;</td><td align="center" width="20%"><a accesskey="u" href="JMS-Client-0-8-JNDI-Properties-Format.html">Up</a></td><td align="right" width="40%">&#160;<a accesskey="n" href="JMS-Client-0-8-JNDI-Properties-Format-Destination.html">Next</a></td></tr><tr><td align="left" valign="top" width="40%">6.2.&#160;Queue&#160;</td><td align="center" width="20%"><a accesskey="h" href="JMS-Client-Book.html">Home</a></td><td align="right" valign="top" width="40%">&#160;6.4.&#160;Destination</td></tr></table></div></div>