A JMS template provides an efficient means of defining multiple JMS queues and topics with similar configuration settings. Instead of re-entering configuration settings each time you define a new queue or topic, you can use a template and override the settings for which you want to assign a new value.
Once you configure a JMS template, you can select it from within a queue or topic resource.
After creating a basic JMS template, you can define a number of optional properties for destinations that use the template:
Configuring optional General JMS template properties includes selecting a destination key for sorting messages as they arrive on destinations.
Configuring optional Advanced template properties includes specifying message unit-of-order parameters, attaching the credentials of message senders, or defining message unit-of-work parameters.
Define upper and lower byte and/or message thresholds for destinations, select a pre-configured quota specifying the maximum number of bytes or messages that destinations are allowed to store, or specify a maximum size allowed for messages on destinations.
Define message delivery override values, such as message priority and time-to-deliver values, that can override those specified by a message producer.
Enable the logging of message life cycle information into a JMS message log file. The content of the message log always includes message ID and correlation ID, but you can also configure information like message type and user properties.
Define default message delivery failure values, such as defining a message redelivery limit, selecting a message expiration policy, and specifying an error destination for expired messages.
For topics only, define multicast parameters that enable the delivery of messages to a select group of hosts that subsequently forward the messages to subscribers.
Define a subdeployment for all error destinations associated with the template.