001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019: package org.apache.axis2.transport.jms;
020:
021: import org.apache.axis2.Constants;
022: import org.apache.axis2.client.Options;
023:
024: import javax.xml.namespace.QName;
025:
026: public class JMSConstants {
027:
028: /**
029: * The prefix indicating an Axis JMS URL
030: */
031: public static final String JMS_PREFIX = "jms:/";
032:
033: /**
034: * The Parameter name indicating a JMS destination for requests
035: */
036: public static final String DEST_PARAM = "transport.jms.Destination";
037:
038: /**
039: * The Parameter name indicating the response JMS destination
040: */
041: public static final String REPLY_PARAM = "transport.jms.ReplyDestination";
042:
043: /**
044: * The Parameter name indicating the JMS destination type
045: */
046: public static final String DEST_TYPE_PARAM = "transport.jms.DestinationType";
047:
048: /**
049: * The Parameter name indicating the JMS destination type
050: */
051: public static final String DEST_TYPE_TOPIC = "Topic";
052:
053: /**
054: * The Parameter name indicating the JMS destination type
055: */
056: public static final String DEST_TYPE_QUEUE = "Queue";
057:
058: /**
059: * The Parameter name of an Axis2 service, indicating the JMS connection
060: * factory which should be used to listen for messages for it. This is
061: * the local (Axis2) name of the connection factory and not a JNDI name
062: */
063: public static final String CONFAC_PARAM = "transport.jms.ConnectionFactory";
064:
065: /**
066: * The Parameter name indicating the JMS connection factory JNDI name
067: */
068: public static final String CONFAC_JNDI_NAME_PARAM = "transport.jms.ConnectionFactoryJNDIName";
069:
070: /**
071: * The Parameter name indicating the JMS connection factory username (useful for WebsphereMQ CLIENT connections)
072: * n.b. This is not the actual username, it is the JNDI name of the variable that will hold the username
073: */
074: public static final String CONFAC_JNDI_NAME_USER = "transport.jms.ConnectionFactoryJNDIUser";
075:
076: /**
077: * The Parameter name indicating the JMS connection factory password (useful for WebsphereMQ CLIENT connections)
078: * n.b. This is not the actual password, it is the JNDI name of the variable that will hold the password
079: */
080: public static final String CONFAC_JNDI_NAME_PASS = "transport.jms.ConnectionFactoryJNDIPass";
081:
082: /**
083: * The Parameter name indicating the operation to dispatch non SOAP/XML messages
084: */
085: public static final String OPERATION_PARAM = "transport.jms.Operation";
086: /**
087: * The Parameter name indicating the wrapper element for non SOAP/XML messages
088: */
089: public static final String WRAPPER_PARAM = "transport.jms.Wrapper";
090: /**
091: * The default operation name to be used for non SOAP/XML messages
092: * if the operation cannot be determined
093: */
094: public static final QName DEFAULT_OPERATION = new QName(
095: "urn:mediate");
096: /**
097: * The name of the element which wraps non SOAP/XML content into a SOAP envelope
098: */
099: public static final QName DEFAULT_WRAPPER = new QName(
100: Constants.AXIS2_NAMESPACE_URI, "jmsMessage");
101:
102: /**
103: * The local (Axis2) JMS connection factory name of the default connection
104: * factory to be used, if a service does not explicitly state the connection
105: * factory it should be using by a Parameter named JMSConstants.CONFAC_PARAM
106: */
107: public static final String DEFAULT_CONFAC_NAME = "default";
108:
109: /**
110: * A MessageContext property or client Option stating the JMS message type
111: */
112: public static final String JMS_MESSAGE_TYPE = "JMS_MESSAGE_TYPE";
113: /**
114: * The message type indicating a BytesMessage. See JMS_MESSAGE_TYPE
115: */
116: public static final String JMS_BYTE_MESSAGE = "JMS_BYTE_MESSAGE";
117: /**
118: * The message type indicating a TextMessage. See JMS_MESSAGE_TYPE
119: */
120: public static final String JMS_TEXT_MESSAGE = "JMS_TEXT_MESSAGE";
121: /**
122: * A MessageContext property or client Option stating the JMS correlation id
123: */
124: public static final String JMS_COORELATION_ID = "JMS_COORELATION_ID";
125: /**
126: * A MessageContext property or client Option stating the time to wait for a response JMS message
127: */
128: public static final String JMS_WAIT_REPLY = "JMS_WAIT_REPLY";
129: /**
130: * The JMS message property specifying the SOAP Action
131: */
132: public static final String SOAPACTION = "SOAPAction";
133: /**
134: * The JMS message property specifying the content type
135: */
136: public static final String CONTENT_TYPE = "contentType";
137: /**
138: * The default JMS time out waiting for a reply
139: */
140: public static final long DEFAULT_JMS_TIMEOUT = Options.DEFAULT_TIMEOUT_MILLISECONDS;
141:
142: public static final String ACTIVEMQ_DYNAMIC_QUEUE = "dynamicQueues/";
143: public static final String ACTIVEMQ_DYNAMIC_TOPIC = "dynamicTopics/";
144: }
|