Now, you will build a simple bulletin board application. For this example, the bulletin board publisher program will generate 10 simple messages. The subscriber will be a Swing application that will display the messages as they arrive.
The bulletin board used a topic called jms/bulletinBoard. This must be created using the Configure Installation screen in deploytool or using j2eeadmin as follows:
j2eeadmin –addJMSDestination jms/bulletinBoard topic
The same mechanism is used to create a topic as a queue, so Listing 9.3 should appear very similar to that in the point-to-point receiver example, except that all references to a queue are replaced with topic.