KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > providers > jms > JmsConstants


1 /*
2  * $Id: JmsConstants.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.providers.jms;
12
13 import java.util.Arrays JavaDoc;
14 import java.util.Collections JavaDoc;
15 import java.util.HashSet JavaDoc;
16 import java.util.Set JavaDoc;
17
18 // @ThreadSafe
19
public class JmsConstants
20 {
21
22     public static final String JavaDoc JMS_SPECIFICATION_102B = "1.0.2b";
23     public static final String JavaDoc JMS_SPECIFICATION_11 = "1.1";
24
25     public static final String JavaDoc JMS_CORRELATION_ID = "JMSCorrelationID";
26     public static final String JavaDoc JMS_DELIVERY_MODE = "JMSDeliveryMode";
27     public static final String JavaDoc JMS_DESTINATION = "JMSDestination";
28     public static final String JavaDoc JMS_EXPIRATION = "JMSExpiration";
29     public static final String JavaDoc JMS_MESSAGE_ID = "JMSMessageID";
30     public static final String JavaDoc JMS_PRIORITY = "JMSPriority";
31     public static final String JavaDoc JMS_REDELIVERED = "JMSRedelivered";
32     public static final String JavaDoc JMS_REPLY_TO = "JMSReplyTo";
33     public static final String JavaDoc JMS_TIMESTAMP = "JMSTimestamp";
34     public static final String JavaDoc JMS_TYPE = "JMSType";
35
36     // QoS properties
37
public static final String JavaDoc TIME_TO_LIVE_PROPERTY = "timeToLive";
38     public static final String JavaDoc PERSISTENT_DELIVERY_PROPERTY = "persistentDelivery";
39     public static final String JavaDoc PRIORITY_PROPERTY = "priority";
40     public static final String JavaDoc JMS_SELECTOR_PROPERTY = "selector";
41     public static final String JavaDoc TOPIC_PROPERTY = "topic";
42     public static final String JavaDoc DURABLE_PROPERTY = "durable";
43     public static final String JavaDoc DURABLE_NAME_PROPERTY = "durableName";
44     public static final String JavaDoc CACHE_JMS_SESSIONS_PROPERTY = "cacheJmsSessions";
45
46     public static final Set JavaDoc JMS_PROPERTY_NAMES = Collections.unmodifiableSet(new HashSet JavaDoc(
47         Arrays.asList(new String JavaDoc[]{JMS_SPECIFICATION_102B, JMS_SPECIFICATION_11, JMS_CORRELATION_ID,
48             JMS_DELIVERY_MODE, JMS_DELIVERY_MODE, JMS_DESTINATION, JMS_EXPIRATION, JMS_MESSAGE_ID,
49             JMS_PRIORITY, JMS_REDELIVERED, JMS_REPLY_TO, JMS_TIMESTAMP, JMS_TYPE, JMS_SELECTOR_PROPERTY})));
50
51 }
52
Popular Tags