001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.wls;
017:
018: import java.math.BigInteger;
019: import javax.xml.bind.annotation.XmlAccessType;
020: import javax.xml.bind.annotation.XmlAccessorType;
021: import javax.xml.bind.annotation.XmlAttribute;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlID;
024: import javax.xml.bind.annotation.XmlType;
025: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027:
028: /**
029: * <p>Java class for message-driven-descriptor complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="message-driven-descriptor">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="pool" type="{http://www.bea.com/ns/weblogic/90}pool" minOccurs="0"/>
039: * <element name="timer-descriptor" type="{http://www.bea.com/ns/weblogic/90}timer-descriptor" minOccurs="0"/>
040: * <choice>
041: * <sequence>
042: * <element name="resource-adapter-jndi-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
043: * </sequence>
044: * <sequence>
045: * <choice>
046: * <sequence>
047: * <element name="destination-jndi-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
048: * <element name="initial-context-factory" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
049: * <element name="provider-url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
050: * <element name="connection-factory-jndi-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
051: * </sequence>
052: * <sequence>
053: * <element name="destination-resource-link" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
054: * <element name="connection-factory-resource-link" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
055: * </sequence>
056: * </choice>
057: * <element name="jms-polling-interval-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
058: * <element name="jms-client-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
059: * <element name="generate-unique-jms-client-id" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
060: * <element name="durable-subscription-deletion" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
061: * <element name="max-messages-in-transaction" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
062: * <element name="distributed-destination-connection" type="{http://www.bea.com/ns/weblogic/90}distributed-destination-connection" minOccurs="0"/>
063: * </sequence>
064: * </choice>
065: * <element name="init-suspend-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
066: * <element name="max-suspend-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
067: * <element name="security-plugin" type="{http://www.bea.com/ns/weblogic/90}security-plugin" minOccurs="0"/>
068: * </sequence>
069: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
070: * </restriction>
071: * </complexContent>
072: * </complexType>
073: * </pre>
074: *
075: *
076: */
077: @XmlAccessorType(XmlAccessType.FIELD)
078: @XmlType(name="message-driven-descriptor",propOrder={"pool","timerDescriptor","resourceAdapterJndiName","destinationJndiName","initialContextFactory","providerUrl","connectionFactoryJndiName","destinationResourceLink","connectionFactoryResourceLink","jmsPollingIntervalSeconds","jmsClientId","generateUniqueJmsClientId","durableSubscriptionDeletion","maxMessagesInTransaction","distributedDestinationConnection","initSuspendSeconds","maxSuspendSeconds","securityPlugin"})
079: public class MessageDrivenDescriptor {
080:
081: protected Pool pool;
082: @XmlElement(name="timer-descriptor")
083: protected TimerDescriptor timerDescriptor;
084: @XmlElement(name="resource-adapter-jndi-name")
085: protected String resourceAdapterJndiName;
086: @XmlElement(name="destination-jndi-name")
087: protected String destinationJndiName;
088: @XmlElement(name="initial-context-factory")
089: protected String initialContextFactory;
090: @XmlElement(name="provider-url")
091: protected String providerUrl;
092: @XmlElement(name="connection-factory-jndi-name")
093: protected String connectionFactoryJndiName;
094: @XmlElement(name="destination-resource-link")
095: protected String destinationResourceLink;
096: @XmlElement(name="connection-factory-resource-link")
097: protected String connectionFactoryResourceLink;
098: @XmlElement(name="jms-polling-interval-seconds")
099: protected BigInteger jmsPollingIntervalSeconds;
100: @XmlElement(name="jms-client-id")
101: protected String jmsClientId;
102: @XmlElement(name="generate-unique-jms-client-id")
103: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
104: protected Boolean generateUniqueJmsClientId;
105: @XmlElement(name="durable-subscription-deletion")
106: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
107: protected Boolean durableSubscriptionDeletion;
108: @XmlElement(name="max-messages-in-transaction")
109: protected BigInteger maxMessagesInTransaction;
110: @XmlElement(name="distributed-destination-connection")
111: protected DistributedDestinationConnection distributedDestinationConnection;
112: @XmlElement(name="init-suspend-seconds")
113: protected BigInteger initSuspendSeconds;
114: @XmlElement(name="max-suspend-seconds")
115: protected BigInteger maxSuspendSeconds;
116: @XmlElement(name="security-plugin")
117: protected SecurityPlugin securityPlugin;
118: @XmlAttribute
119: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
120: @XmlID
121: protected String id;
122:
123: /**
124: * Gets the value of the pool property.
125: *
126: * @return
127: * possible object is
128: * {@link Pool }
129: *
130: */
131: public Pool getPool() {
132: return pool;
133: }
134:
135: /**
136: * Sets the value of the pool property.
137: *
138: * @param value
139: * allowed object is
140: * {@link Pool }
141: *
142: */
143: public void setPool(Pool value) {
144: this .pool = value;
145: }
146:
147: /**
148: * Gets the value of the timerDescriptor property.
149: *
150: * @return
151: * possible object is
152: * {@link TimerDescriptor }
153: *
154: */
155: public TimerDescriptor getTimerDescriptor() {
156: return timerDescriptor;
157: }
158:
159: /**
160: * Sets the value of the timerDescriptor property.
161: *
162: * @param value
163: * allowed object is
164: * {@link TimerDescriptor }
165: *
166: */
167: public void setTimerDescriptor(TimerDescriptor value) {
168: this .timerDescriptor = value;
169: }
170:
171: /**
172: * Gets the value of the resourceAdapterJndiName property.
173: *
174: * @return
175: * possible object is
176: * {@link String }
177: *
178: */
179: public String getResourceAdapterJndiName() {
180: return resourceAdapterJndiName;
181: }
182:
183: /**
184: * Sets the value of the resourceAdapterJndiName property.
185: *
186: * @param value
187: * allowed object is
188: * {@link String }
189: *
190: */
191: public void setResourceAdapterJndiName(String value) {
192: this .resourceAdapterJndiName = value;
193: }
194:
195: /**
196: * Gets the value of the destinationJndiName property.
197: *
198: * @return
199: * possible object is
200: * {@link String }
201: *
202: */
203: public String getDestinationJndiName() {
204: return destinationJndiName;
205: }
206:
207: /**
208: * Sets the value of the destinationJndiName property.
209: *
210: * @param value
211: * allowed object is
212: * {@link String }
213: *
214: */
215: public void setDestinationJndiName(String value) {
216: this .destinationJndiName = value;
217: }
218:
219: /**
220: * Gets the value of the initialContextFactory property.
221: *
222: * @return
223: * possible object is
224: * {@link String }
225: *
226: */
227: public String getInitialContextFactory() {
228: return initialContextFactory;
229: }
230:
231: /**
232: * Sets the value of the initialContextFactory property.
233: *
234: * @param value
235: * allowed object is
236: * {@link String }
237: *
238: */
239: public void setInitialContextFactory(String value) {
240: this .initialContextFactory = value;
241: }
242:
243: /**
244: * Gets the value of the providerUrl property.
245: *
246: * @return
247: * possible object is
248: * {@link String }
249: *
250: */
251: public String getProviderUrl() {
252: return providerUrl;
253: }
254:
255: /**
256: * Sets the value of the providerUrl property.
257: *
258: * @param value
259: * allowed object is
260: * {@link String }
261: *
262: */
263: public void setProviderUrl(String value) {
264: this .providerUrl = value;
265: }
266:
267: /**
268: * Gets the value of the connectionFactoryJndiName property.
269: *
270: * @return
271: * possible object is
272: * {@link String }
273: *
274: */
275: public String getConnectionFactoryJndiName() {
276: return connectionFactoryJndiName;
277: }
278:
279: /**
280: * Sets the value of the connectionFactoryJndiName property.
281: *
282: * @param value
283: * allowed object is
284: * {@link String }
285: *
286: */
287: public void setConnectionFactoryJndiName(String value) {
288: this .connectionFactoryJndiName = value;
289: }
290:
291: /**
292: * Gets the value of the destinationResourceLink property.
293: *
294: * @return
295: * possible object is
296: * {@link String }
297: *
298: */
299: public String getDestinationResourceLink() {
300: return destinationResourceLink;
301: }
302:
303: /**
304: * Sets the value of the destinationResourceLink property.
305: *
306: * @param value
307: * allowed object is
308: * {@link String }
309: *
310: */
311: public void setDestinationResourceLink(String value) {
312: this .destinationResourceLink = value;
313: }
314:
315: /**
316: * Gets the value of the connectionFactoryResourceLink property.
317: *
318: * @return
319: * possible object is
320: * {@link String }
321: *
322: */
323: public String getConnectionFactoryResourceLink() {
324: return connectionFactoryResourceLink;
325: }
326:
327: /**
328: * Sets the value of the connectionFactoryResourceLink property.
329: *
330: * @param value
331: * allowed object is
332: * {@link String }
333: *
334: */
335: public void setConnectionFactoryResourceLink(String value) {
336: this .connectionFactoryResourceLink = value;
337: }
338:
339: /**
340: * Gets the value of the jmsPollingIntervalSeconds property.
341: *
342: * @return
343: * possible object is
344: * {@link BigInteger }
345: *
346: */
347: public BigInteger getJmsPollingIntervalSeconds() {
348: return jmsPollingIntervalSeconds;
349: }
350:
351: /**
352: * Sets the value of the jmsPollingIntervalSeconds property.
353: *
354: * @param value
355: * allowed object is
356: * {@link BigInteger }
357: *
358: */
359: public void setJmsPollingIntervalSeconds(BigInteger value) {
360: this .jmsPollingIntervalSeconds = value;
361: }
362:
363: /**
364: * Gets the value of the jmsClientId property.
365: *
366: * @return
367: * possible object is
368: * {@link String }
369: *
370: */
371: public String getJmsClientId() {
372: return jmsClientId;
373: }
374:
375: /**
376: * Sets the value of the jmsClientId property.
377: *
378: * @param value
379: * allowed object is
380: * {@link String }
381: *
382: */
383: public void setJmsClientId(String value) {
384: this .jmsClientId = value;
385: }
386:
387: /**
388: * Gets the value of the generateUniqueJmsClientId property.
389: *
390: * @return
391: * possible object is
392: * {@link Boolean }
393: *
394: */
395: public Boolean getGenerateUniqueJmsClientId() {
396: return generateUniqueJmsClientId;
397: }
398:
399: /**
400: * Sets the value of the generateUniqueJmsClientId property.
401: *
402: * @param value
403: * allowed object is
404: * {@link Boolean }
405: *
406: */
407: public void setGenerateUniqueJmsClientId(Boolean value) {
408: this .generateUniqueJmsClientId = value;
409: }
410:
411: /**
412: * Gets the value of the durableSubscriptionDeletion property.
413: *
414: * @return
415: * possible object is
416: * {@link Boolean }
417: *
418: */
419: public Boolean getDurableSubscriptionDeletion() {
420: return durableSubscriptionDeletion;
421: }
422:
423: /**
424: * Sets the value of the durableSubscriptionDeletion property.
425: *
426: * @param value
427: * allowed object is
428: * {@link Boolean }
429: *
430: */
431: public void setDurableSubscriptionDeletion(Boolean value) {
432: this .durableSubscriptionDeletion = value;
433: }
434:
435: /**
436: * Gets the value of the maxMessagesInTransaction property.
437: *
438: * @return
439: * possible object is
440: * {@link BigInteger }
441: *
442: */
443: public BigInteger getMaxMessagesInTransaction() {
444: return maxMessagesInTransaction;
445: }
446:
447: /**
448: * Sets the value of the maxMessagesInTransaction property.
449: *
450: * @param value
451: * allowed object is
452: * {@link BigInteger }
453: *
454: */
455: public void setMaxMessagesInTransaction(BigInteger value) {
456: this .maxMessagesInTransaction = value;
457: }
458:
459: /**
460: * Gets the value of the distributedDestinationConnection property.
461: *
462: * @return
463: * possible object is
464: * {@link DistributedDestinationConnection }
465: *
466: */
467: public DistributedDestinationConnection getDistributedDestinationConnection() {
468: return distributedDestinationConnection;
469: }
470:
471: /**
472: * Sets the value of the distributedDestinationConnection property.
473: *
474: * @param value
475: * allowed object is
476: * {@link DistributedDestinationConnection }
477: *
478: */
479: public void setDistributedDestinationConnection(
480: DistributedDestinationConnection value) {
481: this .distributedDestinationConnection = value;
482: }
483:
484: /**
485: * Gets the value of the initSuspendSeconds property.
486: *
487: * @return
488: * possible object is
489: * {@link BigInteger }
490: *
491: */
492: public BigInteger getInitSuspendSeconds() {
493: return initSuspendSeconds;
494: }
495:
496: /**
497: * Sets the value of the initSuspendSeconds property.
498: *
499: * @param value
500: * allowed object is
501: * {@link BigInteger }
502: *
503: */
504: public void setInitSuspendSeconds(BigInteger value) {
505: this .initSuspendSeconds = value;
506: }
507:
508: /**
509: * Gets the value of the maxSuspendSeconds property.
510: *
511: * @return
512: * possible object is
513: * {@link BigInteger }
514: *
515: */
516: public BigInteger getMaxSuspendSeconds() {
517: return maxSuspendSeconds;
518: }
519:
520: /**
521: * Sets the value of the maxSuspendSeconds property.
522: *
523: * @param value
524: * allowed object is
525: * {@link BigInteger }
526: *
527: */
528: public void setMaxSuspendSeconds(BigInteger value) {
529: this .maxSuspendSeconds = value;
530: }
531:
532: /**
533: * Gets the value of the securityPlugin property.
534: *
535: * @return
536: * possible object is
537: * {@link SecurityPlugin }
538: *
539: */
540: public SecurityPlugin getSecurityPlugin() {
541: return securityPlugin;
542: }
543:
544: /**
545: * Sets the value of the securityPlugin property.
546: *
547: * @param value
548: * allowed object is
549: * {@link SecurityPlugin }
550: *
551: */
552: public void setSecurityPlugin(SecurityPlugin value) {
553: this .securityPlugin = value;
554: }
555:
556: /**
557: * Gets the value of the id property.
558: *
559: * @return
560: * possible object is
561: * {@link String }
562: *
563: */
564: public String getId() {
565: return id;
566: }
567:
568: /**
569: * Sets the value of the id property.
570: *
571: * @param value
572: * allowed object is
573: * {@link String }
574: *
575: */
576: public void setId(String value) {
577: this.id = value;
578: }
579:
580: }
|