Creating a TopicConnectionFactory

This example shows how to create a javax.jms.TopicConnectionFactory.
To be able to create a TopicConnectionFactory instance,
you’ll first need to instantiate a InitialContext object to look up the TopicConnectionFactory in the server’s naming service (JNDI tree).
The TopicConnectionFactory is used to create connections to a message server.
The behavior and attributes of the TopicConnectionFactory are configured by the system administrator of the messaging server.
Each vendor implements the the TopicConnectionFactory differently, so the configuration options may vary from one vendor to another.

Continue reading