001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)ConfigConstants.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.binding.jms.config;
030:
031: import java.io.File;
032:
033: /**
034: * This class holds all the information used for deployment in JMS
035: * binding.
036: *
037: * @author Sun Microsystems Inc.
038: */
039: public interface ConfigConstants {
040: /**
041: * String for provider role.
042: */
043: String PROVIDER_STRING = "provider";
044:
045: /**
046: * The name of the jbi schema file for jbi.xml in an SU.
047: */
048: String JBI_SCHEMA_FILE = "jbi.xsd";
049:
050: /**
051: * String representing the namespace-uri in a QName.
052: */
053: String NAMESPACE_URI = "namespace-uri";
054:
055: /**
056: * String representing the local-part in a QName.
057: */
058: String LOCAL_PART = "local-part";
059:
060: /**
061: * String representing a name.
062: */
063: String NAME = "name";
064:
065: /**
066: * String for consumer role.
067: */
068: String CONSUMER_STRING = "consumer";
069:
070: /**
071: * Role of endpoint.
072: */
073: int CONSUMER = 0;
074:
075: /**
076: * Role of endpoint.
077: */
078: int PROVIDER = 1;
079:
080: /**
081: * String representing an interface.
082: */
083: String INTERFACE = "interface";
084:
085: /**
086: * String representing an interface namespace.
087: */
088: String INTERFACE_NAMESPACE = "INTERFACE_NAMESPACE";
089:
090: /**
091: * String representing an interface local name.
092: */
093: String INTERFACE_LOCALNAME = "INTERFACE_LOCALNAME";
094:
095: /**
096: * Connection string.
097: */
098: String CONNECTION = "connection";
099:
100: /**
101: * Connection factory name in the XMl file.
102: */
103: String CONNECTION_FACTORY = "connection-factory-name";
104:
105: /**
106: * Connection params tag in the config file.
107: */
108: String CONNECTION_PARAMS = "connection-params";
109:
110: /**
111: * Connection password tag in config file.
112: */
113: String CONNECTION_PASSWORD = "connection-password";
114:
115: /**
116: * Connection user name in the config file.
117: */
118: String CONNECTION_USER_ID = "connection-user-name";
119:
120: /**
121: * Default value for durability.
122: */
123: String DEFAULT_DURABILITY = "non-durable";
124:
125: /**
126: * Default value for input message type.
127: */
128: String DEFAULT_INPUT_MESSAGE_TYPE = "TextMessage";
129:
130: /**
131: * Default value for output message type.
132: */
133: String DEFAULT_OUTPUT_MESSAGE_TYPE = "TextMessage";
134:
135: /**
136: * Deployment id.
137: */
138: String DEPLOYMENTID = "deployment-id";
139:
140: /**
141: * Deploy folder.
142: */
143: String DEPLOY_FOLDER = File.separator + "system" + File.separator
144: + "deployment" + File.separator;
145:
146: /**
147: * The name of the configuration file.
148: */
149: String DEPL_CONFIG_FILE_NAME = "endpoints.xml";
150:
151: /**
152: * The name of the schema file.
153: */
154: String DEPL_CONFIG_SCHEMA_FILE = "endpoints.xsd";
155:
156: /**
157: * Destination name in XML file.
158: */
159: String DESTINATION_NAME = "destination-name";
160:
161: /**
162: * Destination style in XML file.
163: */
164: String DESTINATION_STYLE = "destination-style";
165:
166: /**
167: * Durability tag in XML file.
168: */
169: String DURABILITY = "durability";
170:
171: /**
172: * String representing Durable message.
173: */
174: String DURABLE = "DURABLE";
175:
176: /**
177: * The element name for endpoint in the XML config file.
178: */
179: String ENDPOINT = "endpoint";
180:
181: /**
182: * The element name for endpoint name in the XML config file.
183: */
184: String ENDPOINTNAME = "endpoint-name";
185:
186: /**
187: * The element name for endpoint type in the XML config file.
188: */
189: String ENDPOINT_TYPE = "endpoint-role";
190:
191: /**
192: * Input message type.
193: */
194: String INPUT_MESSAGE_TYPE = "input-message-type";
195:
196: /**
197: * In Only MEP.
198: */
199: String IN_ONLY = "http://www.w3.org/ns/wsdl/in-only";
200:
201: /**
202: * In Optional Out MEP.
203: */
204: String IN_OPTIONAL_OUT = "http://www.w3.org/ns/wsdl/in-opt-out";
205:
206: /**
207: * In Out MEP.
208: */
209: String IN_OUT = "http://www.w3.org/ns/wsdl/in-out";
210:
211: /**
212: * In Only MEP.
213: */
214: String OUT_ONLY = "http://www.w3.org/ns/wsdl/out-only";
215:
216: /**
217: * In Optional Out MEP.
218: */
219: String OUT_OPTIONAL_IN = "http://www.w3.org/ns/wsdl/out-opt-in";
220:
221: /**
222: * In Out MEP.
223: */
224: String OUT_IN = "http://www.w3.org/ns/wsdl/out-in";
225:
226: /**
227: * Config file name.
228: */
229: String JMS_CONFIG_FILE_NAME = File.separator + "jms_config.xml";
230:
231: /**
232: * Deploy file schema.
233: */
234: String JMS_DEPLOY_SCHEMA_FILE = File.separator + "schema"
235: + File.separator + "endpoints.xsd";
236: /**
237: * Schema file for the config XML.
238: */
239: String JMS_CONFIG_FILE_SCHEMA = File.separator + "schema"
240: + File.separator + "jms_config.xsd";
241: /**
242: * Schema file for the DD, given by JBI specificatrion.
243: */
244:
245: String JMS_DD_FILE_SCHEMA = File.separator + "schema"
246: + File.separator + "jbi.xsd";
247: /**
248: * Namespace for JMS binding. This is also the binding type.
249: */
250: String JMS_NAMESPACE = "http://sun.com/jbi/wsdl/jms10";
251:
252: /**
253: * Work manager for JMS binding.
254: */
255: String JMS_WORK_MANAGER = "JMS_WORK_MANAGER";
256:
257: /**
258: * The element name for MEP in the XML config file.
259: */
260: String MEP = "mep";
261:
262: /**
263: * Message selector.
264: */
265: String MESSAGE_SELECTOR = "message-selector";
266:
267: /**
268: * Message type.
269: */
270: String MESSAGE_TYPE = "message-type";
271:
272: /**
273: * Work Manager for requests from NMR.
274: */
275: String NMS_WORK_MANAGER = "NMS_WORK_MANAGER";
276:
277: /**
278: * Represents a non-durbale message.
279: */
280: String NON_DURABLE = "NON_DURABLE";
281:
282: /**
283: * The element name for operastion in the XML config file.
284: */
285: String OPERATION = "operation";
286:
287: /**
288: * Operation name.
289: */
290: String OPERATION_NAME = "name";
291:
292: /**
293: * Namespace for operation.
294: */
295: String OPERATION_NAMESPACE = "namespace";
296:
297: /**
298: * output message type in deployment file.
299: */
300: String OUTPUT_MESSAGE_TYPE = "output-message-type";
301:
302: /**
303: * Queue.
304: */
305: String QUEUE_STRING = "Queue";
306:
307: /**
308: * Reply to in a deployment file.
309: */
310: String REPLY_TO = "reply-to";
311:
312: /**
313: * Robust In Only MEP.
314: */
315: String ROBUST_IN_ONLY = "http://www.w3.org/ns/wsdl/robust-in-only";
316:
317: /**
318: * Robust out Only MEP.
319: */
320: String ROBUST_OUT_ONLY = "http://www.w3.org/ns/wsdl/robust-out-only";
321:
322: /**
323: * Service.
324: */
325: String SERVICE = "service";
326:
327: /**
328: * The element name for service name in the XML config file.
329: */
330: String SERVICENAME = "service-name";
331:
332: /**
333: * Service namespace value used internally.
334: */
335: String SERVICE_NAMESPACE = "service-namespace";
336:
337: /**
338: * Target namespace.
339: */
340: String TARGET_NAMESPACE = "targetNamespace";
341:
342: /**
343: * Time to live tag in deployment file.
344: */
345: String TIME_TO_LIVE = "time-to-live";
346:
347: /**
348: * Topic.
349: */
350: String TOPIC_STRING = "Topic";
351:
352: /**
353: * WSDL file name for the deployment.
354: */
355: String WSDL_FILE_NAME = "endpoints.wsdl";
356:
357: /**
358: * Integer value for a Queue.
359: */
360: int QUEUE = 0;
361:
362: /**
363: * Integer value for a topic.
364: */
365: int TOPIC = 1;
366:
367: /**
368: * Deployment descriptor file.
369: */
370: public String DEPLOY_DESCRIPTOR = "jbi.xml";
371: }
|