concept more information in category activemq

appears as: more information
ActiveMQ in Action

This is an excerpt from Manning's book ActiveMQ in Action.

Again, the output has been truncated for brevity but this doesn’t change the fact that the consumer received 2,000 messages and shut itself down. At this time, both the consumer and the producer should be shut down, but the ActiveMQ broker is still running in the first terminal. Take a look at the first terminal again and you’ll see that ActiveMQ appears to not have budged at all. This is because the default logging configuration doesn’t output anything beyond what’s absolutely necessary. If you’d like to tweak the logging configuration to output more information as messages are sent and received, you can do so. Logging will be covered further in chapter 14.

Listing 8.20. An example jndi.properties file
# # This is an example jndi.properties file for use with ActiveMQ. To make use of # the locally available ActiveMQ JNDI provider place this file in the classpath # of the client application. # # # The java.naming.factory.initial property is a standard JNDI system # property # (http://java.sun.com/products/jndi/tutorial/beyond/env/context.html) # that is used to specify the InitialContextFactory implementation to # use. In this instance, the ActiveMQInitialContextFactory is used to # provide a locally available context factory. # java.naming.factory.initial = \ org.apache.activemq.jndi.ActiveMQInitialContextFactory # # The JNDI names for the connection factories to be registered in JNDI. # These are the name that should be used to lookup the connection # factories in JNDI. # connectionFactoryNames = remotePublisherConnectionFactory, \ remoteConsumerConnectionFactory # # Configure the connection factory for publishers. For more information # on available properties, see the ActiveMQConnectionFactory class. # connection.remotePublisherConnectionFactory.brokerURL = tcp://hostA:61616 connection.remotePublisherConnectionFactory.username = publisher connection.remotePublisherConnectionFactory.username = password # # Configure the connection factory for consumers. For more information # on available properties, see the ActiveMQConnectionFactory class. # connection.remoteConsumerConnectionFactory.username = tcp://hostA:61616 connection.remoteConsumerConnectionFactory.username = consumer connection.remoteConsumerConnectionFactory.username = password # # Define a JMS queue destination to be registered in JNDI. The format # for specifying JMS queue is queue.<logical name> = <physical name> # where <logical name> is whatever you like and <physical name> is the # actual queue name referenced by ActiveMQ. # queue.MyTestQueue = TEST.FOO # # Define a JMS topic destination to be registered in JNDI. The format for # specifying a JMS topic is topic.<logical name> = <physical name> where # <logical name> is whatever you like and <physical name> is the actual # topic name referenced by ActiveMQ. # topic.someTopicName = GREEN.DEMO.TOPIC