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: * @(#)JMSConstants.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;
030:
031: import java.util.logging.Level;
032:
033: /**
034: * This is a constants repository and is used by all JMS binding components
035: * running in the JBI container.
036: *
037: * @author Sun Microsystems Inc.
038: */
039: public interface JMSConstants {
040: /**
041: * Default Log Level.
042: */
043: Level DEFAULT_LOG_LEVEL = Level.INFO;
044:
045: /**
046: * Default Operation name.
047: */
048: String DEFAULT_OPERATION_NAME = "default";
049:
050: /**
051: * In_Only Pattern name.
052: */
053: String IN_ONLY_PATTERN = "http://www.w3.org/2004/03/wsdl/in-only";
054:
055: /**
056: * In_Optional_Out Pattern name.
057: */
058: String IN_OPTIONAL_OUT_PATTERN = "http://www.w3.org/2004/03/wsdl/in-opt-out";
059:
060: /**
061: * In_Out Pattern name.
062: */
063: String IN_OUT_PATTERN = "http://www.w3.org/2004/03/wsdl/in-out";
064:
065: /**
066: * Identifies the header name for propagating Fault / Error to JMS.
067: */
068: String JMS_FAULT_HEADER = "MESSAGE_STATUS";
069:
070: /**
071: * Identifies the Header key for MEP.
072: */
073: String JMS_HEADER_MEP = "MEP";
074:
075: /**
076: * Message context property which hold http response code.
077: */
078: String JMS_HEADER_OPERATION = "OPERATION";
079:
080: // List of Package Names.
081:
082: /**
083: * JMS Package Name.
084: */
085: String JMS_PACKAGE_NAME = "binding.jms";
086:
087: /**
088: * Package name for configuration classes.
089: */
090: String CONFIG_PACKAGE_NAME = JMS_PACKAGE_NAME + ".config";
091:
092: /**
093: *
094: */
095: String DEPLOY_PACKAGE_NAME = JMS_PACKAGE_NAME + ".deploy";
096:
097: /**
098: *
099: */
100: String HANDLER_PACKAGE_NAME = JMS_PACKAGE_NAME + ".handler";
101:
102: /**
103: *
104: */
105: String MONITORING_PACKAGE_NAME = JMS_PACKAGE_NAME + ".monitoring";
106:
107: /**
108: *
109: */
110: String MQ_PACKAGE_NAME = JMS_PACKAGE_NAME + ".mq";
111:
112: /**
113: * NEW_LINE_CHARACTER.
114: */
115: String NEW_LINE = System.getProperty("line.separator");
116:
117: /**
118: * Identifies header in the normalized message for correlation ID.
119: */
120: String NMS_CORRELATION_ID = "CORRELATION_ID";
121:
122: /**
123: * Message Context property which holds SOAP header information.
124: */
125: String NMS_HEADER_DELIVERY_MODE = "DELIVERY_MODE";
126:
127: /**
128: * Package name for classes handling outbound requests.
129: */
130: String OUTBOUND_PACKAGE_NAME = JMS_PACKAGE_NAME + ".outbound";
131:
132: /**
133: * Out_In Pattern name.
134: */
135: String OUT_IN_PATTERN = "http://www.w3.org/2004/03/wsdl/out-in";
136:
137: /**
138: * Out_Only Pattern name.
139: */
140: String OUT_ONLY_PATTERN = "http://www.w3.org/2004/03/wsdl/out-only";
141:
142: /**
143: * Out_In Pattern name.
144: */
145: String OUT_OPTIONAL_IN_PATTERN = "http://www.w3.org/2004/03/wsdl/out-opt-in";
146:
147: /**
148: * Property which holds the registry file location.
149: */
150: String REGISTRY_FILE_LOCATION = "REGISTRY_FILE_LOCATION";
151:
152: /**
153: * Property which holds the registry File Name, should be same as in config
154: * file.
155: */
156: String REGISTRY_FILE_NAME = "REGISTRY_FILE_NAME";
157:
158: /**
159: * Robust In_Only Pattern name.
160: */
161: String ROBUST_IN_ONLY_PATTERN = "http://www.w3.org/2004/03/wsdl/robust-in-only";
162:
163: /**
164: * Out_In Pattern name.
165: */
166: String ROBUST_OUT_ONLY_PATTERN = "http://www.w3.org/2004/03/wsdl/robust-out-only";
167:
168: /**
169: * Schema directory name.
170: */
171: String SCHEMA_DIR_NAME = "schema";
172:
173: /**
174: * Package name for thread framework.
175: */
176: String THREAD_PACKAGE_NAME = JMS_PACKAGE_NAME + ".threads";
177:
178: /**
179: * Package name for utility classes.
180: */
181: String UTIL_PACKAGE_NAME = JMS_PACKAGE_NAME + ".util";
182:
183: /**
184: * Default value for max threads.
185: */
186: int DEFAULT_MAX_THREADS = 10;
187:
188: /**
189: * Default value for min threads.
190: */
191: int DEFAULT_MIN_THREADS = 2;
192:
193: /**
194: * Default Thread sleep time in milliseconds.
195: */
196: int DEFAULT_THREAD_SLEEP_TIME = 100;
197:
198: /**
199: * Indicates that an endpoint has been deployed for the service URL and
200: * that engine has not activated the inbound service channel.
201: */
202: int ENGINE_NOT_RUNNING = 406;
203:
204: /**
205: * Indicates that the request message conforms to XML standards but not to
206: * SOAP standards.
207: */
208: int INVALID_REQUEST_MESSAGE = 412;
209:
210: /**
211: * Indicates that the message processing has been completed.
212: */
213: int JBI_DONE = 100;
214:
215: /**
216: * Indicates that an error has been set in the Message Exchange.
217: */
218: int JBI_ERROR = 103;
219:
220: /**
221: * Indicates that a fault has been set in the Message Exchange.
222: */
223: int JBI_FAULT = 102;
224:
225: /**
226: * Indicates that the message has been successfully processed.
227: */
228: int JBI_SUCCESS = 101;
229:
230: /**
231: * Default value of stop timeout.
232: */
233: long DEFAULT_STOP_TIMEOUT = 5000;
234: }
|