6.2.2. JNDI Properties for MRG Messaging

6.2.2. JNDI Properties for MRG Messaging

MRG Messaging supports the properties shown in the following table:

Property Purpose
connectionfactory.<jndiname>

The Connection URL that the connection factory will use to perform connections.

queue.<jndiname>

A JMS queue, which is implemented as an amq.direct exchange in MRG Messaging.

topic.<jndiname>

A JMS topic, which is implemented as an amq.topic exchange in MRG Messaging.

destination.<jndiname>

Can be used for defining all amq destinations, queues, topics and header matching, using a Binding URL (see next table).

Table 6.1. JNDI Properties supported by MRG Messaging

These properties can be serialized to or loaded from a JNDI properties file, such as this one:

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'