KickJava   Java API By Example, From Geeks To Geeks.

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


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 CheckpointedMethods matches the schema element checkpointed-methods
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
37 // BEGIN_NOI18N
38

39 public class CheckpointedMethods extends com.sun.enterprise.tools.common.dd.SunBaseBean
40 {
41
42     static Vector comparators = new Vector();
43
44     static public final String JavaDoc DESCRIPTION = "Description"; // NOI18N
45
static public final String JavaDoc METHOD = "Method"; // NOI18N
46

47     public CheckpointedMethods() {
48         this(Common.USE_DEFAULT_VALUES);
49     }
50
51     public CheckpointedMethods(int options)
52     {
53         super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
54         // Properties (see root bean comments for the bean graph)
55
this.createProperty("description", // NOI18N
56
DESCRIPTION,
57             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
58             String JavaDoc.class);
59         this.createProperty("method", // NOI18N
60
METHOD,
61             Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY,
62             Method.class);
63         this.initialize(options);
64     }
65
66     // Setting the default values of the properties
67
void initialize(int options)
68     {
69     
70     }
71
72     // This attribute is optional
73
public void setDescription(String JavaDoc value) {
74         this.setValue(DESCRIPTION, value);
75     }
76
77     //
78
public String JavaDoc getDescription() {
79         return (String JavaDoc)this.getValue(DESCRIPTION);
80     }
81
82     // This attribute is an array containing at least one element
83
public void setMethod(int index, Method value) {
84         this.setValue(METHOD, index, value);
85     }
86
87     //
88
public Method getMethod(int index) {
89         return (Method)this.getValue(METHOD, index);
90     }
91
92     // This attribute is an array containing at least one element
93
public void setMethod(Method[] value) {
94         this.setValue(METHOD, value);
95     }
96
97     //
98
public Method[] getMethod() {
99         return (Method[])this.getValues(METHOD);
100     }
101
102     // Return the number of properties
103
public int sizeMethod() {
104         return this.size(METHOD);
105     }
106
107     // Add a new element returning its index in the list
108
public int addMethod(com.sun.enterprise.tools.common.dd.ejb.Method value) {
109         return this.addValue(METHOD, value);
110     }
111
112     //
113
// Remove an element using its reference
114
// Returns the index the element had in the list
115
//
116
public int removeMethod(com.sun.enterprise.tools.common.dd.ejb.Method value) {
117         return this.removeValue(METHOD, value);
118     }
119
120     //
121
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
122         comparators.add(c);
123     }
124
125     //
126
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
127         comparators.remove(c);
128     }
129     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
130         boolean restrictionFailure = false;
131         // Validating property description
132
if (getDescription() != null) {
133         }
134         // Validating property method
135
if (sizeMethod() == 0) {
136             throw new org.netbeans.modules.schema2beans.ValidateException("sizeMethod() == 0", "method", this); // NOI18N
137
}
138         for (int _index = 0; _index < sizeMethod(); ++_index) {
139             com.sun.enterprise.tools.common.dd.ejb.Method element = getMethod(_index);
140             if (element != null) {
141                 element.validate();
142             }
143         }
144     }
145
146     // Dump the content of this bean returning it as a String
147
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
148         String JavaDoc s;
149         Object JavaDoc o;
150         org.netbeans.modules.schema2beans.BaseBean n;
151         str.append(indent);
152         str.append("Description"); // NOI18N
153
str.append(indent+"\t"); // NOI18N
154
str.append("<"); // NOI18N
155
s = this.getDescription();
156         str.append((s==null?"null":s.trim())); // NOI18N
157
str.append(">\n"); // NOI18N
158
this.dumpAttributes(DESCRIPTION, 0, str, indent);
159
160         str.append(indent);
161         str.append("Method["+this.sizeMethod()+"]"); // NOI18N
162
for(int i=0; i<this.sizeMethod(); i++)
163         {
164             str.append(indent+"\t");
165             str.append("#"+i+":");
166             n = (org.netbeans.modules.schema2beans.BaseBean) this.getMethod(i);
167             if (n != null)
168                 n.dump(str, indent + "\t"); // NOI18N
169
else
170                 str.append(indent+"\tnull"); // NOI18N
171
this.dumpAttributes(METHOD, i, str, indent);
172         }
173
174     }
175     public String JavaDoc dumpBeanNode(){
176         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
177         str.append("CheckpointedMethods\n"); // NOI18N
178
this.dump(str, "\n "); // NOI18N
179
return str.toString();
180     }}
181
182 // END_NOI18N
183

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

1029
Popular Tags