Just a second...

Example: Configuring topics for use with the JMS adapter

Use the topics element of the JMSAdapter.xml configuration file to define the Diffusion™ topics that the JMS adapter uses. These topics are created when the JMS adapter starts.

The following example shows the definitions for a stateless and a stateful topic:
<topics>
    <stateless name="example/updates/stateless"/>
    <stateful name="example/updates/stateful" initialState="rhubarb"/>
</topics>
  • The JMS adapter cannot create or use topics that are in a branch of the topic tree that is created by another publisher or client. For example, if example/updates already exists and was created by a Diffusion client, the JMS adapter cannot create and use example/updates/stateless.
  • Similarly, other clients and publishers cannot create or use topics in a branch of the topic tree that was created by the JMS adapter.
  • All stateful topics are created as binary topics.
  • Stateless topics are created as binary topics, with topic property DONT_RETAIN_VALUE set to true.
  • When defining a stateful topic, you must set the initial state of the topic.