1 16 17 package org.apache.axis.transport.jms; 18 19 import javax.jms.DeliveryMode ; 20 import javax.jms.Message ; 21 import javax.jms.Session ; 22 23 38 39 public interface JMSConstants 40 { 41 public final static String PROTOCOL = "jms"; 42 43 final static String _WAIT_FOR_RESPONSE = "waitForResponse"; 46 final static String _CLIENT_ID = "clientID"; 47 final static String _VENDOR = "vendor"; 48 final static String _DOMAIN = "domain"; 49 final static String _JMS_CORRELATION_ID = "jmsCorrelationID"; 50 final static String _JMS_CORRELATION_ID_AS_BYTES = "jmsCorrelationIDAsBytes"; 51 final static String _JMS_TYPE = "jmsType"; 52 final static String _TIME_TO_LIVE = "ttl"; 53 final static String _PRIORITY = "priority"; 54 final static String _DELIVERY_MODE = "deliveryMode"; 55 final static String _MESSAGE_SELECTOR = "messageSelector"; 56 final static String _ACKNOWLEDGE_MODE = "acknowledgeMode"; 57 final static String _SUBSCRIPTION_NAME = "subscriptionName"; 58 final static String _UNSUBSCRIBE = "unsubscribe"; 59 final static String _NO_LOCAL = "noLocal"; 60 final static String _NUM_RETRIES = "numRetries"; 61 final static String _NUM_SESSIONS = "numSessions"; 62 final static String _CONNECT_RETRY_INTERVAL = "connectRetryInterval"; 63 final static String _INTERACT_RETRY_INTERVAL = "interactRetryInterval"; 64 final static String _TIMEOUT_TIME = "timeoutTime"; 65 final static String _MIN_TIMEOUT_TIME = "minTimeoutTime"; 66 69 final static String _MSG_PROP_PREFIX = "msgProp."; 70 71 public static String JMS_PROPERTY_PREFIX = "transport.jms."; 72 73 82 final static String WAIT_FOR_RESPONSE = JMS_PROPERTY_PREFIX + _WAIT_FOR_RESPONSE; 83 84 92 final static String CLIENT_ID = JMS_PROPERTY_PREFIX + _CLIENT_ID; 93 94 final static String DESTINATION = JMS_PROPERTY_PREFIX + "Destination"; 96 97 final static String VENDOR = JMS_PROPERTY_PREFIX + _VENDOR; 98 public final static String JNDI_VENDOR_ID = "JNDI"; 99 100 final static String DOMAIN = JMS_PROPERTY_PREFIX + _DOMAIN; 101 102 final static String DOMAIN_QUEUE = "QUEUE"; 103 final static String DOMAIN_TOPIC = "TOPIC"; 104 final static String DOMAIN_DEFAULT = DOMAIN_QUEUE; 105 106 112 final static String JMS_CORRELATION_ID = JMS_PROPERTY_PREFIX + _JMS_CORRELATION_ID; 113 119 final static String JMS_CORRELATION_ID_AS_BYTES = JMS_PROPERTY_PREFIX + _JMS_CORRELATION_ID_AS_BYTES; 120 126 final static String JMS_TYPE = JMS_PROPERTY_PREFIX + _JMS_TYPE; 127 133 final static String TIME_TO_LIVE = JMS_PROPERTY_PREFIX + _TIME_TO_LIVE; 134 140 final static String PRIORITY = JMS_PROPERTY_PREFIX + _PRIORITY; 141 148 final static String DELIVERY_MODE = JMS_PROPERTY_PREFIX + _DELIVERY_MODE; 149 150 final static String DELIVERY_MODE_PERSISTENT = "Persistent"; 151 final static String DELIVERY_MODE_NONPERSISTENT = "Nonpersistent"; 152 final static String DELIVERY_MODE_DISCARDABLE = "Discardable"; 153 final static int DEFAULT_DELIVERY_MODE = DeliveryMode.NON_PERSISTENT; 154 155 final static int DEFAULT_PRIORITY = Message.DEFAULT_PRIORITY; 156 final static long DEFAULT_TIME_TO_LIVE = Message.DEFAULT_TIME_TO_LIVE; 157 158 164 final static String MESSAGE_SELECTOR = JMS_PROPERTY_PREFIX + _MESSAGE_SELECTOR; 165 173 final static String ACKNOWLEDGE_MODE = JMS_PROPERTY_PREFIX + _ACKNOWLEDGE_MODE; 174 175 179 final static int DEFAULT_ACKNOWLEDGE_MODE = Session.DUPS_OK_ACKNOWLEDGE; 180 181 187 final static String SUBSCRIPTION_NAME = JMS_PROPERTY_PREFIX + _SUBSCRIPTION_NAME; 188 195 final static String UNSUBSCRIBE = JMS_PROPERTY_PREFIX + _UNSUBSCRIBE; 196 201 final static String NO_LOCAL = JMS_PROPERTY_PREFIX + _NO_LOCAL; 202 203 final static boolean DEFAULT_NO_LOCAL = false; 204 final static boolean DEFAULT_UNSUBSCRIBE = false; 205 206 211 final static String NUM_RETRIES = JMS_PROPERTY_PREFIX + _NUM_RETRIES; 212 217 final static String NUM_SESSIONS = JMS_PROPERTY_PREFIX + _NUM_SESSIONS; 218 223 final static String CONNECT_RETRY_INTERVAL = JMS_PROPERTY_PREFIX + _CONNECT_RETRY_INTERVAL; 224 229 final static String INTERACT_RETRY_INTERVAL = JMS_PROPERTY_PREFIX + _INTERACT_RETRY_INTERVAL; 230 235 final static String TIMEOUT_TIME = JMS_PROPERTY_PREFIX + _TIMEOUT_TIME; 236 241 final static String MIN_TIMEOUT_TIME = JMS_PROPERTY_PREFIX + _MIN_TIMEOUT_TIME; 242 243 final static int DEFAULT_NUM_RETRIES = 5; 244 final static int DEFAULT_NUM_SESSIONS = 5; 245 246 final static long DEFAULT_CONNECT_RETRY_INTERVAL = 2000; 247 final static long DEFAULT_TIMEOUT_TIME = 5000; 248 final static long DEFAULT_MIN_TIMEOUT_TIME = 1000; 249 final static long DEFAULT_INTERACT_RETRY_INTERVAL = 250; 250 251 final static String CONNECTOR = JMS_PROPERTY_PREFIX + "Connector"; 253 254 final static String VENDOR_ADAPTER = JMS_PROPERTY_PREFIX + "VendorAdapter"; 256 257 final static String JMS_URL = JMS_PROPERTY_PREFIX + "EndpointAddress"; 259 260 263 final static String JMS_APPLICATION_MSG_PROPS = 264 JMS_PROPERTY_PREFIX + "msgProps"; 265 266 final static String ADAPTER_POSTFIX = "VendorAdapter"; 267 } | Popular Tags |