Java CAPS JMS Reference

Message Producer Priorities

Sun Enterprise Service Bus enables you to set message priorities for topic publishers and queue senders. The priority is specified at the JMS client level; therefore, the level you specify causes all messages produced by that client to have that same priority level, unless overridden for a specific Collaboration. For example, if you set the priority level to 2, all messages sent by that client have message priority level 2. The default message priority is 4.

The Sun Enterprise Service Bus message priority implementation adheres to the recommended standards in the Java Specification: in most circumstances, messages with higher priorities are delivered before message with lower priorities.

For information about setting the priority level for topic publishers and queue senders, refer to Priority.

You can also specify message priorities in specific Collaboration Definitions with the Collaboration Definition Editor. Collaboration message priorities override message priorities specified at the JMS client level.