6.4.2. JNDI Properties

6.4.2. JNDI Properties

The examples in this section all use the following JNDI properties. The connection factory URL includes the password, user name, and host address. The destination declares a queue bound to the routing key routing_key.

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.directQueue = direct://amq.direct//message_queue?routingkey='routing_key'