Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to use

...

the PropertiesFileInitialContextFactory

This ContextFactory uses a java properties file to setup initial values.

...

NOTE: This does not create the destination queue on the broker. You should ensure that you have created the destination queue before publishing to it. Destinations Queues can be declared in the virtualhosts.xml file so that they are created on broker startup, or created dynamically by consuming clients. Topics and other destinations that use temporary queues cannot be created in this way, so a consumer must be created first before publishing messages with mandatory routing.

Example lookup code

The bindingValue is the String that would be placed in <jndiname> above.

...