Chapter 23. Packaging and deploying Java EE applications 835
23.4 Creating WebSphere-enhanced EAR files
A WebSphere-enhanced EAR file is a regular Java EE EAR file but with additional
configuration information for resources required by Java EE applications. This information is
processed by WebSphere Application Server. Any other application server ignores this
information. Although adding this extra configuration information at packaging time is not
mandatory, it can simplify deployment of Java EE applications to multiple run times if the
environments are similar.
If you plan to provide the configuration of these resources by using the runtime environment
administrative tools, you can skip this section and go directly to 23.5, “Exporting an
application project to an EAR file” on page 845.
When an enhanced EAR is deployed to WebSphere Application Server, the resources
specified in the enhanced EAR are automatically configured at application level scope. When
an enhanced EAR is uninstalled, the resources that are defined at the application level scope
are removed as well. However, resources that are defined at a scope other than application
level are not removed because they might be in use by other applications. Resources that are
created at the application level scope are limited in visibility to only that application.
Table 23-7 shows the resources that are supported by the enhanced EAR and the scope in
which they are created.
Table 23-7 Scope for resources in WebSphere enhanced EAR file
To view the application scoped resources using the administrative console, click
Applications Application Types WebSphere Enterprise Applications
<application>. Select Application scoped resources in the References section. If there are
no application scoped resources, you do not see this option.
23.4.1 Configuring a WebSphere enhanced EAR
You can modify the supplemental information in an enhanced EAR using the WebSphere
Application Server Deployment editor of any of the assembly tools mentioned in 23.1.2,
“Development tools” on page 816. The deployment information is contained in XML files in a
folder called ibmconfig in the EAR file’s META-INF folder.
Resource Scope
JDBC providers Application
Data sources Application
Resource adapters Application
JMS resources Application
Substitution variables Application
Class loader policies Application
Shared libraries Server
JAAS authentication aliases Cell
Virtual hosts Cell