KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > common > dd > ejb > MdbConnectionFactory


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /**
25  * This generated bean class MdbConnectionFactory matches the schema element mdb-connection-factory
26  *
27  * Generated on Wed Aug 13 10:43:32 PDT 2003
28  */

29
30 package com.sun.enterprise.tools.common.dd.ejb;
31
32 import org.w3c.dom.*;
33 import org.netbeans.modules.schema2beans.*;
34 import java.beans.*;
35 import java.util.*;
36 import com.sun.enterprise.tools.common.dd.DefaultResourcePrincipal;
37
38 // BEGIN_NOI18N
39

40 public class MdbConnectionFactory extends com.sun.enterprise.tools.common.dd.SunBaseBean
41 {
42
43     static Vector comparators = new Vector();
44
45     static public final String JavaDoc JNDI_NAME = "JndiName"; // NOI18N
46
static public final String JavaDoc DEFAULT_RESOURCE_PRINCIPAL = "DefaultResourcePrincipal"; // NOI18N
47

48     public MdbConnectionFactory() {
49         this(Common.USE_DEFAULT_VALUES);
50     }
51
52     public MdbConnectionFactory(int options)
53     {
54         super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
55         // Properties (see root bean comments for the bean graph)
56
this.createProperty("jndi-name", // NOI18N
57
JNDI_NAME,
58             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
59             String JavaDoc.class);
60         this.createProperty("default-resource-principal", // NOI18N
61
DEFAULT_RESOURCE_PRINCIPAL,
62             Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
63             DefaultResourcePrincipal.class);
64         this.initialize(options);
65     }
66
67     // Setting the default values of the properties
68
void initialize(int options)
69     {
70     
71     }
72
73     // This attribute is mandatory
74
public void setJndiName(String JavaDoc value) {
75         this.setValue(JNDI_NAME, value);
76     }
77
78     //
79
public String JavaDoc getJndiName() {
80         return (String JavaDoc)this.getValue(JNDI_NAME);
81     }
82
83     // This attribute is optional
84
public void setDefaultResourcePrincipal(DefaultResourcePrincipal value) {
85         this.setValue(DEFAULT_RESOURCE_PRINCIPAL, value);
86     }
87
88     //
89
public DefaultResourcePrincipal getDefaultResourcePrincipal() {
90         return (DefaultResourcePrincipal)this.getValue(DEFAULT_RESOURCE_PRINCIPAL);
91     }
92
93     //
94
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
95         comparators.add(c);
96     }
97
98     //
99
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
100         comparators.remove(c);
101     }
102     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
103         boolean restrictionFailure = false;
104         // Validating property jndiName
105
if (getJndiName() == null) {
106             throw new org.netbeans.modules.schema2beans.ValidateException("getJndiName() == null", "jndiName", this); // NOI18N
107
}
108         // Validating property defaultResourcePrincipal
109
if (getDefaultResourcePrincipal() != null) {
110             getDefaultResourcePrincipal().validate();
111         }
112     }
113
114     // Dump the content of this bean returning it as a String
115
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
116         String JavaDoc s;
117         Object JavaDoc o;
118         org.netbeans.modules.schema2beans.BaseBean n;
119         str.append(indent);
120         str.append("JndiName"); // NOI18N
121
str.append(indent+"\t"); // NOI18N
122
str.append("<"); // NOI18N
123
s = this.getJndiName();
124         str.append((s==null?"null":s.trim())); // NOI18N
125
str.append(">\n"); // NOI18N
126
this.dumpAttributes(JNDI_NAME, 0, str, indent);
127
128         str.append(indent);
129         str.append("DefaultResourcePrincipal"); // NOI18N
130
n = (org.netbeans.modules.schema2beans.BaseBean) this.getDefaultResourcePrincipal();
131         if (n != null)
132             n.dump(str, indent + "\t"); // NOI18N
133
else
134             str.append(indent+"\tnull"); // NOI18N
135
this.dumpAttributes(DEFAULT_RESOURCE_PRINCIPAL, 0, str, indent);
136
137     }
138     public String JavaDoc dumpBeanNode(){
139         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
140         str.append("MdbConnectionFactory\n"); // NOI18N
141
this.dump(str, "\n "); // NOI18N
142
return str.toString();
143     }}
144
145 // END_NOI18N
146

147
148 /*
149         The following schema file has been used for generation:
150
151 <!--
152   XML DTD for Sun ONE Application Server specific EJB jar module
153   deployment descriptor. This is a companion DTD for ejb-jar_2_1.xsd
154
155   $Revision: 1.3 $
156 -->
157
158 <!--
159 This is the root element of the ejb module descriptor document.
160 -->
161 <!ELEMENT sun-ejb-jar (security-role-mapping*, enterprise-beans) >
162
163 <!--
164 System unique object id. Automatically generated and updated at deployment/redeployment
165 -->
166 <!ELEMENT unique-id (#PCDATA)>
167
168 <!--
169 This is the root element describing all the runtime of an ejb-jar in the application.
170 -->
171 <!ELEMENT enterprise-beans (name?, unique-id?, ejb*, pm-descriptors?, cmp-resource?,
172     message-destination*, webservice-description*)>
173
174 <!--
175 This is the element describing runtime bindings for a single ejb.
176
177 Properties applicable to all types of beans:
178      ejb-name, ejb-ref*, jndi-name, resource-ref*, resource-env-ref*, pass-by-reference?,
179      ior-security-config?, gen-classes?, service-ref*
180
181 Additional properties applicable to a stateless session bean:
182     bean-pool, webservice-endpoint
183
184 Additional properties applicable to a stateful session bean:
185     bean-cache, webservice-endpoint
186
187 Additional properties applicable to an entity bean:
188    is-read-only-bean?, refresh-period-in-seconds?, cmp?, commit-option?, bean-cache?, bean-pool?
189
190 Additional properties applicable to a message-driven bean:
191    mdb-resource-adapter?, mdb-connection-factory?, jms-durable-subscription-name?,
192    jms-max-messages-load?, bean-pool?
193    ( In case of MDB, jndi-name is the jndi name of the associated jms destination )
194 -->
195
196 <!ELEMENT ejb (ejb-name, jndi-name?, ejb-ref*, resource-ref*, resource-env-ref*, service-ref*, pass-by-reference?,
197                cmp?, principal?, mdb-connection-factory?, jms-durable-subscription-name?,
198                jms-max-messages-load?, ior-security-config?, is-read-only-bean?,
199                refresh-period-in-seconds?, commit-option?, cmt-timeout-in-seconds?, gen-classes?,
200                bean-pool?, bean-cache?, mdb-resource-adapter?, webservice-endpoint*, session?)>
201 <!--
202 The text in this element matches the ejb-name of the ejb to which it refers in ejb-jar.xml.
203 -->
204 <!ELEMENT ejb-name (#PCDATA)>
205
206 <!--
207 The text in this element is a true/false flag for read only beans.
208 -->
209 <!ELEMENT is-read-only-bean (#PCDATA)>
210
211 <!--
212 This is the root element which binds an ejb reference to a jndi name.
213 -->
214 <!ELEMENT ejb-ref (ejb-ref-name, jndi-name)>
215
216 <!--
217 The ejb ref name locates the name of the ejb reference in the application.
218 -->
219 <!ELEMENT ejb-ref-name (#PCDATA)>
220
221 <!--
222 This element describes runtime information for a CMP EntityBean object for
223 EJB1.1 and EJB2.0 beans.
224 -->
225 <!ELEMENT cmp (mapping-properties?, is-one-one-cmp?, one-one-finders?)>
226
227 <!--
228 This contains the location of the persistence vendor specific O/R mapping file
229 -->
230 <!ELEMENT mapping-properties (#PCDATA)>
231
232 <!--
233 This element in deprecated. It has been left in the DTD for validation purposes.
234 Any value will be ignored by the runtime.
235 -->
236 <!ELEMENT is-one-one-cmp (#PCDATA)>
237
238 <!--
239 This root element contains the finders for CMP 1.1.
240 -->
241 <!ELEMENT one-one-finders (finder+ )>
242
243 <!--
244 This root element contains the finder for CMP 1.1 with a method-name and query parameters
245 -->
246 <!ELEMENT finder (method-name, query-params?, query-filter?, query-variables?, query-ordering?)>
247
248 <!--
249 This contains the query parameters for CMP 1.1 finder
250 -->
251 <!ELEMENT query-params (#PCDATA)>
252
253 <!--
254 This optional element contains the query filter for CMP 1.1 finder
255 -->
256 <!ELEMENT query-filter (#PCDATA)>
257
258 <!--
259 This optional element contains variables in query expression for CMP 1.1 finder
260 -->
261 <!ELEMENT query-variables (#PCDATA)>
262
263 <!--
264 This optional element contains the ordering specification for CMP 1.1 finder.
265 -->
266
267 <!ELEMENT query-ordering (#PCDATA)>
268
269 <!--
270 This element identifies the database and the policy for processing CMP beans
271 storage. The jndi-name element identifies either the persistence-manager-
272 factory-resource or the jdbc-resource as defined in the server configuration.
273 -->
274 <!ELEMENT cmp-resource (jndi-name, default-resource-principal?, property*,
275         create-tables-at-deploy?, drop-tables-at-undeploy?,
276         database-vendor-name?, schema-generator-properties?)>
277
278 <!--
279 This element contains the override properties for the schema generation
280 from CMP beans in this module.
281 -->
282 <!ELEMENT schema-generator-properties (property*) >
283
284 <!--
285 This element specifies whether automatic creation of tables for the CMP beans
286 is done at module deployment. Acceptable values are true or false
287 -->
288 <!ELEMENT create-tables-at-deploy ( #PCDATA )>
289
290 <!--
291 This element specifies whether automatic dropping of tables for the CMP beans
292 is done at module undeployment. Acceptabel values are true of false
293 -->
294 <!ELEMENT drop-tables-at-undeploy ( #PCDATA )>
295
296 <!--
297 This element specifies the database vendor name for ddl files generated at
298 module deployment. Default is SQL92.
299 -->
300 <!ELEMENT database-vendor-name ( #PCDATA )>
301
302 <!--
303 This element specifies the connection factory associated with a message-driven bean.
304 -->
305 <!ELEMENT mdb-connection-factory (jndi-name, default-resource-principal?)>
306
307 <!--
308 This node holds information about a logical message destination
309 -->
310 <!ELEMENT message-destination (message-destination-name, jndi-name)>
311
312 <!--
313 This node holds the name of a logical message destination
314 -->
315 <!ELEMENT message-destination-name (#PCDATA)>
316
317 <!--
318 Specifies the name of a durable subscription associated with a message-driven bean's
319 destination. Required for a Topic destination, if subscription-durability is set to
320 Durable (in ejb-jar.xml)
321 -->
322 <!ELEMENT jms-durable-subscription-name (#PCDATA)>
323
324 <!--
325 A string value specifies the maximum number of messages to load into a JMS session
326 at one time for a message-driven bean to serve. If not specified, the default is 1.
327 -->
328 <!ELEMENT jms-max-messages-load (#PCDATA)>
329
330 <!--
331 This element contains all the generated class names for a bean.
332 -->
333 <!ELEMENT gen-classes ( remote-impl?, local-impl?, remote-home-impl?, local-home-impl? )>
334
335 <!--
336 This contains the fully qualified class name of the generated EJBObject impl class.
337 -->
338 <!ELEMENT remote-impl (#PCDATA)>
339
340 <!--
341 This contains the fully qualified class name of the generated EJBLocalObject impl class.
342 -->
343 <!ELEMENT local-impl (#PCDATA)>
344
345 <!--
346 This contains the fully qualified class name of the generated EJBHome impl class.
347 -->
348 <!ELEMENT remote-home-impl (#PCDATA)>
349
350 <!--
351 This contains the fully qualified class name of the generated EJBLocalHome impl class.
352 -->
353 <!ELEMENT local-home-impl (#PCDATA)>
354
355 <!--
356 This contains the bean cache properties. Used only for entity beans and stateful session beans
357 -->
358 <!ELEMENT bean-cache (max-cache-size?, resize-quantity?, is-cache-overflow-allowed?, cache-idle-timeout-in-seconds?, removal-timeout-in-seconds?, victim-selection-policy?)>
359
360 <!--
361 max-cache-size defines the maximum number of beans in the cache. Should be greater than 1.
362 Default is 512.
363 -->
364 <!ELEMENT max-cache-size (#PCDATA)>
365
366 <!--
367 is-cache-overflow-allowed is a boolean which indicates if the cache size is a hard limit or not.
368 Default is true i.e there is no hard limit. max-cache-size is a hint to the cache implementation.
369 -->
370 <!ELEMENT is-cache-overflow-allowed (#PCDATA)>
371
372 <!--
373 cache-idle-timeout-in-seconds specifies the maximum time that a stateful session bean or
374 entity bean is allowed to be idle in the cache. After this time, the bean is passivated
375 to backup store. This is a hint to server. Default value for cache-idle-timeout-in-seconds
376 is 600 seconds.
377 -->
378 <!ELEMENT cache-idle-timeout-in-seconds (#PCDATA)>
379
380
381 <!--
382 The amount of time that the bean remains passivated (i.e. idle in the backup store) is
383 controlled by removal-timeout-in-seconds parameter. Note that if a bean was not accessed beyond
384 removal-timeout-in-seconds, then it will be removed from the backup store and hence will not
385 be accessible to the client. The Default value for removal-timeout-in-seconds is 60min.
386 -->
387 <!ELEMENT removal-timeout-in-seconds (#PCDATA)>
388
389 <!--
390 victim-selection-policy specifies the algorithm to use to pick victims.
391 Possible values are FIFO | LRU | NRU. Default is NRU, which is actually
392 pseudo-random selection policy.
393 -->
394 <!ELEMENT victim-selection-policy (#PCDATA)>
395
396 <!--
397 bean-pool is a root element containing the bean pool properties. Used only for stateless session
398 bean and message-driven bean pools.
399 -->
400 <!ELEMENT bean-pool (steady-pool-size?, resize-quantity?, max-pool-size?, pool-idle-timeout-in-seconds?, max-wait-time-in-millis?)>
401
402 <!--
403 steady-pool-size specified the initial and minimum number of beans that must be maintained in the pool.
404 Valid values are from 0 to MAX_INTEGER.
405 -->
406 <!ELEMENT steady-pool-size (#PCDATA)>
407
408 <!--
409 resize-quantity specifies the number of beans to be created or deleted when the pool
410 or cache is being serviced by the server. Valid values are from 0 to MAX_INTEGER and
411 subject to maximum size limit). Default is 16.
412 -->
413 <!ELEMENT resize-quantity (#PCDATA)>
414
415 <!--
416 max-pool-size speifies the maximum pool size. Valid values are from 0 to MAX_INTEGER.
417 Default is 64.
418 -->
419 <!ELEMENT max-pool-size (#PCDATA)>
420
421 <!--
422 pool-idle-timeout-in-seconds specifies the maximum time that a stateless session bean or
423 message-driven bean is allowed to be idle in the pool. After this time, the bean is
424 passivated to backup store. This is a hint to server. Default value for
425 pool-idle-timeout-in-seconds is 600 seconds.
426 -->
427 <!ELEMENT pool-idle-timeout-in-seconds (#PCDATA)>
428
429 <!--
430 A string field whose valid values are either "B", or "C". Default is "B"
431 -->
432 <!ELEMENT commit-option (#PCDATA)>
433
434 <!--
435 Specifies the timeout for transactions started by the container. This value must be greater than zero, else it will be ignored by the container.
436 -->
437 <!ELEMENT cmt-timeout-in-seconds (#PCDATA)>
438
439 <!--
440 Specifies the maximum time that the caller is willing to wait to get a bean from the pool.
441 Wait time is infinite, if the value specified is 0. Deprecated.
442 -->
443 <!ELEMENT max-wait-time-in-millis (#PCDATA)>
444
445 <!--
446 refresh-period-in-seconds specifies the rate at which the read-only-bean must be refreshed
447 from the data source. 0 (never refreshed) and positive (refreshed at specified intervals).
448 Specified value is a hint to the container. Default is 600 seconds.
449 -->
450 <!ELEMENT refresh-period-in-seconds (#PCDATA)>
451
452 <!--
453 Specifies the jndi name string.
454 -->
455 <!ELEMENT jndi-name (#PCDATA)>
456
457 <!--
458 This text nodes holds a name string.
459 -->
460 <!ELEMENT name (#PCDATA)>
461
462 <!--
463 This element holds password text.
464 -->
465 <!ELEMENT password (#PCDATA)>
466
467 <!--
468 This node describes a username on the platform.
469 -->
470 <!ELEMENT principal (name)>
471
472 <!--
473 security-role-mapping element maps the user principal or group
474 to a different principal on the server.
475 -->
476 <!ELEMENT security-role-mapping (role-name, (principal-name | group-name)+)>
477
478 <!--
479 role-name specifies an accepted role
480 -->
481 <!ELEMENT role-name (#PCDATA)>
482
483 <!--
484 principal-name specifies a valid principal
485 -->
486 <!ELEMENT principal-name (#PCDATA)>
487
488 <!--
489 group-name specifies a valid group name
490 -->
491 <!ELEMENT group-name (#PCDATA)>
492
493 <!--
494 The name of a resource reference.
495 -->
496 <!ELEMENT res-ref-name (#PCDATA)>
497
498 <!--
499 resource-env-ref holds all the runtime bindings of a resource env reference.
500 -->
501 <!ELEMENT resource-env-ref ( resource-env-ref-name, jndi-name )>
502
503 <!--
504 name of a resource env reference.
505 -->
506 <!ELEMENT resource-env-ref-name (#PCDATA)>
507
508 <!--
509 resource-ref node holds all the runtime bindings of a resource reference.
510 -->
511 <!ELEMENT resource-ref (res-ref-name, jndi-name, default-resource-principal?)>
512
513 <!--
514 user name and password to be used when none are specified while accesing a resource
515 -->
516 <!ELEMENT default-resource-principal ( name, password)>
517
518 <!--
519 ior-security-config element describes the security configuration information for the IOR.
520 -->
521 <!ELEMENT ior-security-config ( transport-config? , as-context?, sas-context? )>
522
523 <!--
524 transport-config is the root element for security between the end points
525 -->
526 <!ELEMENT transport-config ( integrity, confidentiality, establish-trust-in-target, establish-trust-in-client )>
527
528 <!--
529 integrity element indicates if the server (target) supports integrity protected messages.
530 The valid values are NONE, SUPPORTED or REQUIRED
531 -->
532 <!ELEMENT integrity ( #PCDATA)>
533
534 <!--
535 confidentiality element indicates if the server (target) supports privacy protected
536 messages. The values are NONE, SUPPORTED or REQUIRED
537 -->
538 <!ELEMENT confidentiality ( #PCDATA)>
539
540 <!--
541 establish-trust-in-target element indicates if the target is capable of authenticating to a client.
542 The values are NONE or SUPPORTED.
543 -->
544 <!ELEMENT establish-trust-in-target ( #PCDATA)>
545
546 <!--
547 establish-trust-in-client element indicates if the target is capable of authenticating a client. The
548 values are NONE, SUPPORTED or REQUIRED.
549 -->
550 <!ELEMENT establish-trust-in-client ( #PCDATA)>
551
552 <!--
553 as-context (CSIv2 authentication service) is the element describing the authentication
554 mechanism that will be used to authenticate the client. If specified it will be the
555 username-password mechanism.
556 -->
557 <!ELEMENT as-context ( auth-method, realm, required )>
558
559 <!--
560 required element specifies if the authentication method specified is required
561 to be used for client authentication. If so the EstablishTrustInClient bit
562 will be set in the target_requires field of the AS_Context. The element value
563 is either true or false.
564 -->
565 <!ELEMENT required ( #PCDATA )>
566
567 <!--
568 auth-method element describes the authentication method. The only supported value
569 is USERNAME_PASSWORD
570 -->
571 <!ELEMENT auth-method ( #PCDATA )>
572
573 <!--
574 realm element describes the realm in which the user is authenticated. Must be
575 a valid realm that is registered in server configuration.
576 -->
577 <!ELEMENT realm ( #PCDATA )>
578
579 <!--
580 sas-context (related to CSIv2 security attribute service) element describes
581 the sas-context fields.
582 -->
583 <!ELEMENT sas-context ( caller-propagation )>
584
585 <!--
586 caller-propagation element indicates if the target will accept propagated caller identities
587 The values are NONE or SUPPORTED.
588 -->
589 <!ELEMENT caller-propagation ( #PCDATA) >
590
591 <!--
592 pass-by-reference elements controls use of Pass by Reference semantics.
593 EJB spec requires pass by value, which will be the default mode of operation.
594 This can be set to true for non-compliant operation and possibly higher
595 performance. For a stand-alone server, this can be used. By setting a similarly
596 named element at sun-application.xml, it can apply to all the enclosed ejb
597 modules. Allowed values are true and false. Default will be false.
598  -->
599 <!ELEMENT pass-by-reference (#PCDATA)>
600
601 <!--
602 PM descriptors contain one or more pm descriptors, but only one of them must
603 be in use at any given time. If not specified, the Sun ONE CMP is used.
604 -->
605 <!ELEMENT pm-descriptors ( pm-descriptor+, pm-inuse)>
606
607 <!--
608 pm-descriptor describes the pluggable vendor implementation for the CMP
609 support of the CMP entity beans in this module.
610 -->
611 <!ELEMENT pm-descriptor ( pm-identifier, pm-version, pm-config?, pm-class-generator, pm-mapping-factory?)>
612
613 <!--
614 pm-identifier element identifies the vendor who provides the CMP implementation
615 -->
616 <!ELEMENT pm-identifier (#PCDATA)>
617
618 <!--
619 pm-version further specifies which version of PM vendor product to be used
620 -->
621 <!ELEMENT pm-version (#PCDATA)>
622
623 <!--
624 pm-config specifies the vendor specific config file to be used
625 -->
626 <!ELEMENT pm-config (#PCDATA)>
627
628 <!--
629 pm-class-generator specifies the vendor specific class generator to be used
630 at the module deploymant time. This is the name of the class specific to this
631 vendor.
632 -->
633 <!ELEMENT pm-class-generator (#PCDATA)>
634
635 <!--
636 pm-mapping-factory specifies the vendor specific mapping factory
637 This is the name of the class specific to a vendor.
638 -->
639 <!ELEMENT pm-mapping-factory (#PCDATA)>
640
641 <!--
642 pm-inuse specifies which CMP vendor is used.
643 -->
644 <!ELEMENT pm-inuse (pm-identifier, pm-version)>
645
646
647 <!--
648 This holds the runtime configuration properties of the message-driven bean
649 in its operation environment. For example, this may include information
650 about the name of a physical JMS destination etc.
651 Defined this way to match the activation-config on the standard
652 deployment descriptor for message-driven bean.
653 -->
654 <!ELEMENT activation-config ( description?, activation-config-property+ ) >
655
656 <!--
657 provide an element description
658 -->
659 <!ELEMENT description (#PCDATA)>
660
661 <!--
662 This hold a particular activation config propery name-value pair
663 -->
664 <!ELEMENT activation-config-property (
665   activation-config-property-name, activation-config-property-value ) >
666
667 <!--
668 This holds the name of a runtime activation-config property
669 -->
670 <!ELEMENT activation-config-property-name ( #PCDATA ) >
671
672 <!--
673 This holds the value of a runtime activation-config property
674 -->
675 <!ELEMENT activation-config-property-value ( #PCDATA ) >
676
677 <!--
678 This node holds the module ID of the resource adapter that
679 is responsible for delivering messages to the message-driven
680 bean, as well as the runtime configuration information for
681 the mdb.
682 -->
683 <!ELEMENT mdb-resource-adapter ( resource-adapter-mid, activation-config? )>
684
685 <!--
686 This node holds the module ID of the resource adapter that is responsible
687 for delivering messages to the message-driven bean.
688 -->
689 <!ELEMENT resource-adapter-mid ( #PCDATA ) >
690
691 <!--
692 Generic name-value pairs property
693 -->
694 <!ELEMENT property ( name, value ) >
695
696 <!--
697 This text nodes holds a value string.
698 -->
699 <!ELEMENT value (#PCDATA)>
700
701
702
703 <!--
704             W E B S E R V I C E S
705 -->
706 <!--
707 Information about a web service endpoint.
708 -->
709 <!ELEMENT webservice-endpoint ( port-component-name, endpoint-address-uri?, login-config?, transport-guarantee?, service-qname?, tie-class?, servlet-impl-class? )>
710
711 <!--
712 Unique name of a port component within a module
713 -->
714 <!ELEMENT port-component-name ( #PCDATA )>
715
716 <!--
717 Relative path combined with web server root to form fully qualified
718 endpoint address for a web service endpoint. For servlet endpoints, this
719 value is relative to the servlet's web application context root. In
720 all cases, this value must be a fixed pattern(i.e. no "*" allowed).
721 If the web service endpoint is a servlet that only implements a single
722 endpoint has only one url-pattern, it is not necessary to set
723 this value since the container can derive it from web.xml.
724 -->
725 <!ELEMENT endpoint-address-uri ( #PCDATA )>
726
727 <!--
728 The name of tie implementation class for a port-component. This is
729 not specified by the deployer. It is derived during deployment.
730 -->
731 <!ELEMENT tie-class (#PCDATA)>
732
733 <!--
734 The service-qname element declares the specific WSDL service
735 element that is being refered to. It is not set by the deployer.
736 It is derived during deployment.
737 -->
738 <!ELEMENT service-qname (namespaceURI, localpart)>
739
740 <!--
741 The localpart element indicates the local part of a QNAME.
742 -->
743 <!ELEMENT localpart (#PCDATA)>
744
745 <!--
746 The namespaceURI element indicates a URI.
747 -->
748 <!ELEMENT namespaceURI (#PCDATA)>
749
750 <!--
751 Optional authentication configuration for an EJB web service endpoint.
752 Not needed for servet web service endpoints. Their security configuration
753 is contained in the standard web application descriptor.
754 -->
755 <!ELEMENT login-config ( auth-method )>
756
757 <!--
758 Name of application-written servlet impl class contained in deployed war.
759 This is not set by the deployer. It is derived by the container
760 during deployment.
761 -->
762 <!ELEMENT servlet-impl-class (#PCDATA)>
763
764 <!--
765 Runtime settings for a web service reference. In the simplest case,
766 there is no runtime information required for a service ref. Runtime info
767 is only needed in the following cases :
768  * to define the port that should be used to resolve a container-managed port
769  * to define default Stub/Call property settings for Stub objects
770  * to define the URL of a final WSDL document to be used instead of
771 the one packaged with a service-ref
772 -->
773 <!ELEMENT service-ref ( service-ref-name, port-info*, call-property*, wsdl-override?, service-impl-class?, service-qname? )>
774
775 <!--
776 Coded name (relative to java:comp/env) for a service-reference
777 -->
778 <!ELEMENT service-ref-name ( #PCDATA )>
779
780 <!--
781 Name of generated service implementation class. This is not set by the
782 deployer. It is derived during deployment.
783 -->
784 <!ELEMENT service-impl-class ( #PCDATA )>
785
786 <!--
787 Information for a port within a service-reference.
788
789 Either service-endpoint-interface or wsdl-port or both
790 (service-endpoint-interface and wsdl-port) should be specified.
791
792 If both are specified, wsdl-port represents the
793 port the container should choose for container-managed port selection.
794
795 The same wsdl-port value must not appear in
796 more than one port-info entry within the same service-ref.
797
798 If a particular service-endpoint-interface is using container-managed port
799 selection, it must not appear in more than one port-info entry
800 within the same service-ref.
801
802 -->
803 <!ELEMENT port-info ( service-endpoint-interface?, wsdl-port?, stub-property*, call-property* )>
804
805 <!--
806 Fully qualified name of service endpoint interface
807 -->
808 <!ELEMENT service-endpoint-interface ( #PCDATA )>
809
810 <!--
811 Specifies that the communication between client and server should
812 be NONE, INTEGRAL, or CONFIDENTIAL. NONE means that the application
813 does not require any transport guarantees. A value of INTEGRAL means
814 that the application requires that the data sent between the client
815 and server be sent in such a way that it can't be changed in transit.
816 CONFIDENTIAL means that the application requires that the data be
817 transmitted in a fashion that prevents other entities from observing
818 the contents of the transmission. In most cases, the presence of the
819 INTEGRAL or CONFIDENTIAL flag will indicate that the use of SSL is
820 required.
821 -->
822 <!ELEMENT transport-guarantee ( #PCDATA )>
823
824
825 <!--
826 Port used in port-info.
827 -->
828 <!ELEMENT wsdl-port ( namespaceURI, localpart )>
829
830 <!--
831 JAXRPC property values that should be set on a stub before it's returned to
832 to the web service client. The property names can be any properties supported
833 by the JAXRPC Stub implementation. See javadoc for javax.xml.rpc.Stub
834 -->
835 <!ELEMENT stub-property ( name, value )>
836
837 <!--
838 JAXRPC property values that should be set on a Call object before it's
839 returned to the web service client. The property names can be any
840 properties supported by the JAXRPC Call implementation. See javadoc
841 for javax.xml.rpc.Call
842 -->
843 <!ELEMENT call-property ( name, value )>
844
845 <!--
846 Runtime information about a web service.
847
848 wsdl-publish-location is optionally used to specify
849 where the final wsdl and any dependent files should be stored. This location
850 resides on the file system from which deployment is initiated.
851
852 -->
853 <!ELEMENT webservice-description ( webservice-description-name, wsdl-publish-location? )>
854
855 <!--
856 Unique name of a webservice within a module
857 -->
858 <!ELEMENT webservice-description-name ( #PCDATA )>
859
860 <!--
861 This is a valid URL pointing to a final WSDL document. It is optional.
862 If specified, the WSDL document at this URL will be used during
863 deployment instead of the WSDL document associated with the
864 service-ref in the standard deployment descriptor.
865
866 Examples :
867
868   // available via HTTP
869   <wsdl-override>http://localhost:8000/myservice/myport?WSDL</wsdl-override>
870
871   // in a file
872   <wsdl-override>file:/home/user1/myfinalwsdl.wsdl</wsdl-override>
873
874 -->
875 <!ELEMENT wsdl-override ( #PCDATA )>
876
877 <!--
878 file: URL of a directory to which a web-service-description's wsdl should be
879 published during deployment. Any required files will be published to this
880 directory, preserving their location relative to the module-specific
881 wsdl directory(META-INF/wsdl or WEB-INF/wsdl).
882
883 Example :
884
885   For an ejb.jar whose webservices.xml wsdl-file element contains
886     META-INF/wsdl/a/Foo.wsdl
887
888   <wsdl-publish-location>file:/home/user1/publish
889   </wsdl-publish-location>
890
891   The final wsdl will be stored in /home/user1/publish/a/Foo.wsdl
892
893 -->
894 <!ELEMENT wsdl-publish-location ( #PCDATA )>
895
896
897 <!--
898             S E / E E V e r s i o n r e l a t e d f i e l d s
899 -->
900 <!--
901 The session element specifies a Stateful enterprise bean's check pointing mechanism properties
902 Used in: ejb
903 -->
904 <!ELEMENT session ( checkpoint-location?, quick-checkpoint?, checkpointed-methods? )>
905
906 <!--
907 The checkpoint-location element specifies a Stateful enterprise bean's check pointing mechanism type. The checkpoint-location element must be one of the following:
908 <checkpoint-location>end-of-transaction</checkpoint-location>
909 <checkpoint-location>end-of-method</checkpoint-location>
910 <checkpoint-location>end-of-transaction-or-method</checkpoint-location>
911 Default value: end-of-transaction
912 Used in: session
913 -->
914 <!ELEMENT checkpoint-location (#PCDATA)>
915
916
917 <!--
918 The quick-checkpoint element specifies an enterprise bean's if ejbPassivate/ejbActivate must be called or not during check pointing.
919 The checkpointing-type element must be one of the two following:
920         <quick-checkpoint>true</quick-checkpoint>
921         <quick-checkpoint>false</quick-checkpoint>
922 Dafault: true
923 Used in: session
924 -->
925 <!ELEMENT quick-checkpoint (#PCDATA)>
926
927 <!--
928 This element specifies which methods require checkpointing. The methods specified in here, will be checkpointed, when the checkpoint-location is set to end-of-method.
929
930 Default: none or all methods if failover is enabled at application or cluster/instance levels
931 Used in: session
932 -->
933 <!ELEMENT checkpointed-methods (description?, method+)>
934
935 <!--
936
937 Method as defined in the standard deployment descriptors.
938
939 Used in : checkpointed-methods
940 -->
941 <!ELEMENT method (description?, method-intf?, method-name,
942 method-params?)>
943
944 <!--
945
946 The method-intf element allows a method element to differentiate
947 between the methods with the same name and signature that are multiply
948 defined across the component and home interfaces (e.g, in both an
949 enterprise bean's remote and local interfaces; in both an enterprise bean's
950 home and remote interfaces, etc.)
951
952 The method-intf element must be one of the following:
953
954     <method-intf>Home</method-intf>
955     <method-intf>Remote</method-intf>
956     <method-intf>LocalHome</method-intf>
957     <method-intf>Local</method-intf>
958
959 Used in: method
960 -->
961 <!ELEMENT method-intf (#PCDATA)>
962
963 <!--
964 The method-name element contains a name of an enterprise bean method
965 or the asterisk (*) character. The asterisk is used when the element
966 denotes all the methods of an enterprise bean's component and home
967 interfaces.
968
969 Used in: method, query-method
970 -->
971 <!ELEMENT method-name (#PCDATA)>
972
973 <!--
974 The method-param element contains the fully-qualified Java type name
975 of a method parameter.
976
977 Used in: method-params
978 -->
979 <!ELEMENT method-param (#PCDATA)>
980
981 <!--
982 The method-params element contains a list of the fully-qualified Java
983 type names of the method parameters.
984
985 Used in: method, query-method
986 -->
987 <!ELEMENT method-params (method-param*)>
988
989
990
991 */

992
Popular Tags