KickJava   Java API By Example, From Geeks To Geeks.

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


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 GenClasses matches the schema element gen-classes
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 GenClasses extends com.sun.enterprise.tools.common.dd.SunBaseBean
40 {
41
42     static Vector comparators = new Vector();
43
44     static public final String JavaDoc REMOTE_IMPL = "RemoteImpl"; // NOI18N
45
static public final String JavaDoc LOCAL_IMPL = "LocalImpl"; // NOI18N
46
static public final String JavaDoc REMOTE_HOME_IMPL = "RemoteHomeImpl"; // NOI18N
47
static public final String JavaDoc LOCAL_HOME_IMPL = "LocalHomeImpl"; // NOI18N
48

49     public GenClasses() {
50         this(Common.USE_DEFAULT_VALUES);
51     }
52
53     public GenClasses(int options)
54     {
55         super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
56         // Properties (see root bean comments for the bean graph)
57
this.createProperty("remote-impl", // NOI18N
58
REMOTE_IMPL,
59             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
60             String JavaDoc.class);
61         this.createProperty("local-impl", // NOI18N
62
LOCAL_IMPL,
63             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
64             String JavaDoc.class);
65         this.createProperty("remote-home-impl", // NOI18N
66
REMOTE_HOME_IMPL,
67             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
68             String JavaDoc.class);
69         this.createProperty("local-home-impl", // NOI18N
70
LOCAL_HOME_IMPL,
71             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
72             String JavaDoc.class);
73         this.initialize(options);
74     }
75
76     // Setting the default values of the properties
77
void initialize(int options)
78     {
79                 
80     }
81
82     // This attribute is optional
83
public void setRemoteImpl(String JavaDoc value) {
84         this.setValue(REMOTE_IMPL, value);
85     }
86
87     //
88
public String JavaDoc getRemoteImpl() {
89         return (String JavaDoc)this.getValue(REMOTE_IMPL);
90     }
91
92     // This attribute is optional
93
public void setLocalImpl(String JavaDoc value) {
94         this.setValue(LOCAL_IMPL, value);
95     }
96
97     //
98
public String JavaDoc getLocalImpl() {
99         return (String JavaDoc)this.getValue(LOCAL_IMPL);
100     }
101
102     // This attribute is optional
103
public void setRemoteHomeImpl(String JavaDoc value) {
104         this.setValue(REMOTE_HOME_IMPL, value);
105     }
106
107     //
108
public String JavaDoc getRemoteHomeImpl() {
109         return (String JavaDoc)this.getValue(REMOTE_HOME_IMPL);
110     }
111
112     // This attribute is optional
113
public void setLocalHomeImpl(String JavaDoc value) {
114         this.setValue(LOCAL_HOME_IMPL, value);
115     }
116
117     //
118
public String JavaDoc getLocalHomeImpl() {
119         return (String JavaDoc)this.getValue(LOCAL_HOME_IMPL);
120     }
121
122     //
123
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
124         comparators.add(c);
125     }
126
127     //
128
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
129         comparators.remove(c);
130     }
131     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
132         boolean restrictionFailure = false;
133         // Validating property remoteImpl
134
if (getRemoteImpl() != null) {
135         }
136         // Validating property localImpl
137
if (getLocalImpl() != null) {
138         }
139         // Validating property remoteHomeImpl
140
if (getRemoteHomeImpl() != null) {
141         }
142         // Validating property localHomeImpl
143
if (getLocalHomeImpl() != null) {
144         }
145     }
146
147     // Dump the content of this bean returning it as a String
148
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
149         String JavaDoc s;
150         Object JavaDoc o;
151         org.netbeans.modules.schema2beans.BaseBean n;
152         str.append(indent);
153         str.append("RemoteImpl"); // NOI18N
154
str.append(indent+"\t"); // NOI18N
155
str.append("<"); // NOI18N
156
s = this.getRemoteImpl();
157         str.append((s==null?"null":s.trim())); // NOI18N
158
str.append(">\n"); // NOI18N
159
this.dumpAttributes(REMOTE_IMPL, 0, str, indent);
160
161         str.append(indent);
162         str.append("LocalImpl"); // NOI18N
163
str.append(indent+"\t"); // NOI18N
164
str.append("<"); // NOI18N
165
s = this.getLocalImpl();
166         str.append((s==null?"null":s.trim())); // NOI18N
167
str.append(">\n"); // NOI18N
168
this.dumpAttributes(LOCAL_IMPL, 0, str, indent);
169
170         str.append(indent);
171         str.append("RemoteHomeImpl"); // NOI18N
172
str.append(indent+"\t"); // NOI18N
173
str.append("<"); // NOI18N
174
s = this.getRemoteHomeImpl();
175         str.append((s==null?"null":s.trim())); // NOI18N
176
str.append(">\n"); // NOI18N
177
this.dumpAttributes(REMOTE_HOME_IMPL, 0, str, indent);
178
179         str.append(indent);
180         str.append("LocalHomeImpl"); // NOI18N
181
str.append(indent+"\t"); // NOI18N
182
str.append("<"); // NOI18N
183
s = this.getLocalHomeImpl();
184         str.append((s==null?"null":s.trim())); // NOI18N
185
str.append(">\n"); // NOI18N
186
this.dumpAttributes(LOCAL_HOME_IMPL, 0, str, indent);
187
188     }
189     public String JavaDoc dumpBeanNode(){
190         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
191         str.append("GenClasses\n"); // NOI18N
192
this.dump(str, "\n "); // NOI18N
193
return str.toString();
194     }}
195
196 // END_NOI18N
197

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

1043
Popular Tags