6.5.2. JNDI Properties

6.5.2. JNDI Properties

The fanout exchange routes every message to every queue that is bound to it. This application uses the following JNDI properties file:

java.naming.factory.initial = org.apache.qpid.jndi.PropertiesFileInitialContextFactory


# register some connection factories
# connectionfactory.[jndiname] = [ConnectionURL]
connectionfactory.qpidConnectionfactory = amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672'

# Register an AMQP destination in JNDI
# destination.[jniName] = [BindingURL]
destination.fanoutQueue1 = fanout://amq.fanout//message_queue1
destination.fanoutQueue2 = fanout://amq.fanout//message_queue2
destination.fanoutQueue3 = fanout://amq.fanout//message_queue3

# for producer
destination.fanoutQueue = fanout://amq.fanout//message_queue