Topic administered objects

 

In the example, one of the Topic objects has been obtained from JNDI name space. This Topic is an administered object that has been created and administered in the JMSAdmin tool. Use this method of obtaining Topic objects because it ensures code portability.

To run the example application above, create the Topic called testT in JMSAdmin before running the application.

To create a Topic object, invoke the JMSAdmin tool, as described in Invoking the administration tool, and execute one of the following commands, depending on the type of connection you want to make to the broker:

Compatibility mode, or WebSphere MQ Publish/Subscribe

InitCtx> def t(testT) bver(V1) topic(test/topic)

Native mode, or direct connection to a broker

InitCtx> def t(testT) bver(V2) topic(test/topic)


uj24730_