|
Added
Link Here
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" |
| 3 |
targetNamespace="http://java.sun.com/xml/ns/javaee" |
| 4 |
xmlns:javaee="http://java.sun.com/xml/ns/javaee" |
| 5 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 6 |
elementFormDefault="qualified" |
| 7 |
attributeFormDefault="unqualified" |
| 8 |
version="3.2"> |
| 9 |
<xsd:annotation> |
| 10 |
<xsd:documentation> |
| 11 |
|
| 12 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
| 13 |
|
| 14 |
Copyright (c) 2009-2013 Oracle and/or its affiliates. All rights reserved. |
| 15 |
|
| 16 |
The contents of this file are subject to the terms of either the GNU |
| 17 |
General Public License Version 2 only ("GPL") or the Common Development |
| 18 |
and Distribution License("CDDL") (collectively, the "License"). You |
| 19 |
may not use this file except in compliance with the License. You can |
| 20 |
obtain a copy of the License at |
| 21 |
https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html |
| 22 |
or packager/legal/LICENSE.txt. See the License for the specific |
| 23 |
language governing permissions and limitations under the License. |
| 24 |
|
| 25 |
When distributing the software, include this License Header Notice in each |
| 26 |
file and include the License file at packager/legal/LICENSE.txt. |
| 27 |
|
| 28 |
GPL Classpath Exception: |
| 29 |
Oracle designates this particular file as subject to the "Classpath" |
| 30 |
exception as provided by Oracle in the GPL Version 2 section of the License |
| 31 |
file that accompanied this code. |
| 32 |
|
| 33 |
Modifications: |
| 34 |
If applicable, add the following below the License Header, with the fields |
| 35 |
enclosed by brackets [] replaced by your own identifying information: |
| 36 |
"Portions Copyright [year] [name of copyright owner]" |
| 37 |
|
| 38 |
Contributor(s): |
| 39 |
If you wish your version of this file to be governed by only the CDDL or |
| 40 |
only the GPL Version 2, indicate your decision by adding "[Contributor] |
| 41 |
elects to include this software in this distribution under the [CDDL or GPL |
| 42 |
Version 2] license." If you don't indicate a single choice of license, a |
| 43 |
recipient has the option to distribute your version of this file under |
| 44 |
either the CDDL, the GPL Version 2 or to extend the choice of license to |
| 45 |
its licensees as provided above. However, if you add GPL Version 2 code |
| 46 |
and therefore, elected the GPL Version 2 license, then the option applies |
| 47 |
only if the new code is made subject to such option by the copyright |
| 48 |
holder. |
| 49 |
|
| 50 |
</xsd:documentation> |
| 51 |
</xsd:annotation> |
| 52 |
|
| 53 |
<xsd:annotation> |
| 54 |
<xsd:documentation> |
| 55 |
<![CDATA[[ |
| 56 |
This is the XML Schema for the EJB 3.2 deployment descriptor. |
| 57 |
|
| 58 |
All EJB deployment descriptors must indicate |
| 59 |
the schema by using the Java EE namespace: |
| 60 |
|
| 61 |
http://java.sun.com/xml/ns/javaee |
| 62 |
|
| 63 |
and by indicating the version of the schema by |
| 64 |
using the version element as shown below: |
| 65 |
|
| 66 |
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" |
| 67 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 68 |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee |
| 69 |
http://java.sun.com/xml/ns/javaee/ejb-jar_3_2.xsd" |
| 70 |
version="3.2"> |
| 71 |
... |
| 72 |
</ejb-jar> |
| 73 |
|
| 74 |
The instance documents may indicate the published version of |
| 75 |
the schema using the xsi:schemaLocation attribute for the |
| 76 |
Java EE namespace with the following location: |
| 77 |
|
| 78 |
http://java.sun.com/xml/ns/javaee/ejb-jar_3_2.xsd |
| 79 |
|
| 80 |
]]> |
| 81 |
</xsd:documentation> |
| 82 |
</xsd:annotation> |
| 83 |
|
| 84 |
<xsd:annotation> |
| 85 |
<xsd:documentation> |
| 86 |
|
| 87 |
The following conventions apply to all Java EE |
| 88 |
deployment descriptor elements unless indicated otherwise. |
| 89 |
|
| 90 |
- In elements that specify a pathname to a file within the |
| 91 |
same JAR file, relative filenames (i.e., those not |
| 92 |
starting with "/") are considered relative to the root of |
| 93 |
the JAR file's namespace. Absolute filenames (i.e., those |
| 94 |
starting with "/") also specify names in the root of the |
| 95 |
JAR file's namespace. In general, relative names are |
| 96 |
preferred. The exception is .war files where absolute |
| 97 |
names are preferred for consistency with the Servlet API. |
| 98 |
|
| 99 |
</xsd:documentation> |
| 100 |
</xsd:annotation> |
| 101 |
|
| 102 |
<xsd:include schemaLocation="javaee_7.xsd"/> |
| 103 |
|
| 104 |
|
| 105 |
<!-- **************************************************** --> |
| 106 |
|
| 107 |
<xsd:element name="ejb-jar" |
| 108 |
type="javaee:ejb-jarType"> |
| 109 |
<xsd:annotation> |
| 110 |
<xsd:documentation> |
| 111 |
|
| 112 |
This is the root of the ejb-jar deployment descriptor. |
| 113 |
|
| 114 |
</xsd:documentation> |
| 115 |
</xsd:annotation> |
| 116 |
<xsd:key name="ejb-name-key"> |
| 117 |
<xsd:annotation> |
| 118 |
<xsd:documentation> |
| 119 |
|
| 120 |
The ejb-name element contains the name of an enterprise |
| 121 |
bean. The name must be unique within the ejb-jar file or |
| 122 |
.war file. |
| 123 |
|
| 124 |
</xsd:documentation> |
| 125 |
</xsd:annotation> |
| 126 |
<xsd:selector xpath="javaee:enterprise-beans/*"/> |
| 127 |
<xsd:field xpath="javaee:ejb-name"/> |
| 128 |
</xsd:key> |
| 129 |
<xsd:keyref name="ejb-name-references" |
| 130 |
refer="javaee:ejb-name-key"> |
| 131 |
<xsd:annotation> |
| 132 |
<xsd:documentation> |
| 133 |
|
| 134 |
The keyref indicates the references from |
| 135 |
relationship-role-source must be to a specific ejb-name |
| 136 |
defined within the scope of enterprise-beans element. |
| 137 |
|
| 138 |
</xsd:documentation> |
| 139 |
</xsd:annotation> |
| 140 |
<xsd:selector xpath=".//javaee:ejb-relationship-role/javaee:relationship-role-source"/> |
| 141 |
<xsd:field xpath="javaee:ejb-name"/> |
| 142 |
</xsd:keyref> |
| 143 |
<xsd:key name="role-name-key"> |
| 144 |
<xsd:annotation> |
| 145 |
<xsd:documentation> |
| 146 |
|
| 147 |
A role-name-key is specified to allow the references |
| 148 |
from the security-role-refs. |
| 149 |
|
| 150 |
</xsd:documentation> |
| 151 |
</xsd:annotation> |
| 152 |
<xsd:selector xpath="javaee:assembly-descriptor/javaee:security-role"/> |
| 153 |
<xsd:field xpath="javaee:role-name"/> |
| 154 |
</xsd:key> |
| 155 |
<xsd:keyref name="role-name-references" |
| 156 |
refer="javaee:role-name-key"> |
| 157 |
<xsd:annotation> |
| 158 |
<xsd:documentation> |
| 159 |
|
| 160 |
The keyref indicates the references from |
| 161 |
security-role-ref to a specified role-name. |
| 162 |
|
| 163 |
</xsd:documentation> |
| 164 |
</xsd:annotation> |
| 165 |
<xsd:selector xpath="javaee:enterprise-beans/*/javaee:security-role-ref"/> |
| 166 |
<xsd:field xpath="javaee:role-link"/> |
| 167 |
</xsd:keyref> |
| 168 |
</xsd:element> |
| 169 |
|
| 170 |
|
| 171 |
<!-- **************************************************** --> |
| 172 |
|
| 173 |
<xsd:complexType name="access-timeoutType"> |
| 174 |
<xsd:annotation> |
| 175 |
<xsd:documentation> |
| 176 |
|
| 177 |
The access-timeoutType represents the maximum amount of |
| 178 |
time (in a given time unit) that the container should wait for |
| 179 |
a concurrency lock before throwing a timeout exception to the |
| 180 |
client. |
| 181 |
|
| 182 |
A timeout value of 0 means concurrent access is not permitted. |
| 183 |
|
| 184 |
A timeout value of -1 means wait indefinitely to acquire a lock. |
| 185 |
|
| 186 |
</xsd:documentation> |
| 187 |
</xsd:annotation> |
| 188 |
<xsd:sequence> |
| 189 |
<xsd:element name="timeout" |
| 190 |
type="javaee:xsdIntegerType"/> |
| 191 |
<xsd:element name="unit" |
| 192 |
type="javaee:time-unit-typeType"/> |
| 193 |
</xsd:sequence> |
| 194 |
<xsd:attribute name="id" |
| 195 |
type="xsd:ID"/> |
| 196 |
</xsd:complexType> |
| 197 |
|
| 198 |
|
| 199 |
<!-- **************************************************** --> |
| 200 |
|
| 201 |
<xsd:complexType name="async-methodType"> |
| 202 |
<xsd:annotation> |
| 203 |
<xsd:documentation> |
| 204 |
|
| 205 |
The async-methodType element specifies that a session |
| 206 |
bean method has asynchronous invocation semantics. |
| 207 |
|
| 208 |
</xsd:documentation> |
| 209 |
</xsd:annotation> |
| 210 |
<xsd:sequence> |
| 211 |
<xsd:element name="method-name" |
| 212 |
type="javaee:string"/> |
| 213 |
<xsd:element name="method-params" |
| 214 |
type="javaee:method-paramsType" |
| 215 |
minOccurs="0"/> |
| 216 |
</xsd:sequence> |
| 217 |
<xsd:attribute name="id" |
| 218 |
type="xsd:ID"/> |
| 219 |
</xsd:complexType> |
| 220 |
|
| 221 |
|
| 222 |
<!-- **************************************************** --> |
| 223 |
|
| 224 |
<xsd:complexType name="activation-configType"> |
| 225 |
<xsd:annotation> |
| 226 |
<xsd:documentation> |
| 227 |
|
| 228 |
The activation-configType defines information about the |
| 229 |
expected configuration properties of the message-driven bean |
| 230 |
in its operational environment. This may include information |
| 231 |
about message acknowledgement, message selector, expected |
| 232 |
destination type, destination or connection factory lookup |
| 233 |
string, subscription name, etc. |
| 234 |
|
| 235 |
The configuration information is expressed in terms of |
| 236 |
name/value configuration properties. |
| 237 |
|
| 238 |
The properties that are recognized for a particular |
| 239 |
message-driven bean are determined by the messaging type. |
| 240 |
|
| 241 |
</xsd:documentation> |
| 242 |
</xsd:annotation> |
| 243 |
<xsd:sequence> |
| 244 |
<xsd:element name="description" |
| 245 |
type="javaee:descriptionType" |
| 246 |
minOccurs="0" |
| 247 |
maxOccurs="unbounded"/> |
| 248 |
<xsd:element name="activation-config-property" |
| 249 |
type="javaee:activation-config-propertyType" |
| 250 |
maxOccurs="unbounded"/> |
| 251 |
</xsd:sequence> |
| 252 |
<xsd:attribute name="id" |
| 253 |
type="xsd:ID"/> |
| 254 |
</xsd:complexType> |
| 255 |
|
| 256 |
|
| 257 |
<!-- **************************************************** --> |
| 258 |
|
| 259 |
<xsd:complexType name="activation-config-propertyType"> |
| 260 |
<xsd:annotation> |
| 261 |
<xsd:documentation> |
| 262 |
|
| 263 |
The activation-config-propertyType contains a name/value |
| 264 |
configuration property pair for a message-driven bean. |
| 265 |
|
| 266 |
The properties that are recognized for a particular |
| 267 |
message-driven bean are determined by the messaging type. |
| 268 |
|
| 269 |
</xsd:documentation> |
| 270 |
</xsd:annotation> |
| 271 |
<xsd:sequence> |
| 272 |
<xsd:element name="activation-config-property-name" |
| 273 |
type="javaee:xsdStringType"> |
| 274 |
<xsd:annotation> |
| 275 |
<xsd:documentation> |
| 276 |
|
| 277 |
The activation-config-property-name element contains |
| 278 |
the name for an activation configuration property of |
| 279 |
a message-driven bean. |
| 280 |
|
| 281 |
For JMS message-driven beans, the following property |
| 282 |
names are recognized: acknowledgeMode, |
| 283 |
messageSelector, destinationType, subscriptionDurability, |
| 284 |
destinationLookup, connectionFactoryLookup, subscriptionName, |
| 285 |
clientId, and shareSubscriptions. |
| 286 |
|
| 287 |
</xsd:documentation> |
| 288 |
</xsd:annotation> |
| 289 |
</xsd:element> |
| 290 |
<xsd:element name="activation-config-property-value" |
| 291 |
type="javaee:xsdStringType"> |
| 292 |
<xsd:annotation> |
| 293 |
<xsd:documentation> |
| 294 |
|
| 295 |
The activation-config-property-value element |
| 296 |
contains the value for an activation configuration |
| 297 |
property of a message-driven bean. |
| 298 |
|
| 299 |
</xsd:documentation> |
| 300 |
</xsd:annotation> |
| 301 |
</xsd:element> |
| 302 |
</xsd:sequence> |
| 303 |
<xsd:attribute name="id" |
| 304 |
type="xsd:ID"/> |
| 305 |
</xsd:complexType> |
| 306 |
|
| 307 |
|
| 308 |
<!-- **************************************************** --> |
| 309 |
|
| 310 |
<xsd:complexType name="around-invokeType"> |
| 311 |
<xsd:annotation> |
| 312 |
<xsd:documentation> |
| 313 |
|
| 314 |
The around-invoke type specifies a method on a |
| 315 |
class to be called during the around invoke portion of an |
| 316 |
ejb invocation. Note that each class may have only one |
| 317 |
around invoke method and that the method may not be |
| 318 |
overloaded. |
| 319 |
|
| 320 |
If the class element is missing then |
| 321 |
the class defining the callback is assumed to be the |
| 322 |
interceptor class or component class in scope at the |
| 323 |
location in the descriptor in which the around invoke |
| 324 |
definition appears. |
| 325 |
|
| 326 |
</xsd:documentation> |
| 327 |
</xsd:annotation> |
| 328 |
<xsd:sequence> |
| 329 |
<xsd:element name="class" |
| 330 |
type="javaee:fully-qualified-classType" |
| 331 |
minOccurs="0"/> |
| 332 |
<xsd:element name="method-name" |
| 333 |
type="javaee:java-identifierType"/> |
| 334 |
</xsd:sequence> |
| 335 |
</xsd:complexType> |
| 336 |
|
| 337 |
|
| 338 |
<!-- **************************************************** --> |
| 339 |
|
| 340 |
<xsd:complexType name="around-timeoutType"> |
| 341 |
<xsd:annotation> |
| 342 |
<xsd:documentation> |
| 343 |
|
| 344 |
The around-timeout type specifies a method on a |
| 345 |
class to be called during the around-timeout portion of |
| 346 |
a timer timeout callback. Note that each class may have |
| 347 |
only one around-timeout method and that the method may not |
| 348 |
be overloaded. |
| 349 |
|
| 350 |
If the class element is missing then |
| 351 |
the class defining the callback is assumed to be the |
| 352 |
interceptor class or component class in scope at the |
| 353 |
location in the descriptor in which the around-timeout |
| 354 |
definition appears. |
| 355 |
|
| 356 |
</xsd:documentation> |
| 357 |
</xsd:annotation> |
| 358 |
<xsd:sequence> |
| 359 |
<xsd:element name="class" |
| 360 |
type="javaee:fully-qualified-classType" |
| 361 |
minOccurs="0"/> |
| 362 |
<xsd:element name="method-name" |
| 363 |
type="javaee:java-identifierType"/> |
| 364 |
</xsd:sequence> |
| 365 |
</xsd:complexType> |
| 366 |
|
| 367 |
|
| 368 |
<!-- **************************************************** --> |
| 369 |
|
| 370 |
<xsd:complexType name="assembly-descriptorType"> |
| 371 |
<xsd:annotation> |
| 372 |
<xsd:documentation> |
| 373 |
|
| 374 |
The assembly-descriptorType defines |
| 375 |
application-assembly information. |
| 376 |
|
| 377 |
The application-assembly information consists of the |
| 378 |
following parts: the definition of security roles, the |
| 379 |
definition of method permissions, the definition of |
| 380 |
transaction attributes for enterprise beans with |
| 381 |
container-managed transaction demarcation, the definition |
| 382 |
of interceptor bindings, a list of |
| 383 |
methods to be excluded from being invoked, and a list of |
| 384 |
exception types that should be treated as application exceptions. |
| 385 |
|
| 386 |
All the parts are optional in the sense that they are |
| 387 |
omitted if the lists represented by them are empty. |
| 388 |
|
| 389 |
Providing an assembly-descriptor in the deployment |
| 390 |
descriptor is optional for the ejb-jar file or .war file producer. |
| 391 |
|
| 392 |
</xsd:documentation> |
| 393 |
</xsd:annotation> |
| 394 |
<xsd:sequence> |
| 395 |
<xsd:element name="security-role" |
| 396 |
type="javaee:security-roleType" |
| 397 |
minOccurs="0" |
| 398 |
maxOccurs="unbounded"/> |
| 399 |
<xsd:element name="method-permission" |
| 400 |
type="javaee:method-permissionType" |
| 401 |
minOccurs="0" |
| 402 |
maxOccurs="unbounded"/> |
| 403 |
<xsd:element name="container-transaction" |
| 404 |
type="javaee:container-transactionType" |
| 405 |
minOccurs="0" |
| 406 |
maxOccurs="unbounded"/> |
| 407 |
<xsd:element name="interceptor-binding" |
| 408 |
type="javaee:interceptor-bindingType" |
| 409 |
minOccurs="0" |
| 410 |
maxOccurs="unbounded"/> |
| 411 |
<xsd:element name="message-destination" |
| 412 |
type="javaee:message-destinationType" |
| 413 |
minOccurs="0" |
| 414 |
maxOccurs="unbounded"/> |
| 415 |
<xsd:element name="exclude-list" |
| 416 |
type="javaee:exclude-listType" |
| 417 |
minOccurs="0"/> |
| 418 |
<xsd:element name="application-exception" |
| 419 |
type="javaee:application-exceptionType" |
| 420 |
minOccurs="0" |
| 421 |
maxOccurs="unbounded"/> |
| 422 |
</xsd:sequence> |
| 423 |
<xsd:attribute name="id" |
| 424 |
type="xsd:ID"/> |
| 425 |
</xsd:complexType> |
| 426 |
|
| 427 |
|
| 428 |
<!-- **************************************************** --> |
| 429 |
|
| 430 |
<xsd:complexType name="cmp-fieldType"> |
| 431 |
<xsd:annotation> |
| 432 |
<xsd:documentation> |
| 433 |
|
| 434 |
The cmp-fieldType describes a container-managed field. The |
| 435 |
cmp-fieldType contains an optional description of the field, |
| 436 |
and the name of the field. |
| 437 |
|
| 438 |
</xsd:documentation> |
| 439 |
</xsd:annotation> |
| 440 |
<xsd:sequence> |
| 441 |
<xsd:element name="description" |
| 442 |
type="javaee:descriptionType" |
| 443 |
minOccurs="0" |
| 444 |
maxOccurs="unbounded"/> |
| 445 |
<xsd:element name="field-name" |
| 446 |
type="javaee:java-identifierType"> |
| 447 |
<xsd:annotation> |
| 448 |
<xsd:documentation> |
| 449 |
|
| 450 |
The field-name element specifies the name of a |
| 451 |
container managed field. |
| 452 |
|
| 453 |
The name of the cmp-field of an entity bean with |
| 454 |
cmp-version 2.x must begin with a lowercase |
| 455 |
letter. This field is accessed by methods whose |
| 456 |
names consists of the name of the field specified by |
| 457 |
field-name in which the first letter is uppercased, |
| 458 |
prefixed by "get" or "set". |
| 459 |
|
| 460 |
The name of the cmp-field of an entity bean with |
| 461 |
cmp-version 1.x must denote a public field of the |
| 462 |
enterprise bean class or one of its superclasses. |
| 463 |
|
| 464 |
</xsd:documentation> |
| 465 |
</xsd:annotation> |
| 466 |
</xsd:element> |
| 467 |
</xsd:sequence> |
| 468 |
<xsd:attribute name="id" |
| 469 |
type="xsd:ID"/> |
| 470 |
</xsd:complexType> |
| 471 |
|
| 472 |
|
| 473 |
<!-- **************************************************** --> |
| 474 |
|
| 475 |
<xsd:complexType name="cmp-versionType"> |
| 476 |
<xsd:annotation> |
| 477 |
<xsd:documentation> |
| 478 |
|
| 479 |
The cmp-versionType specifies the version of an entity bean |
| 480 |
with container-managed persistence. It is used by |
| 481 |
cmp-version elements. |
| 482 |
|
| 483 |
The value must be one of the two following: |
| 484 |
|
| 485 |
1.x |
| 486 |
2.x |
| 487 |
|
| 488 |
</xsd:documentation> |
| 489 |
</xsd:annotation> |
| 490 |
<xsd:simpleContent> |
| 491 |
<xsd:restriction base="javaee:string"> |
| 492 |
<xsd:enumeration value="1.x"/> |
| 493 |
<xsd:enumeration value="2.x"/> |
| 494 |
</xsd:restriction> |
| 495 |
</xsd:simpleContent> |
| 496 |
</xsd:complexType> |
| 497 |
|
| 498 |
|
| 499 |
<!-- **************************************************** --> |
| 500 |
|
| 501 |
<xsd:complexType name="cmr-fieldType"> |
| 502 |
<xsd:annotation> |
| 503 |
<xsd:documentation> |
| 504 |
|
| 505 |
The cmr-fieldType describes the Bean Provider's view of |
| 506 |
a relationship. It consists of an optional description, and |
| 507 |
the name and the class type of a field in the source of a |
| 508 |
role of a relationship. The cmr-field-name element |
| 509 |
corresponds to the name used for the get and set accessor |
| 510 |
methods for the relationship. The cmr-field-type element is |
| 511 |
used only for collection-valued cmr-fields. It specifies the |
| 512 |
type of the collection that is used. |
| 513 |
|
| 514 |
</xsd:documentation> |
| 515 |
</xsd:annotation> |
| 516 |
<xsd:sequence> |
| 517 |
<xsd:element name="description" |
| 518 |
type="javaee:descriptionType" |
| 519 |
minOccurs="0" |
| 520 |
maxOccurs="unbounded"/> |
| 521 |
<xsd:element name="cmr-field-name" |
| 522 |
type="javaee:string"> |
| 523 |
<xsd:annotation> |
| 524 |
<xsd:documentation> |
| 525 |
|
| 526 |
The cmr-field-name element specifies the name of a |
| 527 |
logical relationship field in the entity bean |
| 528 |
class. The name of the cmr-field must begin with a |
| 529 |
lowercase letter. This field is accessed by methods |
| 530 |
whose names consist of the name of the field |
| 531 |
specified by cmr-field-name in which the first |
| 532 |
letter is uppercased, prefixed by "get" or "set". |
| 533 |
|
| 534 |
</xsd:documentation> |
| 535 |
</xsd:annotation> |
| 536 |
</xsd:element> |
| 537 |
<xsd:element name="cmr-field-type" |
| 538 |
type="javaee:cmr-field-typeType" |
| 539 |
minOccurs="0"/> |
| 540 |
</xsd:sequence> |
| 541 |
<xsd:attribute name="id" |
| 542 |
type="xsd:ID"/> |
| 543 |
</xsd:complexType> |
| 544 |
|
| 545 |
|
| 546 |
<!-- **************************************************** --> |
| 547 |
|
| 548 |
<xsd:complexType name="cmr-field-typeType"> |
| 549 |
<xsd:annotation> |
| 550 |
<xsd:documentation> |
| 551 |
|
| 552 |
The cmr-field-type element specifies the class of a |
| 553 |
collection-valued logical relationship field in the entity |
| 554 |
bean class. The value of an element using cmr-field-typeType |
| 555 |
must be either: java.util.Collection or java.util.Set. |
| 556 |
|
| 557 |
</xsd:documentation> |
| 558 |
</xsd:annotation> |
| 559 |
<xsd:simpleContent> |
| 560 |
<xsd:restriction base="javaee:string"> |
| 561 |
<xsd:enumeration value="java.util.Collection"/> |
| 562 |
<xsd:enumeration value="java.util.Set"/> |
| 563 |
</xsd:restriction> |
| 564 |
</xsd:simpleContent> |
| 565 |
</xsd:complexType> |
| 566 |
|
| 567 |
|
| 568 |
<!-- **************************************************** --> |
| 569 |
|
| 570 |
<xsd:complexType name="concurrency-management-typeType"> |
| 571 |
<xsd:annotation> |
| 572 |
<xsd:documentation> |
| 573 |
|
| 574 |
The concurrency-management-typeType specifies the way concurrency |
| 575 |
is managed for a singleton or stateful session bean. |
| 576 |
|
| 577 |
The concurrency management type must be one of the following: |
| 578 |
|
| 579 |
Bean |
| 580 |
Container |
| 581 |
|
| 582 |
Bean managed concurrency can only be specified for a singleton bean. |
| 583 |
|
| 584 |
</xsd:documentation> |
| 585 |
</xsd:annotation> |
| 586 |
<xsd:simpleContent> |
| 587 |
<xsd:restriction base="javaee:string"> |
| 588 |
<xsd:enumeration value="Bean"/> |
| 589 |
<xsd:enumeration value="Container"/> |
| 590 |
</xsd:restriction> |
| 591 |
</xsd:simpleContent> |
| 592 |
</xsd:complexType> |
| 593 |
|
| 594 |
|
| 595 |
<!-- **************************************************** --> |
| 596 |
|
| 597 |
<xsd:complexType name="concurrent-lock-typeType"> |
| 598 |
<xsd:annotation> |
| 599 |
<xsd:documentation> |
| 600 |
|
| 601 |
The concurrent-lock-typeType specifies how the container must |
| 602 |
manage concurrent access to a method of a Singleton bean |
| 603 |
with container-managed concurrency. |
| 604 |
|
| 605 |
The container managed concurrency lock type must be one |
| 606 |
of the following : |
| 607 |
|
| 608 |
Read |
| 609 |
Write |
| 610 |
|
| 611 |
</xsd:documentation> |
| 612 |
</xsd:annotation> |
| 613 |
<xsd:simpleContent> |
| 614 |
<xsd:restriction base="javaee:string"> |
| 615 |
<xsd:enumeration value="Read"/> |
| 616 |
<xsd:enumeration value="Write"/> |
| 617 |
</xsd:restriction> |
| 618 |
</xsd:simpleContent> |
| 619 |
</xsd:complexType> |
| 620 |
|
| 621 |
|
| 622 |
<!-- **************************************************** --> |
| 623 |
|
| 624 |
<xsd:complexType name="concurrent-methodType"> |
| 625 |
<xsd:annotation> |
| 626 |
<xsd:documentation> |
| 627 |
|
| 628 |
The concurrent-methodType specifies information about a method |
| 629 |
of a bean with container managed concurrency. |
| 630 |
|
| 631 |
The optional lock element specifies the kind of concurrency |
| 632 |
lock asssociated with the method. |
| 633 |
|
| 634 |
The optional access-timeout element specifies the amount of |
| 635 |
time (in a given time unit) the container should wait for a |
| 636 |
concurrency lock before throwing an exception to the client. |
| 637 |
|
| 638 |
</xsd:documentation> |
| 639 |
</xsd:annotation> |
| 640 |
<xsd:sequence> |
| 641 |
<xsd:element name="method" |
| 642 |
type="javaee:named-methodType"/> |
| 643 |
<xsd:element name="lock" |
| 644 |
type="javaee:concurrent-lock-typeType" |
| 645 |
minOccurs="0"/> |
| 646 |
<xsd:element name="access-timeout" |
| 647 |
type="javaee:access-timeoutType" |
| 648 |
minOccurs="0"/> |
| 649 |
</xsd:sequence> |
| 650 |
<xsd:attribute name="id" |
| 651 |
type="xsd:ID"/> |
| 652 |
</xsd:complexType> |
| 653 |
|
| 654 |
|
| 655 |
<!-- **************************************************** --> |
| 656 |
|
| 657 |
<xsd:complexType name="container-transactionType"> |
| 658 |
<xsd:annotation> |
| 659 |
<xsd:documentation> |
| 660 |
|
| 661 |
The container-transactionType specifies how the container |
| 662 |
must manage transaction scopes for the enterprise bean's |
| 663 |
method invocations. It defines an optional description, a |
| 664 |
list of method elements, and a transaction attribute. The |
| 665 |
transaction attribute is to be applied to all the specified |
| 666 |
methods. |
| 667 |
|
| 668 |
</xsd:documentation> |
| 669 |
</xsd:annotation> |
| 670 |
<xsd:sequence> |
| 671 |
<xsd:element name="description" |
| 672 |
type="javaee:descriptionType" |
| 673 |
minOccurs="0" |
| 674 |
maxOccurs="unbounded"/> |
| 675 |
<xsd:element name="method" |
| 676 |
type="javaee:methodType" |
| 677 |
maxOccurs="unbounded"/> |
| 678 |
<xsd:element name="trans-attribute" |
| 679 |
type="javaee:trans-attributeType"/> |
| 680 |
</xsd:sequence> |
| 681 |
<xsd:attribute name="id" |
| 682 |
type="xsd:ID"/> |
| 683 |
</xsd:complexType> |
| 684 |
|
| 685 |
|
| 686 |
<!-- **************************************************** --> |
| 687 |
|
| 688 |
<xsd:complexType name="depends-onType"> |
| 689 |
<xsd:annotation> |
| 690 |
<xsd:documentation> |
| 691 |
|
| 692 |
The depends-onType is used to express initialization |
| 693 |
ordering dependencies between Singleton components. |
| 694 |
The depends-onType specifies the names of one or more |
| 695 |
Singleton beans in the same application as the referring |
| 696 |
Singleton, each of which must be initialized before |
| 697 |
the referring bean. |
| 698 |
|
| 699 |
Each dependent bean is expressed using ejb-link syntax. |
| 700 |
The order in which dependent beans are initialized at |
| 701 |
runtime is not guaranteed to match the order in which |
| 702 |
they are listed. |
| 703 |
|
| 704 |
</xsd:documentation> |
| 705 |
</xsd:annotation> |
| 706 |
<xsd:sequence> |
| 707 |
<xsd:element name="ejb-name" |
| 708 |
type="javaee:ejb-linkType" |
| 709 |
minOccurs="1" |
| 710 |
maxOccurs="unbounded"/> |
| 711 |
</xsd:sequence> |
| 712 |
<xsd:attribute name="id" |
| 713 |
type="xsd:ID"/> |
| 714 |
</xsd:complexType> |
| 715 |
|
| 716 |
|
| 717 |
<!-- **************************************************** --> |
| 718 |
|
| 719 |
<xsd:complexType name="ejb-classType"> |
| 720 |
<xsd:annotation> |
| 721 |
<xsd:documentation> |
| 722 |
<![CDATA[[ |
| 723 |
The ejb-classType contains the fully-qualified name of the |
| 724 |
enterprise bean's class. It is used by ejb-class elements. |
| 725 |
|
| 726 |
Example: |
| 727 |
|
| 728 |
<ejb-class>com.wombat.empl.EmployeeServiceBean</ejb-class> |
| 729 |
|
| 730 |
]]> |
| 731 |
</xsd:documentation> |
| 732 |
</xsd:annotation> |
| 733 |
<xsd:simpleContent> |
| 734 |
<xsd:restriction base="javaee:fully-qualified-classType"/> |
| 735 |
</xsd:simpleContent> |
| 736 |
</xsd:complexType> |
| 737 |
|
| 738 |
|
| 739 |
<!-- **************************************************** --> |
| 740 |
|
| 741 |
<xsd:complexType name="ejb-jarType"> |
| 742 |
<xsd:annotation> |
| 743 |
<xsd:documentation> |
| 744 |
|
| 745 |
The ejb-jarType defines the root element of the EJB |
| 746 |
deployment descriptor. It contains |
| 747 |
|
| 748 |
- an optional description of the ejb-jar file |
| 749 |
- an optional display name |
| 750 |
- an optional icon that contains a small and a large |
| 751 |
icon file name |
| 752 |
- an optional module name. Only applicable to |
| 753 |
stand-alone ejb-jars or ejb-jars packaged in an ear. |
| 754 |
Ignored if specified for an ejb-jar.xml within a .war file. |
| 755 |
In that case, standard .war file module-name rules apply. |
| 756 |
- structural information about all included |
| 757 |
enterprise beans that is not specified through |
| 758 |
annotations |
| 759 |
- structural information about interceptor classes |
| 760 |
- a descriptor for container managed relationships, |
| 761 |
if any. |
| 762 |
- an optional application-assembly descriptor |
| 763 |
- an optional name of an ejb-client-jar file for the |
| 764 |
ejb-jar. |
| 765 |
|
| 766 |
</xsd:documentation> |
| 767 |
</xsd:annotation> |
| 768 |
<xsd:sequence> |
| 769 |
<xsd:element name="module-name" |
| 770 |
type="javaee:string" |
| 771 |
minOccurs="0"/> |
| 772 |
<xsd:group ref="javaee:descriptionGroup"/> |
| 773 |
<xsd:element name="enterprise-beans" |
| 774 |
type="javaee:enterprise-beansType" |
| 775 |
minOccurs="0"/> |
| 776 |
<xsd:element name="interceptors" |
| 777 |
type="javaee:interceptorsType" |
| 778 |
minOccurs="0"/> |
| 779 |
<xsd:element name="relationships" |
| 780 |
type="javaee:relationshipsType" |
| 781 |
minOccurs="0"> |
| 782 |
<xsd:unique name="relationship-name-uniqueness"> |
| 783 |
<xsd:annotation> |
| 784 |
<xsd:documentation> |
| 785 |
|
| 786 |
The ejb-relation-name contains the name of a |
| 787 |
relation. The name must be unique within |
| 788 |
relationships. |
| 789 |
|
| 790 |
</xsd:documentation> |
| 791 |
</xsd:annotation> |
| 792 |
<xsd:selector xpath="javaee:ejb-relation"/> |
| 793 |
<xsd:field xpath="javaee:ejb-relation-name"/> |
| 794 |
</xsd:unique> |
| 795 |
</xsd:element> |
| 796 |
<xsd:element name="assembly-descriptor" |
| 797 |
type="javaee:assembly-descriptorType" |
| 798 |
minOccurs="0"> |
| 799 |
<xsd:annotation> |
| 800 |
<xsd:documentation> |
| 801 |
|
| 802 |
Providing an assembly-descriptor in the deployment |
| 803 |
descriptor is optional for the ejb-jar file or .war file |
| 804 |
producer. |
| 805 |
|
| 806 |
</xsd:documentation> |
| 807 |
</xsd:annotation> |
| 808 |
</xsd:element> |
| 809 |
<xsd:element name="ejb-client-jar" |
| 810 |
type="javaee:pathType" |
| 811 |
minOccurs="0"> |
| 812 |
<xsd:annotation> |
| 813 |
<xsd:documentation> |
| 814 |
<![CDATA[[ |
| 815 |
The optional ejb-client-jar element specifies a JAR |
| 816 |
file that contains the class files necessary for a |
| 817 |
client program to access the |
| 818 |
enterprise beans in the ejb-jar file. |
| 819 |
|
| 820 |
Example: |
| 821 |
|
| 822 |
<ejb-client-jar>employee_service_client.jar |
| 823 |
</ejb-client-jar> |
| 824 |
|
| 825 |
]]> |
| 826 |
</xsd:documentation> |
| 827 |
</xsd:annotation> |
| 828 |
</xsd:element> |
| 829 |
</xsd:sequence> |
| 830 |
<xsd:attribute name="version" |
| 831 |
type="javaee:dewey-versionType" |
| 832 |
fixed="3.2" |
| 833 |
use="required"> |
| 834 |
<xsd:annotation> |
| 835 |
<xsd:documentation> |
| 836 |
|
| 837 |
The version specifies the version of the |
| 838 |
EJB specification that the instance document must |
| 839 |
comply with. This information enables deployment tools |
| 840 |
to validate a particular EJB Deployment |
| 841 |
Descriptor with respect to a specific version of the EJB |
| 842 |
schema. |
| 843 |
|
| 844 |
</xsd:documentation> |
| 845 |
</xsd:annotation> |
| 846 |
</xsd:attribute> |
| 847 |
<xsd:attribute name="metadata-complete" |
| 848 |
type="xsd:boolean"> |
| 849 |
<xsd:annotation> |
| 850 |
<xsd:documentation> |
| 851 |
|
| 852 |
The metadata-complete attribute defines whether this |
| 853 |
deployment descriptor and other related deployment |
| 854 |
descriptors for this module (e.g., web service |
| 855 |
descriptors) are complete, or whether the class |
| 856 |
files available to this module and packaged with |
| 857 |
this application should be examined for annotations |
| 858 |
that specify deployment information. |
| 859 |
|
| 860 |
If metadata-complete is set to "true", the deployment |
| 861 |
tool must ignore any annotations that specify deployment |
| 862 |
information, which might be present in the class files |
| 863 |
of the application. |
| 864 |
|
| 865 |
If metadata-complete is not specified or is set to |
| 866 |
"false", the deployment tool must examine the class |
| 867 |
files of the application for annotations, as |
| 868 |
specified by the specifications. |
| 869 |
|
| 870 |
</xsd:documentation> |
| 871 |
</xsd:annotation> |
| 872 |
</xsd:attribute> |
| 873 |
<xsd:attribute name="id" |
| 874 |
type="xsd:ID"/> |
| 875 |
</xsd:complexType> |
| 876 |
|
| 877 |
|
| 878 |
<!-- **************************************************** --> |
| 879 |
|
| 880 |
<xsd:complexType name="ejb-nameType"> |
| 881 |
<xsd:annotation> |
| 882 |
<xsd:documentation> |
| 883 |
<![CDATA[[ |
| 884 |
The ejb-nameType specifies an enterprise bean's name. It is |
| 885 |
used by ejb-name elements. This name is assigned by the |
| 886 |
file producer to name the enterprise bean in the |
| 887 |
ejb-jar file or .war file's deployment descriptor. The name must be |
| 888 |
unique among the names of the enterprise beans in the same |
| 889 |
ejb-jar file or .war file. |
| 890 |
|
| 891 |
There is no architected relationship between the used |
| 892 |
ejb-name in the deployment descriptor and the JNDI name that |
| 893 |
the Deployer will assign to the enterprise bean's home. |
| 894 |
|
| 895 |
The name for an entity bean must conform to the lexical |
| 896 |
rules for an NMTOKEN. |
| 897 |
|
| 898 |
Example: |
| 899 |
|
| 900 |
<ejb-name>EmployeeService</ejb-name> |
| 901 |
|
| 902 |
]]> |
| 903 |
</xsd:documentation> |
| 904 |
</xsd:annotation> |
| 905 |
<xsd:simpleContent> |
| 906 |
<xsd:restriction base="javaee:xsdNMTOKENType"/> |
| 907 |
</xsd:simpleContent> |
| 908 |
</xsd:complexType> |
| 909 |
|
| 910 |
|
| 911 |
<!-- **************************************************** --> |
| 912 |
|
| 913 |
<xsd:complexType name="ejb-relationType"> |
| 914 |
<xsd:annotation> |
| 915 |
<xsd:documentation> |
| 916 |
|
| 917 |
The ejb-relationType describes a relationship between two |
| 918 |
entity beans with container-managed persistence. It is used |
| 919 |
by ejb-relation elements. It contains a description; an |
| 920 |
optional ejb-relation-name element; and exactly two |
| 921 |
relationship role declarations, defined by the |
| 922 |
ejb-relationship-role elements. The name of the |
| 923 |
relationship, if specified, is unique within the ejb-jar |
| 924 |
file. |
| 925 |
|
| 926 |
</xsd:documentation> |
| 927 |
</xsd:annotation> |
| 928 |
<xsd:sequence> |
| 929 |
<xsd:element name="description" |
| 930 |
type="javaee:descriptionType" |
| 931 |
minOccurs="0" |
| 932 |
maxOccurs="unbounded"/> |
| 933 |
<xsd:element name="ejb-relation-name" |
| 934 |
type="javaee:string" |
| 935 |
minOccurs="0"> |
| 936 |
<xsd:annotation> |
| 937 |
<xsd:documentation> |
| 938 |
|
| 939 |
The ejb-relation-name element provides a unique name |
| 940 |
within the ejb-jar file for a relationship. |
| 941 |
|
| 942 |
</xsd:documentation> |
| 943 |
</xsd:annotation> |
| 944 |
</xsd:element> |
| 945 |
<xsd:element name="ejb-relationship-role" |
| 946 |
type="javaee:ejb-relationship-roleType" |
| 947 |
minOccurs="2" |
| 948 |
maxOccurs="2"/> |
| 949 |
</xsd:sequence> |
| 950 |
<xsd:attribute name="id" |
| 951 |
type="xsd:ID"/> |
| 952 |
</xsd:complexType> |
| 953 |
|
| 954 |
|
| 955 |
<!-- **************************************************** --> |
| 956 |
|
| 957 |
<xsd:complexType name="ejb-relationship-roleType"> |
| 958 |
<xsd:annotation> |
| 959 |
<xsd:documentation> |
| 960 |
<![CDATA[[ |
| 961 |
The ejb-relationship-roleType describes a role within a |
| 962 |
relationship. There are two roles in each relationship. |
| 963 |
|
| 964 |
The ejb-relationship-roleType contains an optional |
| 965 |
description; an optional name for the relationship role; a |
| 966 |
specification of the multiplicity of the role; an optional |
| 967 |
specification of cascade-delete functionality for the role; |
| 968 |
the role source; and a declaration of the cmr-field, if any, |
| 969 |
by means of which the other side of the relationship is |
| 970 |
accessed from the perspective of the role source. |
| 971 |
|
| 972 |
The multiplicity and role-source element are mandatory. |
| 973 |
|
| 974 |
The relationship-role-source element designates an entity |
| 975 |
bean by means of an ejb-name element. For bidirectional |
| 976 |
relationships, both roles of a relationship must declare a |
| 977 |
relationship-role-source element that specifies a cmr-field |
| 978 |
in terms of which the relationship is accessed. The lack of |
| 979 |
a cmr-field element in an ejb-relationship-role specifies |
| 980 |
that the relationship is unidirectional in navigability and |
| 981 |
the entity bean that participates in the relationship is |
| 982 |
"not aware" of the relationship. |
| 983 |
|
| 984 |
Example: |
| 985 |
|
| 986 |
<ejb-relation> |
| 987 |
<ejb-relation-name>Product-LineItem</ejb-relation-name> |
| 988 |
<ejb-relationship-role> |
| 989 |
<ejb-relationship-role-name>product-has-lineitems |
| 990 |
</ejb-relationship-role-name> |
| 991 |
<multiplicity>One</multiplicity> |
| 992 |
<relationship-role-source> |
| 993 |
<ejb-name>ProductEJB</ejb-name> |
| 994 |
</relationship-role-source> |
| 995 |
</ejb-relationship-role> |
| 996 |
</ejb-relation> |
| 997 |
|
| 998 |
]]> |
| 999 |
</xsd:documentation> |
| 1000 |
</xsd:annotation> |
| 1001 |
<xsd:sequence> |
| 1002 |
<xsd:element name="description" |
| 1003 |
type="javaee:descriptionType" |
| 1004 |
minOccurs="0" |
| 1005 |
maxOccurs="unbounded"/> |
| 1006 |
<xsd:element name="ejb-relationship-role-name" |
| 1007 |
type="javaee:string" |
| 1008 |
minOccurs="0"> |
| 1009 |
<xsd:annotation> |
| 1010 |
<xsd:documentation> |
| 1011 |
|
| 1012 |
The ejb-relationship-role-name element defines a |
| 1013 |
name for a role that is unique within an |
| 1014 |
ejb-relation. Different relationships can use the |
| 1015 |
same name for a role. |
| 1016 |
|
| 1017 |
</xsd:documentation> |
| 1018 |
</xsd:annotation> |
| 1019 |
</xsd:element> |
| 1020 |
<xsd:element name="multiplicity" |
| 1021 |
type="javaee:multiplicityType"/> |
| 1022 |
<xsd:element name="cascade-delete" |
| 1023 |
type="javaee:emptyType" |
| 1024 |
minOccurs="0"> |
| 1025 |
<xsd:annotation> |
| 1026 |
<xsd:documentation> |
| 1027 |
|
| 1028 |
The cascade-delete element specifies that, within a |
| 1029 |
particular relationship, the lifetime of one or more |
| 1030 |
entity beans is dependent upon the lifetime of |
| 1031 |
another entity bean. The cascade-delete element can |
| 1032 |
only be specified for an ejb-relationship-role |
| 1033 |
element contained in an ejb-relation element in |
| 1034 |
which the other ejb-relationship-role |
| 1035 |
element specifies a multiplicity of One. |
| 1036 |
|
| 1037 |
</xsd:documentation> |
| 1038 |
</xsd:annotation> |
| 1039 |
</xsd:element> |
| 1040 |
<xsd:element name="relationship-role-source" |
| 1041 |
type="javaee:relationship-role-sourceType"/> |
| 1042 |
<xsd:element name="cmr-field" |
| 1043 |
type="javaee:cmr-fieldType" |
| 1044 |
minOccurs="0"/> |
| 1045 |
</xsd:sequence> |
| 1046 |
<xsd:attribute name="id" |
| 1047 |
type="xsd:ID"/> |
| 1048 |
</xsd:complexType> |
| 1049 |
|
| 1050 |
|
| 1051 |
<!-- **************************************************** --> |
| 1052 |
|
| 1053 |
<xsd:complexType name="enterprise-beansType"> |
| 1054 |
<xsd:annotation> |
| 1055 |
<xsd:documentation> |
| 1056 |
|
| 1057 |
The enterprise-beansType declares one or more enterprise |
| 1058 |
beans. Each bean can be a session, entity or message-driven |
| 1059 |
bean. |
| 1060 |
|
| 1061 |
</xsd:documentation> |
| 1062 |
</xsd:annotation> |
| 1063 |
<xsd:choice maxOccurs="unbounded"> |
| 1064 |
<xsd:element name="session" |
| 1065 |
type="javaee:session-beanType"> |
| 1066 |
<xsd:unique name="session-ejb-local-ref-name-uniqueness"> |
| 1067 |
<xsd:annotation> |
| 1068 |
<xsd:documentation> |
| 1069 |
|
| 1070 |
The ejb-ref-name element contains the name of |
| 1071 |
an EJB reference. The EJB reference is an entry in |
| 1072 |
the component's environment and is relative to the |
| 1073 |
java:comp/env context. The name must be unique within |
| 1074 |
the component. |
| 1075 |
|
| 1076 |
It is recommended that name be prefixed with "ejb/". |
| 1077 |
|
| 1078 |
</xsd:documentation> |
| 1079 |
</xsd:annotation> |
| 1080 |
<xsd:selector xpath="javaee:ejb-local-ref"/> |
| 1081 |
<xsd:field xpath="javaee:ejb-ref-name"/> |
| 1082 |
</xsd:unique> |
| 1083 |
<xsd:unique name="session-ejb-ref-name-uniqueness"> |
| 1084 |
<xsd:annotation> |
| 1085 |
<xsd:documentation> |
| 1086 |
|
| 1087 |
The ejb-ref-name element contains the name of an EJB |
| 1088 |
reference. The EJB reference is an entry in the |
| 1089 |
component's environment and is relative to the |
| 1090 |
java:comp/env context. The name must be unique |
| 1091 |
within the component. |
| 1092 |
|
| 1093 |
It is recommended that name is prefixed with "ejb/". |
| 1094 |
|
| 1095 |
</xsd:documentation> |
| 1096 |
</xsd:annotation> |
| 1097 |
<xsd:selector xpath="javaee:ejb-ref"/> |
| 1098 |
<xsd:field xpath="javaee:ejb-ref-name"/> |
| 1099 |
</xsd:unique> |
| 1100 |
<xsd:unique name="session-resource-env-ref-uniqueness"> |
| 1101 |
<xsd:annotation> |
| 1102 |
<xsd:documentation> |
| 1103 |
|
| 1104 |
The resource-env-ref-name element specifies the name |
| 1105 |
of a resource environment reference; its value is |
| 1106 |
the environment entry name used in the component |
| 1107 |
code. The name is a JNDI name relative to the |
| 1108 |
java:comp/env context and must be unique within an |
| 1109 |
component. |
| 1110 |
|
| 1111 |
</xsd:documentation> |
| 1112 |
</xsd:annotation> |
| 1113 |
<xsd:selector xpath="javaee:resource-env-ref"/> |
| 1114 |
<xsd:field xpath="javaee:resource-env-ref-name"/> |
| 1115 |
</xsd:unique> |
| 1116 |
<xsd:unique name="session-message-destination-ref-uniqueness"> |
| 1117 |
<xsd:annotation> |
| 1118 |
<xsd:documentation> |
| 1119 |
|
| 1120 |
The message-destination-ref-name element specifies the name |
| 1121 |
of a message destination reference; its value is |
| 1122 |
the message destination reference name used in the component |
| 1123 |
code. The name is a JNDI name relative to the |
| 1124 |
java:comp/env context and must be unique within an |
| 1125 |
component. |
| 1126 |
|
| 1127 |
</xsd:documentation> |
| 1128 |
</xsd:annotation> |
| 1129 |
<xsd:selector xpath="javaee:message-destination-ref"/> |
| 1130 |
<xsd:field xpath="javaee:message-destination-ref-name"/> |
| 1131 |
</xsd:unique> |
| 1132 |
<xsd:unique name="session-res-ref-name-uniqueness"> |
| 1133 |
<xsd:annotation> |
| 1134 |
<xsd:documentation> |
| 1135 |
|
| 1136 |
The res-ref-name element specifies the name of a |
| 1137 |
resource manager connection factory reference. The name |
| 1138 |
is a JNDI name relative to the java:comp/env context. |
| 1139 |
The name must be unique within an component. |
| 1140 |
|
| 1141 |
</xsd:documentation> |
| 1142 |
</xsd:annotation> |
| 1143 |
<xsd:selector xpath="javaee:resource-ref"/> |
| 1144 |
<xsd:field xpath="javaee:res-ref-name"/> |
| 1145 |
</xsd:unique> |
| 1146 |
<xsd:unique name="session-env-entry-name-uniqueness"> |
| 1147 |
<xsd:annotation> |
| 1148 |
<xsd:documentation> |
| 1149 |
|
| 1150 |
The env-entry-name element contains the name of a |
| 1151 |
component's environment entry. The name is a JNDI |
| 1152 |
name relative to the java:comp/env context. The |
| 1153 |
name must be unique within an component. |
| 1154 |
|
| 1155 |
</xsd:documentation> |
| 1156 |
</xsd:annotation> |
| 1157 |
<xsd:selector xpath="javaee:env-entry"/> |
| 1158 |
<xsd:field xpath="javaee:env-entry-name"/> |
| 1159 |
</xsd:unique> |
| 1160 |
</xsd:element> |
| 1161 |
<xsd:element name="entity" |
| 1162 |
type="javaee:entity-beanType"> |
| 1163 |
<xsd:unique name="entity-ejb-local-ref-name-uniqueness"> |
| 1164 |
<xsd:annotation> |
| 1165 |
<xsd:documentation> |
| 1166 |
|
| 1167 |
The ejb-ref-name element contains the name of |
| 1168 |
an EJB reference. The EJB reference is an entry in |
| 1169 |
the component's environment and is relative to the |
| 1170 |
java:comp/env context. The name must be unique within |
| 1171 |
the component. |
| 1172 |
|
| 1173 |
It is recommended that name be prefixed with "ejb/". |
| 1174 |
|
| 1175 |
</xsd:documentation> |
| 1176 |
</xsd:annotation> |
| 1177 |
<xsd:selector xpath="javaee:ejb-local-ref"/> |
| 1178 |
<xsd:field xpath="javaee:ejb-ref-name"/> |
| 1179 |
</xsd:unique> |
| 1180 |
<xsd:unique name="entity-ejb-ref-name-uniqueness"> |
| 1181 |
<xsd:annotation> |
| 1182 |
<xsd:documentation> |
| 1183 |
|
| 1184 |
The ejb-ref-name element contains the name of an EJB |
| 1185 |
reference. The EJB reference is an entry in the |
| 1186 |
component's environment and is relative to the |
| 1187 |
java:comp/env context. The name must be unique |
| 1188 |
within the component. |
| 1189 |
|
| 1190 |
It is recommended that name is prefixed with "ejb/". |
| 1191 |
|
| 1192 |
</xsd:documentation> |
| 1193 |
</xsd:annotation> |
| 1194 |
<xsd:selector xpath="javaee:ejb-ref"/> |
| 1195 |
<xsd:field xpath="javaee:ejb-ref-name"/> |
| 1196 |
</xsd:unique> |
| 1197 |
<xsd:unique name="entity-resource-env-ref-uniqueness"> |
| 1198 |
<xsd:annotation> |
| 1199 |
<xsd:documentation> |
| 1200 |
|
| 1201 |
The resource-env-ref-name element specifies the name |
| 1202 |
of a resource environment reference; its value is |
| 1203 |
the environment entry name used in the component |
| 1204 |
code. The name is a JNDI name relative to the |
| 1205 |
java:comp/env context and must be unique within an |
| 1206 |
component. |
| 1207 |
|
| 1208 |
</xsd:documentation> |
| 1209 |
</xsd:annotation> |
| 1210 |
<xsd:selector xpath="javaee:resource-env-ref"/> |
| 1211 |
<xsd:field xpath="javaee:resource-env-ref-name"/> |
| 1212 |
</xsd:unique> |
| 1213 |
<xsd:unique name="entity-message-destination-ref-uniqueness"> |
| 1214 |
<xsd:annotation> |
| 1215 |
<xsd:documentation> |
| 1216 |
|
| 1217 |
The message-destination-ref-name element specifies the name |
| 1218 |
of a message destination reference; its value is |
| 1219 |
the message destination reference name used in the component |
| 1220 |
code. The name is a JNDI name relative to the |
| 1221 |
java:comp/env context and must be unique within an |
| 1222 |
component. |
| 1223 |
|
| 1224 |
</xsd:documentation> |
| 1225 |
</xsd:annotation> |
| 1226 |
<xsd:selector xpath="javaee:message-destination-ref"/> |
| 1227 |
<xsd:field xpath="javaee:message-destination-ref-name"/> |
| 1228 |
</xsd:unique> |
| 1229 |
<xsd:unique name="entity-res-ref-name-uniqueness"> |
| 1230 |
<xsd:annotation> |
| 1231 |
<xsd:documentation> |
| 1232 |
|
| 1233 |
The res-ref-name element specifies the name of a |
| 1234 |
resource manager connection factory reference. The name |
| 1235 |
is a JNDI name relative to the java:comp/env context. |
| 1236 |
The name must be unique within an component. |
| 1237 |
|
| 1238 |
</xsd:documentation> |
| 1239 |
</xsd:annotation> |
| 1240 |
<xsd:selector xpath="javaee:resource-ref"/> |
| 1241 |
<xsd:field xpath="javaee:res-ref-name"/> |
| 1242 |
</xsd:unique> |
| 1243 |
<xsd:unique name="entity-env-entry-name-uniqueness"> |
| 1244 |
<xsd:annotation> |
| 1245 |
<xsd:documentation> |
| 1246 |
|
| 1247 |
The env-entry-name element contains the name of a |
| 1248 |
component's environment entry. The name is a JNDI |
| 1249 |
name relative to the java:comp/env context. The |
| 1250 |
name must be unique within an component. |
| 1251 |
|
| 1252 |
</xsd:documentation> |
| 1253 |
</xsd:annotation> |
| 1254 |
<xsd:selector xpath="javaee:env-entry"/> |
| 1255 |
<xsd:field xpath="javaee:env-entry-name"/> |
| 1256 |
</xsd:unique> |
| 1257 |
</xsd:element> |
| 1258 |
<xsd:element name="message-driven" |
| 1259 |
type="javaee:message-driven-beanType"> |
| 1260 |
<xsd:unique name="messaged-ejb-local-ref-name-uniqueness"> |
| 1261 |
<xsd:annotation> |
| 1262 |
<xsd:documentation> |
| 1263 |
|
| 1264 |
The ejb-ref-name element contains the name of |
| 1265 |
an EJB reference. The EJB reference is an entry in |
| 1266 |
the component's environment and is relative to the |
| 1267 |
java:comp/env context. The name must be unique within |
| 1268 |
the component. |
| 1269 |
|
| 1270 |
It is recommended that name be prefixed with "ejb/". |
| 1271 |
|
| 1272 |
</xsd:documentation> |
| 1273 |
</xsd:annotation> |
| 1274 |
<xsd:selector xpath="javaee:ejb-local-ref"/> |
| 1275 |
<xsd:field xpath="javaee:ejb-ref-name"/> |
| 1276 |
</xsd:unique> |
| 1277 |
<xsd:unique name="messaged-ejb-ref-name-uniqueness"> |
| 1278 |
<xsd:annotation> |
| 1279 |
<xsd:documentation> |
| 1280 |
|
| 1281 |
The ejb-ref-name element contains the name of an EJB |
| 1282 |
reference. The EJB reference is an entry in the |
| 1283 |
component's environment and is relative to the |
| 1284 |
java:comp/env context. The name must be unique |
| 1285 |
within the component. |
| 1286 |
|
| 1287 |
It is recommended that name is prefixed with "ejb/". |
| 1288 |
|
| 1289 |
</xsd:documentation> |
| 1290 |
</xsd:annotation> |
| 1291 |
<xsd:selector xpath="javaee:ejb-ref"/> |
| 1292 |
<xsd:field xpath="javaee:ejb-ref-name"/> |
| 1293 |
</xsd:unique> |
| 1294 |
<xsd:unique name="messaged-resource-env-ref-uniqueness"> |
| 1295 |
<xsd:annotation> |
| 1296 |
<xsd:documentation> |
| 1297 |
|
| 1298 |
The resource-env-ref-name element specifies the name |
| 1299 |
of a resource environment reference; its value is |
| 1300 |
the environment entry name used in the component |
| 1301 |
code. The name is a JNDI name relative to the |
| 1302 |
java:comp/env context and must be unique within an |
| 1303 |
component. |
| 1304 |
|
| 1305 |
</xsd:documentation> |
| 1306 |
</xsd:annotation> |
| 1307 |
<xsd:selector xpath="javaee:resource-env-ref"/> |
| 1308 |
<xsd:field xpath="javaee:resource-env-ref-name"/> |
| 1309 |
</xsd:unique> |
| 1310 |
<xsd:unique name="messaged-message-destination-ref-uniqueness"> |
| 1311 |
<xsd:annotation> |
| 1312 |
<xsd:documentation> |
| 1313 |
|
| 1314 |
The message-destination-ref-name element specifies the name |
| 1315 |
of a message destination reference; its value is |
| 1316 |
the message destination reference name used in the component |
| 1317 |
code. The name is a JNDI name relative to the |
| 1318 |
java:comp/env context and must be unique within an |
| 1319 |
component. |
| 1320 |
|
| 1321 |
</xsd:documentation> |
| 1322 |
</xsd:annotation> |
| 1323 |
<xsd:selector xpath="javaee:message-destination-ref"/> |
| 1324 |
<xsd:field xpath="javaee:message-destination-ref-name"/> |
| 1325 |
</xsd:unique> |
| 1326 |
<xsd:unique name="messaged-res-ref-name-uniqueness"> |
| 1327 |
<xsd:annotation> |
| 1328 |
<xsd:documentation> |
| 1329 |
|
| 1330 |
The res-ref-name element specifies the name of a |
| 1331 |
resource manager connection factory reference. The name |
| 1332 |
is a JNDI name relative to the java:comp/env context. |
| 1333 |
The name must be unique within an component. |
| 1334 |
|
| 1335 |
</xsd:documentation> |
| 1336 |
</xsd:annotation> |
| 1337 |
<xsd:selector xpath="javaee:resource-ref"/> |
| 1338 |
<xsd:field xpath="javaee:res-ref-name"/> |
| 1339 |
</xsd:unique> |
| 1340 |
<xsd:unique name="messaged-env-entry-name-uniqueness"> |
| 1341 |
<xsd:annotation> |
| 1342 |
<xsd:documentation> |
| 1343 |
|
| 1344 |
The env-entry-name element contains the name of a |
| 1345 |
component's environment entry. The name is a JNDI |
| 1346 |
name relative to the java:comp/env context. The |
| 1347 |
name must be unique within an component. |
| 1348 |
|
| 1349 |
</xsd:documentation> |
| 1350 |
</xsd:annotation> |
| 1351 |
<xsd:selector xpath="javaee:env-entry"/> |
| 1352 |
<xsd:field xpath="javaee:env-entry-name"/> |
| 1353 |
</xsd:unique> |
| 1354 |
</xsd:element> |
| 1355 |
</xsd:choice> |
| 1356 |
<xsd:attribute name="id" |
| 1357 |
type="xsd:ID"/> |
| 1358 |
</xsd:complexType> |
| 1359 |
|
| 1360 |
|
| 1361 |
<!-- **************************************************** --> |
| 1362 |
|
| 1363 |
<xsd:complexType name="entity-beanType"> |
| 1364 |
<xsd:annotation> |
| 1365 |
<xsd:documentation> |
| 1366 |
|
| 1367 |
The entity-beanType declares an entity bean. The declaration |
| 1368 |
consists of: |
| 1369 |
|
| 1370 |
- an optional description |
| 1371 |
- an optional display name |
| 1372 |
- an optional icon element that contains a small and a large |
| 1373 |
icon file name |
| 1374 |
- a unique name assigned to the enterprise bean |
| 1375 |
in the deployment descriptor |
| 1376 |
- an optional mapped-name element that can be used to provide |
| 1377 |
vendor-specific deployment information such as the physical |
| 1378 |
jndi-name of the entity bean's remote home interface. This |
| 1379 |
element is not required to be supported by all implementations. |
| 1380 |
Any use of this element is non-portable. |
| 1381 |
- the names of the entity bean's remote home |
| 1382 |
and remote interfaces, if any |
| 1383 |
- the names of the entity bean's local home and local |
| 1384 |
interfaces, if any |
| 1385 |
- the entity bean's implementation class |
| 1386 |
- the optional entity bean's persistence management type. If |
| 1387 |
this element is not specified it is defaulted to Container. |
| 1388 |
- the entity bean's primary key class name |
| 1389 |
- an indication of the entity bean's reentrancy |
| 1390 |
- an optional specification of the |
| 1391 |
entity bean's cmp-version |
| 1392 |
- an optional specification of the entity bean's |
| 1393 |
abstract schema name |
| 1394 |
- an optional list of container-managed fields |
| 1395 |
- an optional specification of the primary key |
| 1396 |
field |
| 1397 |
- an optional declaration of the bean's environment |
| 1398 |
entries |
| 1399 |
- an optional declaration of the bean's EJB |
| 1400 |
references |
| 1401 |
- an optional declaration of the bean's local |
| 1402 |
EJB references |
| 1403 |
- an optional declaration of the bean's web |
| 1404 |
service references |
| 1405 |
- an optional declaration of the security role |
| 1406 |
references |
| 1407 |
- an optional declaration of the security identity |
| 1408 |
to be used for the execution of the bean's methods |
| 1409 |
- an optional declaration of the bean's |
| 1410 |
resource manager connection factory references |
| 1411 |
- an optional declaration of the bean's |
| 1412 |
resource environment references |
| 1413 |
- an optional declaration of the bean's message |
| 1414 |
destination references |
| 1415 |
- an optional set of query declarations |
| 1416 |
for finder and select methods for an entity |
| 1417 |
bean with cmp-version 2.x. |
| 1418 |
|
| 1419 |
The optional abstract-schema-name element must be specified |
| 1420 |
for an entity bean with container-managed persistence and |
| 1421 |
cmp-version 2.x. |
| 1422 |
|
| 1423 |
The optional primkey-field may be present in the descriptor |
| 1424 |
if the entity's persistence-type is Container. |
| 1425 |
|
| 1426 |
The optional cmp-version element may be present in the |
| 1427 |
descriptor if the entity's persistence-type is Container. If |
| 1428 |
the persistence-type is Container and the cmp-version |
| 1429 |
element is not specified, its value defaults to 2.x. |
| 1430 |
|
| 1431 |
The optional home and remote elements must be specified if |
| 1432 |
the entity bean cmp-version is 1.x. |
| 1433 |
|
| 1434 |
The optional home and remote elements must be specified if |
| 1435 |
the entity bean has a remote home and remote interface. |
| 1436 |
|
| 1437 |
The optional local-home and local elements must be specified |
| 1438 |
if the entity bean has a local home and local interface. |
| 1439 |
|
| 1440 |
Either both the local-home and the local elements or both |
| 1441 |
the home and the remote elements must be specified. |
| 1442 |
|
| 1443 |
The optional query elements must be present if the |
| 1444 |
persistence-type is Container and the cmp-version is 2.x and |
| 1445 |
query methods other than findByPrimaryKey have been defined |
| 1446 |
for the entity bean. |
| 1447 |
|
| 1448 |
The other elements that are optional are "optional" in the |
| 1449 |
sense that they are omitted if the lists represented by them |
| 1450 |
are empty. |
| 1451 |
|
| 1452 |
At least one cmp-field element must be present in the |
| 1453 |
descriptor if the entity's persistence-type is Container and |
| 1454 |
the cmp-version is 1.x, and none must not be present if the |
| 1455 |
entity's persistence-type is Bean. |
| 1456 |
|
| 1457 |
</xsd:documentation> |
| 1458 |
</xsd:annotation> |
| 1459 |
<xsd:sequence> |
| 1460 |
<xsd:group ref="javaee:descriptionGroup"/> |
| 1461 |
<xsd:element name="ejb-name" |
| 1462 |
type="javaee:ejb-nameType"/> |
| 1463 |
<xsd:element name="mapped-name" |
| 1464 |
type="javaee:xsdStringType" |
| 1465 |
minOccurs="0"/> |
| 1466 |
<xsd:element name="home" |
| 1467 |
type="javaee:homeType" |
| 1468 |
minOccurs="0"/> |
| 1469 |
<xsd:element name="remote" |
| 1470 |
type="javaee:remoteType" |
| 1471 |
minOccurs="0"/> |
| 1472 |
<xsd:element name="local-home" |
| 1473 |
type="javaee:local-homeType" |
| 1474 |
minOccurs="0"/> |
| 1475 |
<xsd:element name="local" |
| 1476 |
type="javaee:localType" |
| 1477 |
minOccurs="0"/> |
| 1478 |
<xsd:element name="ejb-class" |
| 1479 |
type="javaee:ejb-classType"/> |
| 1480 |
<xsd:element name="persistence-type" |
| 1481 |
type="javaee:persistence-typeType"/> |
| 1482 |
<xsd:element name="prim-key-class" |
| 1483 |
type="javaee:fully-qualified-classType"> |
| 1484 |
<xsd:annotation> |
| 1485 |
<xsd:documentation> |
| 1486 |
|
| 1487 |
The prim-key-class element contains the |
| 1488 |
fully-qualified name of an |
| 1489 |
entity bean's primary key class. |
| 1490 |
|
| 1491 |
If the definition of the primary key class is |
| 1492 |
deferred to deployment time, the prim-key-class |
| 1493 |
element should specify java.lang.Object. |
| 1494 |
|
| 1495 |
</xsd:documentation> |
| 1496 |
</xsd:annotation> |
| 1497 |
</xsd:element> |
| 1498 |
<xsd:element name="reentrant" |
| 1499 |
type="javaee:true-falseType"> |
| 1500 |
<xsd:annotation> |
| 1501 |
<xsd:documentation> |
| 1502 |
|
| 1503 |
The reentrant element specifies whether an entity |
| 1504 |
bean is reentrant or not. |
| 1505 |
|
| 1506 |
The reentrant element must be one of the two |
| 1507 |
following: true or false |
| 1508 |
|
| 1509 |
</xsd:documentation> |
| 1510 |
</xsd:annotation> |
| 1511 |
</xsd:element> |
| 1512 |
<xsd:element name="cmp-version" |
| 1513 |
type="javaee:cmp-versionType" |
| 1514 |
minOccurs="0"/> |
| 1515 |
<xsd:element name="abstract-schema-name" |
| 1516 |
type="javaee:java-identifierType" |
| 1517 |
minOccurs="0"> |
| 1518 |
<xsd:annotation> |
| 1519 |
<xsd:documentation> |
| 1520 |
|
| 1521 |
The abstract-schema-name element specifies the name |
| 1522 |
of the abstract schema type of an entity bean with |
| 1523 |
cmp-version 2.x. It is used in EJB QL queries. |
| 1524 |
|
| 1525 |
For example, the abstract-schema-name for an entity |
| 1526 |
bean whose local interface is |
| 1527 |
com.acme.commerce.Order might be Order. |
| 1528 |
|
| 1529 |
</xsd:documentation> |
| 1530 |
</xsd:annotation> |
| 1531 |
</xsd:element> |
| 1532 |
<xsd:element name="cmp-field" |
| 1533 |
type="javaee:cmp-fieldType" |
| 1534 |
minOccurs="0" |
| 1535 |
maxOccurs="unbounded"/> |
| 1536 |
<xsd:element name="primkey-field" |
| 1537 |
type="javaee:string" |
| 1538 |
minOccurs="0"> |
| 1539 |
<xsd:annotation> |
| 1540 |
<xsd:documentation> |
| 1541 |
|
| 1542 |
The primkey-field element is used to specify the |
| 1543 |
name of the primary key field for an entity with |
| 1544 |
container-managed persistence. |
| 1545 |
|
| 1546 |
The primkey-field must be one of the fields declared |
| 1547 |
in the cmp-field element, and the type of the field |
| 1548 |
must be the same as the primary key type. |
| 1549 |
|
| 1550 |
The primkey-field element is not used if the primary |
| 1551 |
key maps to multiple container-managed fields |
| 1552 |
(i.e. the key is a compound key). In this case, the |
| 1553 |
fields of the primary key class must be public, and |
| 1554 |
their names must correspond to the field names of |
| 1555 |
the entity bean class that comprise the key. |
| 1556 |
|
| 1557 |
</xsd:documentation> |
| 1558 |
</xsd:annotation> |
| 1559 |
</xsd:element> |
| 1560 |
<xsd:group ref="javaee:jndiEnvironmentRefsGroup"/> |
| 1561 |
<xsd:element name="security-role-ref" |
| 1562 |
type="javaee:security-role-refType" |
| 1563 |
minOccurs="0" |
| 1564 |
maxOccurs="unbounded"/> |
| 1565 |
<xsd:element name="security-identity" |
| 1566 |
type="javaee:security-identityType" |
| 1567 |
minOccurs="0"/> |
| 1568 |
<xsd:element name="query" |
| 1569 |
type="javaee:queryType" |
| 1570 |
minOccurs="0" |
| 1571 |
maxOccurs="unbounded"/> |
| 1572 |
</xsd:sequence> |
| 1573 |
<xsd:attribute name="id" |
| 1574 |
type="xsd:ID"/> |
| 1575 |
</xsd:complexType> |
| 1576 |
|
| 1577 |
|
| 1578 |
<!-- **************************************************** --> |
| 1579 |
|
| 1580 |
<xsd:complexType name="exclude-listType"> |
| 1581 |
<xsd:annotation> |
| 1582 |
<xsd:documentation> |
| 1583 |
|
| 1584 |
The exclude-listType specifies one or more methods which |
| 1585 |
the Assembler marks to be uncallable. |
| 1586 |
|
| 1587 |
If the method permission relation contains methods that are |
| 1588 |
in the exclude list, the Deployer should consider those |
| 1589 |
methods to be uncallable. |
| 1590 |
|
| 1591 |
</xsd:documentation> |
| 1592 |
</xsd:annotation> |
| 1593 |
<xsd:sequence> |
| 1594 |
<xsd:element name="description" |
| 1595 |
type="javaee:descriptionType" |
| 1596 |
minOccurs="0" |
| 1597 |
maxOccurs="unbounded"/> |
| 1598 |
<xsd:element name="method" |
| 1599 |
type="javaee:methodType" |
| 1600 |
maxOccurs="unbounded"/> |
| 1601 |
</xsd:sequence> |
| 1602 |
<xsd:attribute name="id" |
| 1603 |
type="xsd:ID"/> |
| 1604 |
</xsd:complexType> |
| 1605 |
|
| 1606 |
|
| 1607 |
<!-- **************************************************** --> |
| 1608 |
|
| 1609 |
<xsd:complexType name="application-exceptionType"> |
| 1610 |
<xsd:annotation> |
| 1611 |
<xsd:documentation> |
| 1612 |
|
| 1613 |
The application-exceptionType declares an application |
| 1614 |
exception. The declaration consists of: |
| 1615 |
|
| 1616 |
- the exception class. When the container receives |
| 1617 |
an exception of this type, it is required to |
| 1618 |
forward this exception as an applcation exception |
| 1619 |
to the client regardless of whether it is a checked |
| 1620 |
or unchecked exception. |
| 1621 |
- an optional rollback element. If this element is |
| 1622 |
set to true, the container must rollback the current |
| 1623 |
transaction before forwarding the exception to the |
| 1624 |
client. If not specified, it defaults to false. |
| 1625 |
- an optional inherited element. If this element is |
| 1626 |
set to true, subclasses of the exception class type |
| 1627 |
are also automatically considered application |
| 1628 |
exceptions (unless overriden at a lower level). |
| 1629 |
If set to false, only the exception class type is |
| 1630 |
considered an application-exception, not its |
| 1631 |
exception subclasses. If not specified, this |
| 1632 |
value defaults to true. |
| 1633 |
|
| 1634 |
</xsd:documentation> |
| 1635 |
</xsd:annotation> |
| 1636 |
<xsd:sequence> |
| 1637 |
<xsd:element name="exception-class" |
| 1638 |
type="javaee:fully-qualified-classType"/> |
| 1639 |
<xsd:element name="rollback" |
| 1640 |
type="javaee:true-falseType" |
| 1641 |
minOccurs="0"/> |
| 1642 |
<xsd:element name="inherited" |
| 1643 |
type="javaee:true-falseType" |
| 1644 |
minOccurs="0"/> |
| 1645 |
</xsd:sequence> |
| 1646 |
<xsd:attribute name="id" |
| 1647 |
type="xsd:ID"/> |
| 1648 |
</xsd:complexType> |
| 1649 |
|
| 1650 |
|
| 1651 |
<!-- **************************************************** --> |
| 1652 |
|
| 1653 |
<xsd:complexType name="interceptorsType"> |
| 1654 |
<xsd:annotation> |
| 1655 |
<xsd:documentation> |
| 1656 |
|
| 1657 |
The interceptorsType element declares one or more interceptor |
| 1658 |
classes used by components within this ejb-jar file or .war file. The declaration |
| 1659 |
consists of : |
| 1660 |
|
| 1661 |
- An optional description. |
| 1662 |
- One or more interceptor elements. |
| 1663 |
|
| 1664 |
</xsd:documentation> |
| 1665 |
</xsd:annotation> |
| 1666 |
<xsd:sequence> |
| 1667 |
<xsd:element name="description" |
| 1668 |
type="javaee:descriptionType" |
| 1669 |
minOccurs="0" |
| 1670 |
maxOccurs="unbounded"/> |
| 1671 |
<xsd:element name="interceptor" |
| 1672 |
type="javaee:interceptorType" |
| 1673 |
maxOccurs="unbounded"/> |
| 1674 |
</xsd:sequence> |
| 1675 |
<xsd:attribute name="id" |
| 1676 |
type="xsd:ID"/> |
| 1677 |
</xsd:complexType> |
| 1678 |
|
| 1679 |
|
| 1680 |
<!-- **************************************************** --> |
| 1681 |
|
| 1682 |
<xsd:complexType name="interceptorType"> |
| 1683 |
<xsd:annotation> |
| 1684 |
<xsd:documentation> |
| 1685 |
|
| 1686 |
The interceptorType element declares information about a single |
| 1687 |
interceptor class. It consists of : |
| 1688 |
|
| 1689 |
- An optional description. |
| 1690 |
- The fully-qualified name of the interceptor class. |
| 1691 |
- An optional list of around invoke methods declared on the |
| 1692 |
interceptor class and/or its super-classes. |
| 1693 |
- An optional list of around timeout methods declared on the |
| 1694 |
interceptor class and/or its super-classes. |
| 1695 |
- An optional list environment dependencies for the interceptor |
| 1696 |
class and/or its super-classes. |
| 1697 |
- An optional list of post-activate methods declared on the |
| 1698 |
interceptor class and/or its super-classes. |
| 1699 |
- An optional list of pre-passivate methods declared on the |
| 1700 |
interceptor class and/or its super-classes. |
| 1701 |
|
| 1702 |
</xsd:documentation> |
| 1703 |
</xsd:annotation> |
| 1704 |
<xsd:sequence> |
| 1705 |
<xsd:element name="description" |
| 1706 |
type="javaee:descriptionType" |
| 1707 |
minOccurs="0" |
| 1708 |
maxOccurs="unbounded"/> |
| 1709 |
<xsd:element name="interceptor-class" |
| 1710 |
type="javaee:fully-qualified-classType"/> |
| 1711 |
<xsd:element name="around-invoke" |
| 1712 |
type="javaee:around-invokeType" |
| 1713 |
minOccurs="0" |
| 1714 |
maxOccurs="unbounded"/> |
| 1715 |
<xsd:element name="around-timeout" |
| 1716 |
type="javaee:around-timeoutType" |
| 1717 |
minOccurs="0" |
| 1718 |
maxOccurs="unbounded"/> |
| 1719 |
<xsd:group ref="javaee:jndiEnvironmentRefsGroup"/> |
| 1720 |
<xsd:element name="post-activate" |
| 1721 |
type="javaee:lifecycle-callbackType" |
| 1722 |
minOccurs="0" |
| 1723 |
maxOccurs="unbounded"/> |
| 1724 |
<xsd:element name="pre-passivate" |
| 1725 |
type="javaee:lifecycle-callbackType" |
| 1726 |
minOccurs="0" |
| 1727 |
maxOccurs="unbounded"/> |
| 1728 |
</xsd:sequence> |
| 1729 |
<xsd:attribute name="id" |
| 1730 |
type="xsd:ID"/> |
| 1731 |
</xsd:complexType> |
| 1732 |
|
| 1733 |
|
| 1734 |
<!-- **************************************************** --> |
| 1735 |
|
| 1736 |
<xsd:complexType name="interceptor-bindingType"> |
| 1737 |
<xsd:annotation> |
| 1738 |
<xsd:documentation> |
| 1739 |
<![CDATA[[ |
| 1740 |
The interceptor-bindingType element describes the binding of |
| 1741 |
interceptor classes to beans within the ejb-jar file or .war file. |
| 1742 |
It consists of : |
| 1743 |
|
| 1744 |
- An optional description. |
| 1745 |
- The name of an ejb within the module or the wildcard value "*", |
| 1746 |
which is used to define interceptors that are bound to all |
| 1747 |
beans in the ejb-jar file or .war file. |
| 1748 |
- A list of interceptor classes that are bound to the contents of |
| 1749 |
the ejb-name element or a specification of the total ordering |
| 1750 |
over the interceptors defined for the given level and above. |
| 1751 |
- An optional exclude-default-interceptors element. If set to true, |
| 1752 |
specifies that default interceptors are not to be applied to |
| 1753 |
a bean-class and/or business method. |
| 1754 |
- An optional exclude-class-interceptors element. If set to true, |
| 1755 |
specifies that class interceptors are not to be applied to |
| 1756 |
a business method. |
| 1757 |
- An optional set of method elements for describing the name/params |
| 1758 |
of a method-level interceptor. |
| 1759 |
|
| 1760 |
Interceptors bound to all classes using the wildcard syntax |
| 1761 |
"*" are default interceptors for the components in the ejb-jar file or .war file. |
| 1762 |
In addition, interceptors may be bound at the level of the bean |
| 1763 |
class (class-level interceptors) or business methods (method-level |
| 1764 |
interceptors ). |
| 1765 |
|
| 1766 |
The binding of interceptors to classes is additive. If interceptors |
| 1767 |
are bound at the class-level and/or default-level as well as the |
| 1768 |
method-level, both class-level and/or default-level as well as |
| 1769 |
method-level will apply. |
| 1770 |
|
| 1771 |
There are four possible styles of the interceptor element syntax : |
| 1772 |
|
| 1773 |
1. |
| 1774 |
<interceptor-binding> |
| 1775 |
<ejb-name>*</ejb-name> |
| 1776 |
<interceptor-class>INTERCEPTOR</interceptor-class> |
| 1777 |
</interceptor-binding> |
| 1778 |
|
| 1779 |
Specifying the ejb-name as the wildcard value "*" designates |
| 1780 |
default interceptors (interceptors that apply to all session and |
| 1781 |
message-driven beans contained in the ejb-jar file or .war file). |
| 1782 |
|
| 1783 |
2. |
| 1784 |
<interceptor-binding> |
| 1785 |
<ejb-name>EJBNAME</ejb-name> |
| 1786 |
<interceptor-class>INTERCEPTOR</interceptor-class> |
| 1787 |
</interceptor-binding> |
| 1788 |
|
| 1789 |
This style is used to refer to interceptors associated with the |
| 1790 |
specified enterprise bean(class-level interceptors). |
| 1791 |
|
| 1792 |
3. |
| 1793 |
<interceptor-binding> |
| 1794 |
<ejb-name>EJBNAME</ejb-name> |
| 1795 |
<interceptor-class>INTERCEPTOR</interceptor-class> |
| 1796 |
<method> |
| 1797 |
<method-name>METHOD</method-name> |
| 1798 |
</method> |
| 1799 |
</interceptor-binding> |
| 1800 |
|
| 1801 |
This style is used to associate a method-level interceptor with |
| 1802 |
the specified enterprise bean. If there are multiple methods |
| 1803 |
with the same overloaded name, the element of this style refers |
| 1804 |
to all the methods with the overloaded name. Method-level |
| 1805 |
interceptors can only be associated with business methods of the |
| 1806 |
bean class. Note that the wildcard value "*" cannot be used |
| 1807 |
to specify method-level interceptors. |
| 1808 |
|
| 1809 |
4. |
| 1810 |
<interceptor-binding> |
| 1811 |
<ejb-name>EJBNAME</ejb-name> |
| 1812 |
<interceptor-class>INTERCEPTOR</interceptor-class> |
| 1813 |
<method> |
| 1814 |
<method-name>METHOD</method-name> |
| 1815 |
<method-params> |
| 1816 |
<method-param>PARAM-1</method-param> |
| 1817 |
<method-param>PARAM-2</method-param> |
| 1818 |
... |
| 1819 |
<method-param>PARAM-N</method-param> |
| 1820 |
</method-params> |
| 1821 |
</method> |
| 1822 |
</interceptor-binding> |
| 1823 |
|
| 1824 |
This style is used to associate a method-level interceptor with |
| 1825 |
the specified method of the specified enterprise bean. This |
| 1826 |
style is used to refer to a single method within a set of methods |
| 1827 |
with an overloaded name. The values PARAM-1 through PARAM-N |
| 1828 |
are the fully-qualified Java types of the method's input parameters |
| 1829 |
(if the method has no input arguments, the method-params element |
| 1830 |
contains no method-param elements). Arrays are specified by the |
| 1831 |
array element's type, followed by one or more pair of square |
| 1832 |
brackets (e.g. int[][]). |
| 1833 |
|
| 1834 |
]]> |
| 1835 |
</xsd:documentation> |
| 1836 |
</xsd:annotation> |
| 1837 |
<xsd:sequence> |
| 1838 |
<xsd:element name="description" |
| 1839 |
type="javaee:descriptionType" |
| 1840 |
minOccurs="0" |
| 1841 |
maxOccurs="unbounded"/> |
| 1842 |
<xsd:element name="ejb-name" |
| 1843 |
type="javaee:string"/> |
| 1844 |
<xsd:choice> |
| 1845 |
<xsd:element name="interceptor-class" |
| 1846 |
type="javaee:fully-qualified-classType" |
| 1847 |
minOccurs="0" |
| 1848 |
maxOccurs="unbounded"/> |
| 1849 |
<xsd:element name="interceptor-order" |
| 1850 |
type="javaee:interceptor-orderType" |
| 1851 |
minOccurs="1"/> |
| 1852 |
</xsd:choice> |
| 1853 |
<xsd:element name="exclude-default-interceptors" |
| 1854 |
type="javaee:true-falseType" |
| 1855 |
minOccurs="0"/> |
| 1856 |
<xsd:element name="exclude-class-interceptors" |
| 1857 |
type="javaee:true-falseType" |
| 1858 |
minOccurs="0"/> |
| 1859 |
<xsd:element name="method" |
| 1860 |
type="javaee:named-methodType" |
| 1861 |
minOccurs="0"/> |
| 1862 |
</xsd:sequence> |
| 1863 |
<xsd:attribute name="id" |
| 1864 |
type="xsd:ID"/> |
| 1865 |
</xsd:complexType> |
| 1866 |
|
| 1867 |
|
| 1868 |
<!-- **************************************************** --> |
| 1869 |
|
| 1870 |
<xsd:complexType name="interceptor-orderType"> |
| 1871 |
<xsd:annotation> |
| 1872 |
<xsd:documentation> |
| 1873 |
|
| 1874 |
The interceptor-orderType element describes a total ordering |
| 1875 |
of interceptor classes. |
| 1876 |
|
| 1877 |
</xsd:documentation> |
| 1878 |
</xsd:annotation> |
| 1879 |
<xsd:sequence> |
| 1880 |
<xsd:element name="interceptor-class" |
| 1881 |
type="javaee:fully-qualified-classType" |
| 1882 |
minOccurs="1" |
| 1883 |
maxOccurs="unbounded"/> |
| 1884 |
</xsd:sequence> |
| 1885 |
<xsd:attribute name="id" |
| 1886 |
type="xsd:ID"/> |
| 1887 |
</xsd:complexType> |
| 1888 |
|
| 1889 |
|
| 1890 |
<!-- **************************************************** --> |
| 1891 |
|
| 1892 |
<xsd:complexType name="named-methodType"> |
| 1893 |
<xsd:sequence> |
| 1894 |
<xsd:element name="method-name" |
| 1895 |
type="javaee:string"/> |
| 1896 |
<xsd:element name="method-params" |
| 1897 |
type="javaee:method-paramsType" |
| 1898 |
minOccurs="0"/> |
| 1899 |
</xsd:sequence> |
| 1900 |
<xsd:attribute name="id" |
| 1901 |
type="xsd:ID"/> |
| 1902 |
</xsd:complexType> |
| 1903 |
|
| 1904 |
|
| 1905 |
<!-- **************************************************** --> |
| 1906 |
|
| 1907 |
<xsd:complexType name="init-methodType"> |
| 1908 |
<xsd:sequence> |
| 1909 |
<xsd:element name="create-method" |
| 1910 |
type="javaee:named-methodType"/> |
| 1911 |
<xsd:element name="bean-method" |
| 1912 |
type="javaee:named-methodType"/> |
| 1913 |
</xsd:sequence> |
| 1914 |
<xsd:attribute name="id" |
| 1915 |
type="xsd:ID"/> |
| 1916 |
</xsd:complexType> |
| 1917 |
|
| 1918 |
|
| 1919 |
<!-- **************************************************** --> |
| 1920 |
|
| 1921 |
<xsd:complexType name="remove-methodType"> |
| 1922 |
<xsd:sequence> |
| 1923 |
<xsd:element name="bean-method" |
| 1924 |
type="javaee:named-methodType"/> |
| 1925 |
<xsd:element name="retain-if-exception" |
| 1926 |
type="javaee:true-falseType" |
| 1927 |
minOccurs="0"/> |
| 1928 |
</xsd:sequence> |
| 1929 |
<xsd:attribute name="id" |
| 1930 |
type="xsd:ID"/> |
| 1931 |
</xsd:complexType> |
| 1932 |
|
| 1933 |
|
| 1934 |
<!-- **************************************************** --> |
| 1935 |
|
| 1936 |
<xsd:complexType name="message-driven-beanType"> |
| 1937 |
<xsd:annotation> |
| 1938 |
<xsd:documentation> |
| 1939 |
|
| 1940 |
The message-driven element declares a message-driven |
| 1941 |
bean. The declaration consists of: |
| 1942 |
|
| 1943 |
- an optional description |
| 1944 |
- an optional display name |
| 1945 |
- an optional icon element that contains a small and a large |
| 1946 |
icon file name. |
| 1947 |
- a name assigned to the enterprise bean in |
| 1948 |
the deployment descriptor |
| 1949 |
- an optional mapped-name element that can be used to provide |
| 1950 |
vendor-specific deployment information such as the physical |
| 1951 |
jndi-name of destination from which this message-driven bean |
| 1952 |
should consume. This element is not required to be supported |
| 1953 |
by all implementations. Any use of this element is non-portable. |
| 1954 |
- the message-driven bean's implementation class |
| 1955 |
- an optional declaration of the bean's messaging |
| 1956 |
type |
| 1957 |
- an optional declaration of the bean's timeout method for |
| 1958 |
handling programmatically created timers |
| 1959 |
- an optional declaration of timers to be automatically created at |
| 1960 |
deployment time |
| 1961 |
- the optional message-driven bean's transaction management |
| 1962 |
type. If it is not defined, it is defaulted to Container. |
| 1963 |
- an optional declaration of the bean's |
| 1964 |
message-destination-type |
| 1965 |
- an optional declaration of the bean's |
| 1966 |
message-destination-link |
| 1967 |
- an optional declaration of the message-driven bean's |
| 1968 |
activation configuration properties |
| 1969 |
- an optional list of the message-driven bean class and/or |
| 1970 |
superclass around-invoke methods. |
| 1971 |
- an optional list of the message-driven bean class and/or |
| 1972 |
superclass around-timeout methods. |
| 1973 |
- an optional declaration of the bean's environment |
| 1974 |
entries |
| 1975 |
- an optional declaration of the bean's EJB references |
| 1976 |
- an optional declaration of the bean's local EJB |
| 1977 |
references |
| 1978 |
- an optional declaration of the bean's web service |
| 1979 |
references |
| 1980 |
- an optional declaration of the security role |
| 1981 |
references |
| 1982 |
- an optional declaration of the security |
| 1983 |
identity to be used for the execution of the bean's |
| 1984 |
methods |
| 1985 |
- an optional declaration of the bean's |
| 1986 |
resource manager connection factory |
| 1987 |
references |
| 1988 |
- an optional declaration of the bean's resource |
| 1989 |
environment references. |
| 1990 |
- an optional declaration of the bean's message |
| 1991 |
destination references |
| 1992 |
|
| 1993 |
</xsd:documentation> |
| 1994 |
</xsd:annotation> |
| 1995 |
<xsd:sequence> |
| 1996 |
<xsd:group ref="javaee:descriptionGroup"/> |
| 1997 |
<xsd:element name="ejb-name" |
| 1998 |
type="javaee:ejb-nameType"/> |
| 1999 |
<xsd:element name="mapped-name" |
| 2000 |
type="javaee:xsdStringType" |
| 2001 |
minOccurs="0"/> |
| 2002 |
<xsd:element name="ejb-class" |
| 2003 |
type="javaee:ejb-classType" |
| 2004 |
minOccurs="0"> |
| 2005 |
<xsd:annotation> |
| 2006 |
<xsd:documentation> |
| 2007 |
|
| 2008 |
The ejb-class element specifies the fully qualified name |
| 2009 |
of the bean class for this ejb. It is required unless |
| 2010 |
there is a component-defining annotation for the same |
| 2011 |
ejb-name. |
| 2012 |
|
| 2013 |
</xsd:documentation> |
| 2014 |
</xsd:annotation> |
| 2015 |
</xsd:element> |
| 2016 |
<xsd:element name="messaging-type" |
| 2017 |
type="javaee:fully-qualified-classType" |
| 2018 |
minOccurs="0"> |
| 2019 |
<xsd:annotation> |
| 2020 |
<xsd:documentation> |
| 2021 |
|
| 2022 |
The messaging-type element specifies the message |
| 2023 |
listener interface of the message-driven bean. |
| 2024 |
|
| 2025 |
</xsd:documentation> |
| 2026 |
</xsd:annotation> |
| 2027 |
</xsd:element> |
| 2028 |
<xsd:element name="timeout-method" |
| 2029 |
type="javaee:named-methodType" |
| 2030 |
minOccurs="0"> |
| 2031 |
<xsd:annotation> |
| 2032 |
<xsd:documentation> |
| 2033 |
|
| 2034 |
The timeout-method element specifies the method that |
| 2035 |
will receive callbacks for programmatically |
| 2036 |
created timers. |
| 2037 |
|
| 2038 |
</xsd:documentation> |
| 2039 |
</xsd:annotation> |
| 2040 |
</xsd:element> |
| 2041 |
<xsd:element name="timer" |
| 2042 |
type="javaee:timerType" |
| 2043 |
minOccurs="0" |
| 2044 |
maxOccurs="unbounded"/> |
| 2045 |
<xsd:element name="transaction-type" |
| 2046 |
type="javaee:transaction-typeType" |
| 2047 |
minOccurs="0"/> |
| 2048 |
<xsd:element name="message-destination-type" |
| 2049 |
type="javaee:message-destination-typeType" |
| 2050 |
minOccurs="0"/> |
| 2051 |
<xsd:element name="message-destination-link" |
| 2052 |
type="javaee:message-destination-linkType" |
| 2053 |
minOccurs="0"/> |
| 2054 |
<xsd:element name="activation-config" |
| 2055 |
type="javaee:activation-configType" |
| 2056 |
minOccurs="0"/> |
| 2057 |
<xsd:element name="around-invoke" |
| 2058 |
type="javaee:around-invokeType" |
| 2059 |
minOccurs="0" |
| 2060 |
maxOccurs="unbounded"/> |
| 2061 |
<xsd:element name="around-timeout" |
| 2062 |
type="javaee:around-timeoutType" |
| 2063 |
minOccurs="0" |
| 2064 |
maxOccurs="unbounded"/> |
| 2065 |
<xsd:group ref="javaee:jndiEnvironmentRefsGroup"/> |
| 2066 |
<xsd:element name="security-role-ref" |
| 2067 |
type="javaee:security-role-refType" |
| 2068 |
minOccurs="0" |
| 2069 |
maxOccurs="unbounded"> |
| 2070 |
</xsd:element> |
| 2071 |
<xsd:element name="security-identity" |
| 2072 |
type="javaee:security-identityType" |
| 2073 |
minOccurs="0"/> |
| 2074 |
</xsd:sequence> |
| 2075 |
<xsd:attribute name="id" |
| 2076 |
type="xsd:ID"/> |
| 2077 |
</xsd:complexType> |
| 2078 |
|
| 2079 |
|
| 2080 |
<!-- **************************************************** --> |
| 2081 |
|
| 2082 |
<xsd:complexType name="methodType"> |
| 2083 |
<xsd:annotation> |
| 2084 |
<xsd:documentation> |
| 2085 |
<![CDATA[[ |
| 2086 |
The methodType is used to denote a method of an enterprise |
| 2087 |
bean. The method may be any of the following or a set of |
| 2088 |
any of the following methods may be designated: |
| 2089 |
business interface method |
| 2090 |
home interface method |
| 2091 |
component interface method |
| 2092 |
web service endpoint interface method |
| 2093 |
no-interface view method |
| 2094 |
singleton session bean lifecycle callback method |
| 2095 |
stateful session bean lifecycle callback method (see |
| 2096 |
limitations) |
| 2097 |
timeout callback method |
| 2098 |
message-driven bean message listener method |
| 2099 |
|
| 2100 |
The ejb-name element must be the name of one of the enterprise |
| 2101 |
beans declared in the deployment descriptor. |
| 2102 |
The optional method-intf element allows distinguishing between a |
| 2103 |
method with the same signature that is multiply defined |
| 2104 |
across any of the above. |
| 2105 |
The method-name element specifies the method name. |
| 2106 |
The optional method-params elements identify a single method |
| 2107 |
among multiple methods with an overloaded method name. |
| 2108 |
|
| 2109 |
There are three possible styles of using methodType element |
| 2110 |
within a method element: |
| 2111 |
|
| 2112 |
1. |
| 2113 |
<method> |
| 2114 |
<ejb-name>EJBNAME</ejb-name> |
| 2115 |
<method-name>*</method-name> |
| 2116 |
</method> |
| 2117 |
|
| 2118 |
This style is used to refer to all of the following methods |
| 2119 |
of the specified enterprise bean: |
| 2120 |
business interface methods |
| 2121 |
home interface methods |
| 2122 |
component interface methods |
| 2123 |
web service endpoint interface methods |
| 2124 |
no-interface view methods |
| 2125 |
singleton session bean lifecycle callback methods |
| 2126 |
timeout callback methods |
| 2127 |
message-driven bean message listener method |
| 2128 |
|
| 2129 |
This style may be used for stateful session bean lifecycle |
| 2130 |
callback methods to specify their transaction attributes, |
| 2131 |
if used with the method-intf element that contains |
| 2132 |
LifecycleCallback as the value. |
| 2133 |
|
| 2134 |
2. |
| 2135 |
<method> |
| 2136 |
<ejb-name>EJBNAME</ejb-name> |
| 2137 |
<method-name>METHOD</method-name> |
| 2138 |
</method> |
| 2139 |
|
| 2140 |
This style is used to refer to the specified method of |
| 2141 |
the specified enterprise bean. If there are multiple |
| 2142 |
methods with the same overloaded name, the element of |
| 2143 |
this style refers to all the methods with the overloaded |
| 2144 |
name. |
| 2145 |
|
| 2146 |
This style may be used to refer to stateful session bean |
| 2147 |
lifecycle callback methods to specify their transaction |
| 2148 |
attributes if any of the following is true: |
| 2149 |
there is only one method with this name in the specified |
| 2150 |
enterprise bean |
| 2151 |
all overloaded methods with this name in the specified |
| 2152 |
enterprise bean are lifecycle callback methods |
| 2153 |
method-intf element is specified and it contains |
| 2154 |
LifecycleCallback as the value |
| 2155 |
|
| 2156 |
3. |
| 2157 |
<method> |
| 2158 |
<ejb-name>EJBNAME</ejb-name> |
| 2159 |
<method-name>METHOD</method-name> |
| 2160 |
<method-params> |
| 2161 |
<method-param>PARAM-1</method-param> |
| 2162 |
<method-param>PARAM-2</method-param> |
| 2163 |
... |
| 2164 |
<method-param>PARAM-n</method-param> |
| 2165 |
</method-params> |
| 2166 |
</method> |
| 2167 |
|
| 2168 |
This style is used to refer to a single method within a |
| 2169 |
set of methods with an overloaded name. PARAM-1 through |
| 2170 |
PARAM-n are the fully-qualified Java types of the |
| 2171 |
method's input parameters (if the method has no input |
| 2172 |
arguments, the method-params element contains no |
| 2173 |
method-param elements). Arrays are specified by the |
| 2174 |
array element's type, followed by one or more pair of |
| 2175 |
square brackets (e.g. int[][]). |
| 2176 |
If a method with the same name and signature is defined |
| 2177 |
on more than one interface of an enterprise bean, this |
| 2178 |
style refers to all those methods. |
| 2179 |
|
| 2180 |
Examples: |
| 2181 |
|
| 2182 |
Style 1: The following method element refers to all of the |
| 2183 |
following methods of the EmployeeService bean: |
| 2184 |
no interface view methods |
| 2185 |
business interface methods |
| 2186 |
home interface methods |
| 2187 |
component business interface methods |
| 2188 |
singleton session bean lifecycle callback methods, if any |
| 2189 |
timeout callback methods |
| 2190 |
web service endpoint interface methods |
| 2191 |
message-driven bean message listener methods (if the bean |
| 2192 |
a message-driven bean) |
| 2193 |
|
| 2194 |
<method> |
| 2195 |
<ejb-name>EmployeeService</ejb-name> |
| 2196 |
<method-name>*</method-name> |
| 2197 |
</method> |
| 2198 |
|
| 2199 |
Style 2: The following method element refers to all the |
| 2200 |
create methods of the EmployeeService bean's home |
| 2201 |
interface(s). |
| 2202 |
|
| 2203 |
<method> |
| 2204 |
<ejb-name>EmployeeService</ejb-name> |
| 2205 |
<method-name>create</method-name> |
| 2206 |
</method> |
| 2207 |
|
| 2208 |
Style 3: The following method element refers to the |
| 2209 |
create(String firstName, String LastName) method of the |
| 2210 |
EmployeeService bean's home interface(s). |
| 2211 |
|
| 2212 |
<method> |
| 2213 |
<ejb-name>EmployeeService</ejb-name> |
| 2214 |
<method-name>create</method-name> |
| 2215 |
<method-params> |
| 2216 |
<method-param>java.lang.String</method-param> |
| 2217 |
<method-param>java.lang.String</method-param> |
| 2218 |
</method-params> |
| 2219 |
</method> |
| 2220 |
|
| 2221 |
The following example illustrates a Style 3 element with |
| 2222 |
more complex parameter types. The method |
| 2223 |
foobar(char s, int i, int[] iar, mypackage.MyClass mycl, |
| 2224 |
mypackage.MyClass[][] myclaar) would be specified as: |
| 2225 |
|
| 2226 |
<method> |
| 2227 |
<ejb-name>EmployeeService</ejb-name> |
| 2228 |
<method-name>foobar</method-name> |
| 2229 |
<method-params> |
| 2230 |
<method-param>char</method-param> |
| 2231 |
<method-param>int</method-param> |
| 2232 |
<method-param>int[]</method-param> |
| 2233 |
<method-param>mypackage.MyClass</method-param> |
| 2234 |
<method-param>mypackage.MyClass[][]</method-param> |
| 2235 |
</method-params> |
| 2236 |
</method> |
| 2237 |
|
| 2238 |
The optional method-intf element can be used when it becomes |
| 2239 |
necessary to differentiate between a method that is defined |
| 2240 |
multiple times with the same name and signature across any |
| 2241 |
of the following methods of an enterprise bean: |
| 2242 |
business interface methods |
| 2243 |
home interface methods |
| 2244 |
component interface methods |
| 2245 |
web service endpoint methods |
| 2246 |
no-interface view methods |
| 2247 |
singleton or stateful session bean lifecycle callback methods |
| 2248 |
timeout callback methods |
| 2249 |
message-driven bean message listener methods |
| 2250 |
|
| 2251 |
However, if the same method is a method of both the local |
| 2252 |
business interface, and the local component interface, |
| 2253 |
the same attribute applies to the method for both interfaces. |
| 2254 |
Likewise, if the same method is a method of both the remote |
| 2255 |
business interface and the remote component interface, the same |
| 2256 |
attribute applies to the method for both interfaces. |
| 2257 |
|
| 2258 |
For example, the method element |
| 2259 |
|
| 2260 |
<method> |
| 2261 |
<ejb-name>EmployeeService</ejb-name> |
| 2262 |
<method-intf>Remote</method-intf> |
| 2263 |
<method-name>create</method-name> |
| 2264 |
<method-params> |
| 2265 |
<method-param>java.lang.String</method-param> |
| 2266 |
<method-param>java.lang.String</method-param> |
| 2267 |
</method-params> |
| 2268 |
</method> |
| 2269 |
|
| 2270 |
can be used to differentiate the create(String, String) |
| 2271 |
method defined in the remote interface from the |
| 2272 |
create(String, String) method defined in the remote home |
| 2273 |
interface, which would be defined as |
| 2274 |
|
| 2275 |
<method> |
| 2276 |
<ejb-name>EmployeeService</ejb-name> |
| 2277 |
<method-intf>Home</method-intf> |
| 2278 |
<method-name>create</method-name> |
| 2279 |
<method-params> |
| 2280 |
<method-param>java.lang.String</method-param> |
| 2281 |
<method-param>java.lang.String</method-param> |
| 2282 |
</method-params> |
| 2283 |
</method> |
| 2284 |
|
| 2285 |
and the create method that is defined in the local home |
| 2286 |
interface which would be defined as |
| 2287 |
|
| 2288 |
<method> |
| 2289 |
<ejb-name>EmployeeService</ejb-name> |
| 2290 |
<method-intf>LocalHome</method-intf> |
| 2291 |
<method-name>create</method-name> |
| 2292 |
<method-params> |
| 2293 |
<method-param>java.lang.String</method-param> |
| 2294 |
<method-param>java.lang.String</method-param> |
| 2295 |
</method-params> |
| 2296 |
</method> |
| 2297 |
|
| 2298 |
The method-intf element can be used with all three Styles |
| 2299 |
of the method element usage. For example, the following |
| 2300 |
method element example could be used to refer to all the |
| 2301 |
methods of the EmployeeService bean's remote home interface |
| 2302 |
and the remote business interface. |
| 2303 |
|
| 2304 |
<method> |
| 2305 |
<ejb-name>EmployeeService</ejb-name> |
| 2306 |
<method-intf>Home</method-intf> |
| 2307 |
<method-name>*</method-name> |
| 2308 |
</method> |
| 2309 |
|
| 2310 |
]]> |
| 2311 |
</xsd:documentation> |
| 2312 |
</xsd:annotation> |
| 2313 |
<xsd:sequence> |
| 2314 |
<xsd:element name="description" |
| 2315 |
type="javaee:descriptionType" |
| 2316 |
minOccurs="0" |
| 2317 |
maxOccurs="unbounded"/> |
| 2318 |
<xsd:element name="ejb-name" |
| 2319 |
type="javaee:ejb-nameType"/> |
| 2320 |
<xsd:element name="method-intf" |
| 2321 |
type="javaee:method-intfType" |
| 2322 |
minOccurs="0"> |
| 2323 |
</xsd:element> |
| 2324 |
<xsd:element name="method-name" |
| 2325 |
type="javaee:method-nameType"/> |
| 2326 |
<xsd:element name="method-params" |
| 2327 |
type="javaee:method-paramsType" |
| 2328 |
minOccurs="0"/> |
| 2329 |
</xsd:sequence> |
| 2330 |
<xsd:attribute name="id" |
| 2331 |
type="xsd:ID"/> |
| 2332 |
</xsd:complexType> |
| 2333 |
|
| 2334 |
|
| 2335 |
<!-- **************************************************** --> |
| 2336 |
|
| 2337 |
<xsd:complexType name="method-intfType"> |
| 2338 |
<xsd:annotation> |
| 2339 |
<xsd:documentation> |
| 2340 |
|
| 2341 |
The method-intf element allows a method element to |
| 2342 |
differentiate between the methods with the same name and |
| 2343 |
signature that are multiply defined across the home and |
| 2344 |
component interfaces (e.g, in both an enterprise bean's |
| 2345 |
remote and local interfaces or in both an enterprise bean's |
| 2346 |
home and remote interfaces, etc.); the component and web |
| 2347 |
service endpoint interfaces, and so on. |
| 2348 |
|
| 2349 |
Local applies to the local component interface, local business |
| 2350 |
interfaces, and the no-interface view. |
| 2351 |
|
| 2352 |
Remote applies to both remote component interface and the remote |
| 2353 |
business interfaces. |
| 2354 |
|
| 2355 |
ServiceEndpoint refers to methods exposed through a web service |
| 2356 |
endpoint. |
| 2357 |
|
| 2358 |
Timer refers to the bean's timeout callback methods. |
| 2359 |
|
| 2360 |
MessageEndpoint refers to the methods of a message-driven bean's |
| 2361 |
message-listener interface. |
| 2362 |
|
| 2363 |
LifecycleCallback refers to the lifecycle callback methods of |
| 2364 |
a singleton or stateful session bean. |
| 2365 |
|
| 2366 |
The method-intf element must be one of the following: |
| 2367 |
|
| 2368 |
Home |
| 2369 |
Remote |
| 2370 |
LocalHome |
| 2371 |
Local |
| 2372 |
ServiceEndpoint |
| 2373 |
Timer |
| 2374 |
MessageEndpoint |
| 2375 |
LifecycleCallback |
| 2376 |
|
| 2377 |
</xsd:documentation> |
| 2378 |
</xsd:annotation> |
| 2379 |
<xsd:simpleContent> |
| 2380 |
<xsd:restriction base="javaee:string"> |
| 2381 |
<xsd:enumeration value="Home"/> |
| 2382 |
<xsd:enumeration value="Remote"/> |
| 2383 |
<xsd:enumeration value="LocalHome"/> |
| 2384 |
<xsd:enumeration value="Local"/> |
| 2385 |
<xsd:enumeration value="ServiceEndpoint"/> |
| 2386 |
<xsd:enumeration value="Timer"/> |
| 2387 |
<xsd:enumeration value="MessageEndpoint"/> |
| 2388 |
<xsd:enumeration value="LifecycleCallback"/> |
| 2389 |
</xsd:restriction> |
| 2390 |
</xsd:simpleContent> |
| 2391 |
</xsd:complexType> |
| 2392 |
|
| 2393 |
|
| 2394 |
<!-- **************************************************** --> |
| 2395 |
|
| 2396 |
<xsd:complexType name="method-nameType"> |
| 2397 |
<xsd:annotation> |
| 2398 |
<xsd:documentation> |
| 2399 |
|
| 2400 |
The method-nameType contains a name of an enterprise |
| 2401 |
bean method or the asterisk (*) character. The asterisk is |
| 2402 |
used when the element denotes all the methods of an |
| 2403 |
enterprise bean's client view interfaces. |
| 2404 |
|
| 2405 |
</xsd:documentation> |
| 2406 |
</xsd:annotation> |
| 2407 |
<xsd:simpleContent> |
| 2408 |
<xsd:restriction base="javaee:string"/> |
| 2409 |
</xsd:simpleContent> |
| 2410 |
</xsd:complexType> |
| 2411 |
|
| 2412 |
|
| 2413 |
<!-- **************************************************** --> |
| 2414 |
|
| 2415 |
<xsd:complexType name="method-paramsType"> |
| 2416 |
<xsd:annotation> |
| 2417 |
<xsd:documentation> |
| 2418 |
|
| 2419 |
The method-paramsType defines a list of the |
| 2420 |
fully-qualified Java type names of the method parameters. |
| 2421 |
|
| 2422 |
</xsd:documentation> |
| 2423 |
</xsd:annotation> |
| 2424 |
<xsd:sequence> |
| 2425 |
<xsd:element name="method-param" |
| 2426 |
type="javaee:java-typeType" |
| 2427 |
minOccurs="0" |
| 2428 |
maxOccurs="unbounded"> |
| 2429 |
<xsd:annotation> |
| 2430 |
<xsd:documentation> |
| 2431 |
|
| 2432 |
The method-param element contains a primitive |
| 2433 |
or a fully-qualified Java type name of a method |
| 2434 |
parameter. |
| 2435 |
|
| 2436 |
</xsd:documentation> |
| 2437 |
</xsd:annotation> |
| 2438 |
</xsd:element> |
| 2439 |
</xsd:sequence> |
| 2440 |
<xsd:attribute name="id" |
| 2441 |
type="xsd:ID"/> |
| 2442 |
</xsd:complexType> |
| 2443 |
|
| 2444 |
|
| 2445 |
<!-- **************************************************** --> |
| 2446 |
|
| 2447 |
<xsd:complexType name="method-permissionType"> |
| 2448 |
<xsd:annotation> |
| 2449 |
<xsd:documentation> |
| 2450 |
|
| 2451 |
The method-permissionType specifies that one or more |
| 2452 |
security roles are allowed to invoke one or more enterprise |
| 2453 |
bean methods. The method-permissionType consists of an |
| 2454 |
optional description, a list of security role names or an |
| 2455 |
indicator to state that the method is unchecked for |
| 2456 |
authorization, and a list of method elements. |
| 2457 |
|
| 2458 |
The security roles used in the method-permissionType |
| 2459 |
must be defined in the security-role elements of the |
| 2460 |
deployment descriptor, and the methods must be methods |
| 2461 |
defined in the enterprise bean's no-interface view, |
| 2462 |
business, home, component and/or web service endpoint |
| 2463 |
interfaces. |
| 2464 |
|
| 2465 |
</xsd:documentation> |
| 2466 |
</xsd:annotation> |
| 2467 |
<xsd:sequence> |
| 2468 |
<xsd:element name="description" |
| 2469 |
type="javaee:descriptionType" |
| 2470 |
minOccurs="0" |
| 2471 |
maxOccurs="unbounded"/> |
| 2472 |
<xsd:choice> |
| 2473 |
<xsd:element name="role-name" |
| 2474 |
type="javaee:role-nameType" |
| 2475 |
maxOccurs="unbounded"/> |
| 2476 |
<xsd:element name="unchecked" |
| 2477 |
type="javaee:emptyType"> |
| 2478 |
<xsd:annotation> |
| 2479 |
<xsd:documentation> |
| 2480 |
|
| 2481 |
The unchecked element specifies that a method is |
| 2482 |
not checked for authorization by the container |
| 2483 |
prior to invocation of the method. |
| 2484 |
|
| 2485 |
</xsd:documentation> |
| 2486 |
</xsd:annotation> |
| 2487 |
</xsd:element> |
| 2488 |
</xsd:choice> |
| 2489 |
<xsd:element name="method" |
| 2490 |
type="javaee:methodType" |
| 2491 |
maxOccurs="unbounded"/> |
| 2492 |
</xsd:sequence> |
| 2493 |
<xsd:attribute name="id" |
| 2494 |
type="xsd:ID"/> |
| 2495 |
</xsd:complexType> |
| 2496 |
|
| 2497 |
|
| 2498 |
<!-- **************************************************** --> |
| 2499 |
|
| 2500 |
<xsd:complexType name="multiplicityType"> |
| 2501 |
<xsd:annotation> |
| 2502 |
<xsd:documentation> |
| 2503 |
|
| 2504 |
The multiplicityType describes the multiplicity of the |
| 2505 |
role that participates in a relation. |
| 2506 |
|
| 2507 |
The value must be one of the two following: |
| 2508 |
|
| 2509 |
One |
| 2510 |
Many |
| 2511 |
|
| 2512 |
</xsd:documentation> |
| 2513 |
</xsd:annotation> |
| 2514 |
<xsd:simpleContent> |
| 2515 |
<xsd:restriction base="javaee:string"> |
| 2516 |
<xsd:enumeration value="One"/> |
| 2517 |
<xsd:enumeration value="Many"/> |
| 2518 |
</xsd:restriction> |
| 2519 |
</xsd:simpleContent> |
| 2520 |
</xsd:complexType> |
| 2521 |
|
| 2522 |
|
| 2523 |
<!-- **************************************************** --> |
| 2524 |
|
| 2525 |
<xsd:complexType name="persistence-typeType"> |
| 2526 |
<xsd:annotation> |
| 2527 |
<xsd:documentation> |
| 2528 |
|
| 2529 |
The persistence-typeType specifies an entity bean's persistence |
| 2530 |
management type. |
| 2531 |
|
| 2532 |
The persistence-type element must be one of the two following: |
| 2533 |
|
| 2534 |
Bean |
| 2535 |
Container |
| 2536 |
|
| 2537 |
</xsd:documentation> |
| 2538 |
</xsd:annotation> |
| 2539 |
<xsd:simpleContent> |
| 2540 |
<xsd:restriction base="javaee:string"> |
| 2541 |
<xsd:enumeration value="Bean"/> |
| 2542 |
<xsd:enumeration value="Container"/> |
| 2543 |
</xsd:restriction> |
| 2544 |
</xsd:simpleContent> |
| 2545 |
</xsd:complexType> |
| 2546 |
|
| 2547 |
|
| 2548 |
<!-- **************************************************** --> |
| 2549 |
|
| 2550 |
<xsd:complexType name="queryType"> |
| 2551 |
<xsd:annotation> |
| 2552 |
<xsd:documentation> |
| 2553 |
|
| 2554 |
The queryType defines a finder or select |
| 2555 |
query. It contains |
| 2556 |
- an optional description of the query |
| 2557 |
- the specification of the finder or select |
| 2558 |
method it is used by |
| 2559 |
- an optional specification of the result type |
| 2560 |
mapping, if the query is for a select method |
| 2561 |
and entity objects are returned. |
| 2562 |
- the EJB QL query string that defines the query. |
| 2563 |
|
| 2564 |
Queries that are expressible in EJB QL must use the ejb-ql |
| 2565 |
element to specify the query. If a query is not expressible |
| 2566 |
in EJB QL, the description element should be used to |
| 2567 |
describe the semantics of the query and the ejb-ql element |
| 2568 |
should be empty. |
| 2569 |
|
| 2570 |
The result-type-mapping is an optional element. It can only |
| 2571 |
be present if the query-method specifies a select method |
| 2572 |
that returns entity objects. The default value for the |
| 2573 |
result-type-mapping element is "Local". |
| 2574 |
|
| 2575 |
</xsd:documentation> |
| 2576 |
</xsd:annotation> |
| 2577 |
<xsd:sequence> |
| 2578 |
<xsd:element name="description" |
| 2579 |
type="javaee:descriptionType" |
| 2580 |
minOccurs="0"/> |
| 2581 |
<xsd:element name="query-method" |
| 2582 |
type="javaee:query-methodType"/> |
| 2583 |
<xsd:element name="result-type-mapping" |
| 2584 |
type="javaee:result-type-mappingType" |
| 2585 |
minOccurs="0"/> |
| 2586 |
<xsd:element name="ejb-ql" |
| 2587 |
type="javaee:xsdStringType"/> |
| 2588 |
</xsd:sequence> |
| 2589 |
<xsd:attribute name="id" |
| 2590 |
type="xsd:ID"/> |
| 2591 |
</xsd:complexType> |
| 2592 |
|
| 2593 |
|
| 2594 |
<!-- **************************************************** --> |
| 2595 |
|
| 2596 |
<xsd:complexType name="query-methodType"> |
| 2597 |
<xsd:annotation> |
| 2598 |
<xsd:documentation> |
| 2599 |
<![CDATA[[ |
| 2600 |
The query-method specifies the method for a finder or select |
| 2601 |
query. |
| 2602 |
|
| 2603 |
The method-name element specifies the name of a finder or select |
| 2604 |
method in the entity bean's implementation class. |
| 2605 |
|
| 2606 |
Each method-param must be defined for a query-method using the |
| 2607 |
method-params element. |
| 2608 |
|
| 2609 |
It is used by the query-method element. |
| 2610 |
|
| 2611 |
Example: |
| 2612 |
|
| 2613 |
<query> |
| 2614 |
<description>Method finds large orders</description> |
| 2615 |
<query-method> |
| 2616 |
<method-name>findLargeOrders</method-name> |
| 2617 |
<method-params></method-params> |
| 2618 |
</query-method> |
| 2619 |
<ejb-ql> |
| 2620 |
SELECT OBJECT(o) FROM Order o |
| 2621 |
WHERE o.amount > 1000 |
| 2622 |
</ejb-ql> |
| 2623 |
</query> |
| 2624 |
|
| 2625 |
]]> |
| 2626 |
</xsd:documentation> |
| 2627 |
</xsd:annotation> |
| 2628 |
<xsd:sequence> |
| 2629 |
<xsd:element name="method-name" |
| 2630 |
type="javaee:method-nameType"/> |
| 2631 |
<xsd:element name="method-params" |
| 2632 |
type="javaee:method-paramsType"/> |
| 2633 |
</xsd:sequence> |
| 2634 |
<xsd:attribute name="id" |
| 2635 |
type="xsd:ID"/> |
| 2636 |
</xsd:complexType> |
| 2637 |
|
| 2638 |
|
| 2639 |
<!-- **************************************************** --> |
| 2640 |
|
| 2641 |
<xsd:complexType name="relationship-role-sourceType"> |
| 2642 |
<xsd:annotation> |
| 2643 |
<xsd:documentation> |
| 2644 |
|
| 2645 |
The relationship-role-sourceType designates the source of a |
| 2646 |
role that participates in a relationship. A |
| 2647 |
relationship-role-sourceType is used by |
| 2648 |
relationship-role-source elements to uniquely identify an |
| 2649 |
entity bean. |
| 2650 |
|
| 2651 |
</xsd:documentation> |
| 2652 |
</xsd:annotation> |
| 2653 |
<xsd:sequence> |
| 2654 |
<xsd:element name="description" |
| 2655 |
type="javaee:descriptionType" |
| 2656 |
minOccurs="0" |
| 2657 |
maxOccurs="unbounded"/> |
| 2658 |
<xsd:element name="ejb-name" |
| 2659 |
type="javaee:ejb-nameType"/> |
| 2660 |
</xsd:sequence> |
| 2661 |
<xsd:attribute name="id" |
| 2662 |
type="xsd:ID"/> |
| 2663 |
</xsd:complexType> |
| 2664 |
|
| 2665 |
|
| 2666 |
<!-- **************************************************** --> |
| 2667 |
|
| 2668 |
<xsd:complexType name="relationshipsType"> |
| 2669 |
<xsd:annotation> |
| 2670 |
<xsd:documentation> |
| 2671 |
|
| 2672 |
The relationshipsType describes the relationships in |
| 2673 |
which entity beans with container-managed persistence |
| 2674 |
participate. The relationshipsType contains an optional |
| 2675 |
description; and a list of ejb-relation elements, which |
| 2676 |
specify the container managed relationships. |
| 2677 |
|
| 2678 |
</xsd:documentation> |
| 2679 |
</xsd:annotation> |
| 2680 |
<xsd:sequence> |
| 2681 |
<xsd:element name="description" |
| 2682 |
type="javaee:descriptionType" |
| 2683 |
minOccurs="0" |
| 2684 |
maxOccurs="unbounded"/> |
| 2685 |
<xsd:element name="ejb-relation" |
| 2686 |
type="javaee:ejb-relationType" |
| 2687 |
maxOccurs="unbounded"> |
| 2688 |
<xsd:unique name="role-name-uniqueness"> |
| 2689 |
<xsd:annotation> |
| 2690 |
<xsd:documentation> |
| 2691 |
|
| 2692 |
The ejb-relationship-role-name contains the name of a |
| 2693 |
relationship role. The name must be unique within |
| 2694 |
a relationship, but can be reused in different |
| 2695 |
relationships. |
| 2696 |
|
| 2697 |
</xsd:documentation> |
| 2698 |
</xsd:annotation> |
| 2699 |
<xsd:selector xpath=".//javaee:ejb-relationship-role-name"/> |
| 2700 |
<xsd:field xpath="."/> |
| 2701 |
</xsd:unique> |
| 2702 |
</xsd:element> |
| 2703 |
</xsd:sequence> |
| 2704 |
<xsd:attribute name="id" |
| 2705 |
type="xsd:ID"/> |
| 2706 |
</xsd:complexType> |
| 2707 |
|
| 2708 |
|
| 2709 |
<!-- **************************************************** --> |
| 2710 |
|
| 2711 |
<xsd:complexType name="result-type-mappingType"> |
| 2712 |
<xsd:annotation> |
| 2713 |
<xsd:documentation> |
| 2714 |
|
| 2715 |
The result-type-mappingType is used in the query element to |
| 2716 |
specify whether an abstract schema type returned by a query |
| 2717 |
for a select method is to be mapped to an EJBLocalObject or |
| 2718 |
EJBObject type. |
| 2719 |
|
| 2720 |
The value must be one of the following: |
| 2721 |
|
| 2722 |
Local |
| 2723 |
Remote |
| 2724 |
|
| 2725 |
</xsd:documentation> |
| 2726 |
</xsd:annotation> |
| 2727 |
<xsd:simpleContent> |
| 2728 |
<xsd:restriction base="javaee:string"> |
| 2729 |
<xsd:enumeration value="Local"/> |
| 2730 |
<xsd:enumeration value="Remote"/> |
| 2731 |
</xsd:restriction> |
| 2732 |
</xsd:simpleContent> |
| 2733 |
</xsd:complexType> |
| 2734 |
|
| 2735 |
|
| 2736 |
<!-- **************************************************** --> |
| 2737 |
|
| 2738 |
<xsd:complexType name="security-identityType"> |
| 2739 |
<xsd:annotation> |
| 2740 |
<xsd:documentation> |
| 2741 |
|
| 2742 |
The security-identityType specifies whether the caller's |
| 2743 |
security identity is to be used for the execution of the |
| 2744 |
methods of the enterprise bean or whether a specific run-as |
| 2745 |
identity is to be used. It contains an optional description |
| 2746 |
and a specification of the security identity to be used. |
| 2747 |
|
| 2748 |
</xsd:documentation> |
| 2749 |
</xsd:annotation> |
| 2750 |
<xsd:sequence> |
| 2751 |
<xsd:element name="description" |
| 2752 |
type="javaee:descriptionType" |
| 2753 |
minOccurs="0" |
| 2754 |
maxOccurs="unbounded"/> |
| 2755 |
<xsd:choice> |
| 2756 |
<xsd:element name="use-caller-identity" |
| 2757 |
type="javaee:emptyType"> |
| 2758 |
<xsd:annotation> |
| 2759 |
<xsd:documentation> |
| 2760 |
|
| 2761 |
The use-caller-identity element specifies that |
| 2762 |
the caller's security identity be used as the |
| 2763 |
security identity for the execution of the |
| 2764 |
enterprise bean's methods. |
| 2765 |
|
| 2766 |
</xsd:documentation> |
| 2767 |
</xsd:annotation> |
| 2768 |
</xsd:element> |
| 2769 |
<xsd:element name="run-as" |
| 2770 |
type="javaee:run-asType"/> |
| 2771 |
</xsd:choice> |
| 2772 |
</xsd:sequence> |
| 2773 |
<xsd:attribute name="id" |
| 2774 |
type="xsd:ID"/> |
| 2775 |
</xsd:complexType> |
| 2776 |
|
| 2777 |
|
| 2778 |
<!-- **************************************************** --> |
| 2779 |
|
| 2780 |
<xsd:complexType name="session-beanType"> |
| 2781 |
<xsd:annotation> |
| 2782 |
<xsd:documentation> |
| 2783 |
|
| 2784 |
The session-beanType declares an session bean. The |
| 2785 |
declaration consists of: |
| 2786 |
|
| 2787 |
- an optional description |
| 2788 |
- an optional display name |
| 2789 |
- an optional icon element that contains a small and a large |
| 2790 |
icon file name |
| 2791 |
- a name assigned to the enterprise bean |
| 2792 |
in the deployment description |
| 2793 |
- an optional mapped-name element that can be used to provide |
| 2794 |
vendor-specific deployment information such as the physical |
| 2795 |
jndi-name of the session bean's remote home/business interface. |
| 2796 |
This element is not required to be supported by all |
| 2797 |
implementations. Any use of this element is non-portable. |
| 2798 |
- the names of all the remote or local business interfaces, |
| 2799 |
if any |
| 2800 |
- the names of the session bean's remote home and |
| 2801 |
remote interfaces, if any |
| 2802 |
- the names of the session bean's local home and |
| 2803 |
local interfaces, if any |
| 2804 |
- an optional declaration that this bean exposes a |
| 2805 |
no-interface view |
| 2806 |
- the name of the session bean's web service endpoint |
| 2807 |
interface, if any |
| 2808 |
- the session bean's implementation class |
| 2809 |
- the session bean's state management type |
| 2810 |
- an optional declaration of a stateful session bean's timeout value |
| 2811 |
- an optional declaration of the session bean's timeout method for |
| 2812 |
handling programmatically created timers |
| 2813 |
- an optional declaration of timers to be automatically created at |
| 2814 |
deployment time |
| 2815 |
- an optional declaration that a Singleton bean has eager |
| 2816 |
initialization |
| 2817 |
- an optional declaration of a Singleton/Stateful bean's concurrency |
| 2818 |
management type |
| 2819 |
- an optional declaration of the method locking metadata |
| 2820 |
for a Singleton with container managed concurrency |
| 2821 |
- an optional declaration of the other Singleton beans in the |
| 2822 |
application that must be initialized before this bean |
| 2823 |
- an optional declaration of the session bean's asynchronous |
| 2824 |
methods |
| 2825 |
- the optional session bean's transaction management type. |
| 2826 |
If it is not present, it is defaulted to Container. |
| 2827 |
- an optional declaration of a stateful session bean's |
| 2828 |
afterBegin, beforeCompletion, and/or afterCompletion methods |
| 2829 |
- an optional list of the session bean class and/or |
| 2830 |
superclass around-invoke methods. |
| 2831 |
- an optional list of the session bean class and/or |
| 2832 |
superclass around-timeout methods. |
| 2833 |
- an optional declaration of the bean's |
| 2834 |
environment entries |
| 2835 |
- an optional declaration of the bean's EJB references |
| 2836 |
- an optional declaration of the bean's local |
| 2837 |
EJB references |
| 2838 |
- an optional declaration of the bean's web |
| 2839 |
service references |
| 2840 |
- an optional declaration of the security role |
| 2841 |
references |
| 2842 |
- an optional declaration of the security identity |
| 2843 |
to be used for the execution of the bean's methods |
| 2844 |
- an optional declaration of the bean's resource |
| 2845 |
manager connection factory references |
| 2846 |
- an optional declaration of the bean's resource |
| 2847 |
environment references. |
| 2848 |
- an optional declaration of the bean's message |
| 2849 |
destination references |
| 2850 |
- an optional specification as to whether the stateful |
| 2851 |
session bean is passivation capable or not. If not |
| 2852 |
specified, the bean is assumed to be passivation capable |
| 2853 |
|
| 2854 |
The elements that are optional are "optional" in the sense |
| 2855 |
that they are omitted when if lists represented by them are |
| 2856 |
empty. |
| 2857 |
|
| 2858 |
The service-endpoint element may only be specified if the |
| 2859 |
bean is a stateless session bean. |
| 2860 |
|
| 2861 |
</xsd:documentation> |
| 2862 |
</xsd:annotation> |
| 2863 |
<xsd:sequence> |
| 2864 |
<xsd:group ref="javaee:descriptionGroup"/> |
| 2865 |
<xsd:element name="ejb-name" |
| 2866 |
type="javaee:ejb-nameType"/> |
| 2867 |
<xsd:element name="mapped-name" |
| 2868 |
type="javaee:xsdStringType" |
| 2869 |
minOccurs="0"/> |
| 2870 |
<xsd:element name="home" |
| 2871 |
type="javaee:homeType" |
| 2872 |
minOccurs="0"/> |
| 2873 |
<xsd:element name="remote" |
| 2874 |
type="javaee:remoteType" |
| 2875 |
minOccurs="0"/> |
| 2876 |
<xsd:element name="local-home" |
| 2877 |
type="javaee:local-homeType" |
| 2878 |
minOccurs="0"/> |
| 2879 |
<xsd:element name="local" |
| 2880 |
type="javaee:localType" |
| 2881 |
minOccurs="0"/> |
| 2882 |
<xsd:element name="business-local" |
| 2883 |
type="javaee:fully-qualified-classType" |
| 2884 |
minOccurs="0" |
| 2885 |
maxOccurs="unbounded"/> |
| 2886 |
<xsd:element name="business-remote" |
| 2887 |
type="javaee:fully-qualified-classType" |
| 2888 |
minOccurs="0" |
| 2889 |
maxOccurs="unbounded"/> |
| 2890 |
<xsd:element name="local-bean" |
| 2891 |
type="javaee:emptyType" |
| 2892 |
minOccurs="0"> |
| 2893 |
<xsd:annotation> |
| 2894 |
<xsd:documentation> |
| 2895 |
|
| 2896 |
The local-bean element declares that this |
| 2897 |
session bean exposes a no-interface Local client view. |
| 2898 |
|
| 2899 |
</xsd:documentation> |
| 2900 |
</xsd:annotation> |
| 2901 |
</xsd:element> |
| 2902 |
<xsd:element name="service-endpoint" |
| 2903 |
type="javaee:fully-qualified-classType" |
| 2904 |
minOccurs="0"> |
| 2905 |
<xsd:annotation> |
| 2906 |
<xsd:documentation> |
| 2907 |
|
| 2908 |
The service-endpoint element contains the |
| 2909 |
fully-qualified name of the enterprise bean's web |
| 2910 |
service endpoint interface. The service-endpoint |
| 2911 |
element may only be specified for a stateless |
| 2912 |
session bean. The specified interface must be a |
| 2913 |
valid JAX-RPC service endpoint interface. |
| 2914 |
|
| 2915 |
</xsd:documentation> |
| 2916 |
</xsd:annotation> |
| 2917 |
</xsd:element> |
| 2918 |
<xsd:element name="ejb-class" |
| 2919 |
type="javaee:ejb-classType" |
| 2920 |
minOccurs="0"> |
| 2921 |
<xsd:annotation> |
| 2922 |
<xsd:documentation> |
| 2923 |
|
| 2924 |
The ejb-class element specifies the fully qualified name |
| 2925 |
of the bean class for this ejb. It is required unless |
| 2926 |
there is a component-defining annotation for the same |
| 2927 |
ejb-name. |
| 2928 |
|
| 2929 |
</xsd:documentation> |
| 2930 |
</xsd:annotation> |
| 2931 |
</xsd:element> |
| 2932 |
<xsd:element name="session-type" |
| 2933 |
type="javaee:session-typeType" |
| 2934 |
minOccurs="0"/> |
| 2935 |
<xsd:element name="stateful-timeout" |
| 2936 |
type="javaee:stateful-timeoutType" |
| 2937 |
minOccurs="0"/> |
| 2938 |
<xsd:element name="timeout-method" |
| 2939 |
type="javaee:named-methodType" |
| 2940 |
minOccurs="0"> |
| 2941 |
<xsd:annotation> |
| 2942 |
<xsd:documentation> |
| 2943 |
|
| 2944 |
The timeout-method element specifies the method that |
| 2945 |
will receive callbacks for programmatically |
| 2946 |
created timers. |
| 2947 |
|
| 2948 |
</xsd:documentation> |
| 2949 |
</xsd:annotation> |
| 2950 |
</xsd:element> |
| 2951 |
<xsd:element name="timer" |
| 2952 |
type="javaee:timerType" |
| 2953 |
minOccurs="0" |
| 2954 |
maxOccurs="unbounded"/> |
| 2955 |
<xsd:element name="init-on-startup" |
| 2956 |
type="javaee:true-falseType" |
| 2957 |
minOccurs="0"> |
| 2958 |
<xsd:annotation> |
| 2959 |
<xsd:documentation> |
| 2960 |
|
| 2961 |
The init-on-startup element specifies that a Singleton |
| 2962 |
bean has eager initialization. |
| 2963 |
This element can only be specified for singleton session |
| 2964 |
beans. |
| 2965 |
|
| 2966 |
</xsd:documentation> |
| 2967 |
</xsd:annotation> |
| 2968 |
</xsd:element> |
| 2969 |
<xsd:element name="concurrency-management-type" |
| 2970 |
type="javaee:concurrency-management-typeType" |
| 2971 |
minOccurs="0"/> |
| 2972 |
<xsd:element name="concurrent-method" |
| 2973 |
type="javaee:concurrent-methodType" |
| 2974 |
minOccurs="0" |
| 2975 |
maxOccurs="unbounded"/> |
| 2976 |
<xsd:element name="depends-on" |
| 2977 |
type="javaee:depends-onType" |
| 2978 |
minOccurs="0"/> |
| 2979 |
<xsd:element name="init-method" |
| 2980 |
type="javaee:init-methodType" |
| 2981 |
minOccurs="0" |
| 2982 |
maxOccurs="unbounded"> |
| 2983 |
<xsd:annotation> |
| 2984 |
<xsd:documentation> |
| 2985 |
|
| 2986 |
The init-method element specifies the mappings for |
| 2987 |
EJB 2.x style create methods for an EJB 3.x bean. |
| 2988 |
This element can only be specified for stateful |
| 2989 |
session beans. |
| 2990 |
|
| 2991 |
</xsd:documentation> |
| 2992 |
</xsd:annotation> |
| 2993 |
</xsd:element> |
| 2994 |
<xsd:element name="remove-method" |
| 2995 |
type="javaee:remove-methodType" |
| 2996 |
minOccurs="0" |
| 2997 |
maxOccurs="unbounded"> |
| 2998 |
<xsd:annotation> |
| 2999 |
<xsd:documentation> |
| 3000 |
|
| 3001 |
The remove-method element specifies the mappings for |
| 3002 |
EJB 2.x style remove methods for an EJB 3.x bean. |
| 3003 |
This element can only be specified for stateful |
| 3004 |
session beans. |
| 3005 |
|
| 3006 |
</xsd:documentation> |
| 3007 |
</xsd:annotation> |
| 3008 |
</xsd:element> |
| 3009 |
<xsd:element name="async-method" |
| 3010 |
type="javaee:async-methodType" |
| 3011 |
minOccurs="0" |
| 3012 |
maxOccurs="unbounded"/> |
| 3013 |
<xsd:element name="transaction-type" |
| 3014 |
type="javaee:transaction-typeType" |
| 3015 |
minOccurs="0"/> |
| 3016 |
<xsd:element name="after-begin-method" |
| 3017 |
type="javaee:named-methodType" |
| 3018 |
minOccurs="0"/> |
| 3019 |
<xsd:element name="before-completion-method" |
| 3020 |
type="javaee:named-methodType" |
| 3021 |
minOccurs="0"/> |
| 3022 |
<xsd:element name="after-completion-method" |
| 3023 |
type="javaee:named-methodType" |
| 3024 |
minOccurs="0"/> |
| 3025 |
<xsd:element name="around-invoke" |
| 3026 |
type="javaee:around-invokeType" |
| 3027 |
minOccurs="0" |
| 3028 |
maxOccurs="unbounded"/> |
| 3029 |
<xsd:element name="around-timeout" |
| 3030 |
type="javaee:around-timeoutType" |
| 3031 |
minOccurs="0" |
| 3032 |
maxOccurs="unbounded"/> |
| 3033 |
<xsd:group ref="javaee:jndiEnvironmentRefsGroup"/> |
| 3034 |
<xsd:element name="post-activate" |
| 3035 |
type="javaee:lifecycle-callbackType" |
| 3036 |
minOccurs="0" |
| 3037 |
maxOccurs="unbounded"/> |
| 3038 |
<xsd:element name="pre-passivate" |
| 3039 |
type="javaee:lifecycle-callbackType" |
| 3040 |
minOccurs="0" |
| 3041 |
maxOccurs="unbounded"/> |
| 3042 |
<xsd:element name="security-role-ref" |
| 3043 |
type="javaee:security-role-refType" |
| 3044 |
minOccurs="0" |
| 3045 |
maxOccurs="unbounded"/> |
| 3046 |
<xsd:element name="security-identity" |
| 3047 |
type="javaee:security-identityType" |
| 3048 |
minOccurs="0"/> |
| 3049 |
<xsd:element name="passivation-capable" |
| 3050 |
type="xsd:boolean" |
| 3051 |
default="true" |
| 3052 |
minOccurs="0"> |
| 3053 |
<xsd:annotation> |
| 3054 |
<xsd:documentation> |
| 3055 |
|
| 3056 |
The passivation-capable element specifies whether the |
| 3057 |
stateful session bean is passivation capable or not. |
| 3058 |
If not specified, the bean is assumed to be passivation |
| 3059 |
capable. |
| 3060 |
|
| 3061 |
</xsd:documentation> |
| 3062 |
</xsd:annotation> |
| 3063 |
</xsd:element> |
| 3064 |
</xsd:sequence> |
| 3065 |
<xsd:attribute name="id" |
| 3066 |
type="xsd:ID"/> |
| 3067 |
</xsd:complexType> |
| 3068 |
|
| 3069 |
|
| 3070 |
<!-- **************************************************** --> |
| 3071 |
|
| 3072 |
<xsd:complexType name="session-typeType"> |
| 3073 |
<xsd:annotation> |
| 3074 |
<xsd:documentation> |
| 3075 |
|
| 3076 |
The session-typeType describes whether the session bean is a |
| 3077 |
singleton, stateful or stateless session. It is used by |
| 3078 |
session-type elements. |
| 3079 |
|
| 3080 |
The value must be one of the three following: |
| 3081 |
|
| 3082 |
Singleton |
| 3083 |
Stateful |
| 3084 |
Stateless |
| 3085 |
|
| 3086 |
</xsd:documentation> |
| 3087 |
</xsd:annotation> |
| 3088 |
<xsd:simpleContent> |
| 3089 |
<xsd:restriction base="javaee:string"> |
| 3090 |
<xsd:enumeration value="Singleton"/> |
| 3091 |
<xsd:enumeration value="Stateful"/> |
| 3092 |
<xsd:enumeration value="Stateless"/> |
| 3093 |
</xsd:restriction> |
| 3094 |
</xsd:simpleContent> |
| 3095 |
</xsd:complexType> |
| 3096 |
|
| 3097 |
|
| 3098 |
<!-- **************************************************** --> |
| 3099 |
|
| 3100 |
<xsd:complexType name="stateful-timeoutType"> |
| 3101 |
<xsd:annotation> |
| 3102 |
<xsd:documentation> |
| 3103 |
|
| 3104 |
The stateful-timeoutType represents the amount of time |
| 3105 |
a stateful session bean can be idle(not receive any client |
| 3106 |
invocations) before it is eligible for removal by the container. |
| 3107 |
|
| 3108 |
A timeout value of 0 means the bean is immediately eligible for removal. |
| 3109 |
|
| 3110 |
A timeout value of -1 means the bean will never be removed due to timeout. |
| 3111 |
|
| 3112 |
</xsd:documentation> |
| 3113 |
</xsd:annotation> |
| 3114 |
<xsd:sequence> |
| 3115 |
<xsd:element name="timeout" |
| 3116 |
type="javaee:xsdIntegerType"/> |
| 3117 |
<xsd:element name="unit" |
| 3118 |
type="javaee:time-unit-typeType"/> |
| 3119 |
</xsd:sequence> |
| 3120 |
<xsd:attribute name="id" |
| 3121 |
type="xsd:ID"/> |
| 3122 |
</xsd:complexType> |
| 3123 |
|
| 3124 |
|
| 3125 |
<!-- **************************************************** --> |
| 3126 |
|
| 3127 |
<xsd:complexType name="time-unit-typeType"> |
| 3128 |
<xsd:annotation> |
| 3129 |
<xsd:documentation> |
| 3130 |
|
| 3131 |
The time-unit-typeType represents a time duration at a given |
| 3132 |
unit of granularity. |
| 3133 |
|
| 3134 |
The time unit type must be one of the following : |
| 3135 |
|
| 3136 |
Days |
| 3137 |
Hours |
| 3138 |
Minutes |
| 3139 |
Seconds |
| 3140 |
Milliseconds |
| 3141 |
Microseconds |
| 3142 |
Nanoseconds |
| 3143 |
|
| 3144 |
</xsd:documentation> |
| 3145 |
</xsd:annotation> |
| 3146 |
<xsd:simpleContent> |
| 3147 |
<xsd:restriction base="javaee:string"> |
| 3148 |
<xsd:enumeration value="Days"/> |
| 3149 |
<xsd:enumeration value="Hours"/> |
| 3150 |
<xsd:enumeration value="Minutes"/> |
| 3151 |
<xsd:enumeration value="Seconds"/> |
| 3152 |
<xsd:enumeration value="Milliseconds"/> |
| 3153 |
<xsd:enumeration value="Microseconds"/> |
| 3154 |
<xsd:enumeration value="Nanoseconds"/> |
| 3155 |
</xsd:restriction> |
| 3156 |
</xsd:simpleContent> |
| 3157 |
</xsd:complexType> |
| 3158 |
|
| 3159 |
|
| 3160 |
<!-- **************************************************** --> |
| 3161 |
|
| 3162 |
<xsd:complexType name="timer-scheduleType"> |
| 3163 |
<xsd:sequence> |
| 3164 |
<xsd:element name="second" |
| 3165 |
type="javaee:string" |
| 3166 |
minOccurs="0"/> |
| 3167 |
<xsd:element name="minute" |
| 3168 |
type="javaee:string" |
| 3169 |
minOccurs="0"/> |
| 3170 |
<xsd:element name="hour" |
| 3171 |
type="javaee:string" |
| 3172 |
minOccurs="0"/> |
| 3173 |
<xsd:element name="day-of-month" |
| 3174 |
type="javaee:string" |
| 3175 |
minOccurs="0"/> |
| 3176 |
<xsd:element name="month" |
| 3177 |
type="javaee:string" |
| 3178 |
minOccurs="0"/> |
| 3179 |
<xsd:element name="day-of-week" |
| 3180 |
type="javaee:string" |
| 3181 |
minOccurs="0"/> |
| 3182 |
<xsd:element name="year" |
| 3183 |
type="javaee:string" |
| 3184 |
minOccurs="0"/> |
| 3185 |
</xsd:sequence> |
| 3186 |
<xsd:attribute name="id" |
| 3187 |
type="xsd:ID"/> |
| 3188 |
</xsd:complexType> |
| 3189 |
|
| 3190 |
|
| 3191 |
<!-- **************************************************** --> |
| 3192 |
|
| 3193 |
<xsd:complexType name="timerType"> |
| 3194 |
<xsd:annotation> |
| 3195 |
<xsd:documentation> |
| 3196 |
|
| 3197 |
The timerType specifies an enterprise bean timer. Each |
| 3198 |
timer is automatically created by the container upon |
| 3199 |
deployment. Timer callbacks occur based on the |
| 3200 |
schedule attributes. All callbacks are made to the |
| 3201 |
timeout-method associated with the timer. |
| 3202 |
|
| 3203 |
A timer can have an optional start and/or end date. If |
| 3204 |
a start date is specified, it takes precedence over the |
| 3205 |
associated timer schedule such that any matching |
| 3206 |
expirations prior to the start time will not occur. |
| 3207 |
Likewise, no matching expirations will occur after any |
| 3208 |
end date. Start/End dates are specified using the |
| 3209 |
XML Schema dateTime type, which follows the ISO-8601 |
| 3210 |
standard for date(and optional time-within-the-day) |
| 3211 |
representation. |
| 3212 |
|
| 3213 |
An optional flag can be used to control whether |
| 3214 |
this timer has persistent(true) delivery semantics or |
| 3215 |
non-persistent(false) delivery semantics. If not specified, |
| 3216 |
the value defaults to persistent(true). |
| 3217 |
|
| 3218 |
A time zone can optionally be associated with a timer. |
| 3219 |
If specified, the timer's schedule is evaluated in the context |
| 3220 |
of that time zone, regardless of the default time zone in which |
| 3221 |
the container is executing. Time zones are specified as an |
| 3222 |
ID string. The set of required time zone IDs is defined by |
| 3223 |
the Zone Name(TZ) column of the public domain zoneinfo database. |
| 3224 |
|
| 3225 |
An optional info string can be assigned to the timer and |
| 3226 |
retrieved at runtime through the Timer.getInfo() method. |
| 3227 |
|
| 3228 |
The timerType can only be specified on stateless session |
| 3229 |
beans, singleton session beans, and message-driven beans. |
| 3230 |
|
| 3231 |
</xsd:documentation> |
| 3232 |
</xsd:annotation> |
| 3233 |
<xsd:sequence> |
| 3234 |
<xsd:element name="description" |
| 3235 |
type="javaee:descriptionType" |
| 3236 |
minOccurs="0" |
| 3237 |
maxOccurs="unbounded"/> |
| 3238 |
<xsd:element name="schedule" |
| 3239 |
type="javaee:timer-scheduleType"/> |
| 3240 |
<xsd:element name="start" |
| 3241 |
type="xsd:dateTime" |
| 3242 |
minOccurs="0"/> |
| 3243 |
<xsd:element name="end" |
| 3244 |
type="xsd:dateTime" |
| 3245 |
minOccurs="0"/> |
| 3246 |
<xsd:element name="timeout-method" |
| 3247 |
type="javaee:named-methodType"/> |
| 3248 |
<xsd:element name="persistent" |
| 3249 |
type="javaee:true-falseType" |
| 3250 |
minOccurs="0"/> |
| 3251 |
<xsd:element name="timezone" |
| 3252 |
type="javaee:string" |
| 3253 |
minOccurs="0"/> |
| 3254 |
<xsd:element name="info" |
| 3255 |
type="javaee:string" |
| 3256 |
minOccurs="0"/> |
| 3257 |
</xsd:sequence> |
| 3258 |
<xsd:attribute name="id" |
| 3259 |
type="xsd:ID"/> |
| 3260 |
</xsd:complexType> |
| 3261 |
|
| 3262 |
|
| 3263 |
<!-- **************************************************** --> |
| 3264 |
|
| 3265 |
<xsd:complexType name="trans-attributeType"> |
| 3266 |
<xsd:annotation> |
| 3267 |
<xsd:documentation> |
| 3268 |
|
| 3269 |
The trans-attributeType specifies how the container must |
| 3270 |
manage the transaction boundaries when delegating a method |
| 3271 |
invocation to an enterprise bean's business method. |
| 3272 |
|
| 3273 |
The value must be one of the following: |
| 3274 |
|
| 3275 |
NotSupported |
| 3276 |
Supports |
| 3277 |
Required |
| 3278 |
RequiresNew |
| 3279 |
Mandatory |
| 3280 |
Never |
| 3281 |
|
| 3282 |
</xsd:documentation> |
| 3283 |
</xsd:annotation> |
| 3284 |
<xsd:simpleContent> |
| 3285 |
<xsd:restriction base="javaee:string"> |
| 3286 |
<xsd:enumeration value="NotSupported"/> |
| 3287 |
<xsd:enumeration value="Supports"/> |
| 3288 |
<xsd:enumeration value="Required"/> |
| 3289 |
<xsd:enumeration value="RequiresNew"/> |
| 3290 |
<xsd:enumeration value="Mandatory"/> |
| 3291 |
<xsd:enumeration value="Never"/> |
| 3292 |
</xsd:restriction> |
| 3293 |
</xsd:simpleContent> |
| 3294 |
</xsd:complexType> |
| 3295 |
|
| 3296 |
|
| 3297 |
<!-- **************************************************** --> |
| 3298 |
|
| 3299 |
<xsd:complexType name="transaction-typeType"> |
| 3300 |
<xsd:annotation> |
| 3301 |
<xsd:documentation> |
| 3302 |
|
| 3303 |
The transaction-typeType specifies an enterprise bean's |
| 3304 |
transaction management type. |
| 3305 |
|
| 3306 |
The transaction-type must be one of the two following: |
| 3307 |
|
| 3308 |
Bean |
| 3309 |
Container |
| 3310 |
|
| 3311 |
</xsd:documentation> |
| 3312 |
</xsd:annotation> |
| 3313 |
<xsd:simpleContent> |
| 3314 |
<xsd:restriction base="javaee:string"> |
| 3315 |
<xsd:enumeration value="Bean"/> |
| 3316 |
<xsd:enumeration value="Container"/> |
| 3317 |
</xsd:restriction> |
| 3318 |
</xsd:simpleContent> |
| 3319 |
</xsd:complexType> |
| 3320 |
|
| 3321 |
</xsd:schema> |