3.8.  Demonstrate understanding of the concept and implications of an "enhanced EAR".

[Note]

A WebSphere Enhanced EAR file is a regular Java EE EAR file but with additional configuration information for resources required by Java EE applications. 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.

When an Enhanced EAR is deployed to WebSphere Application Server, the resources specified in the Enhanced EAR are automatically configured. 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 below shows the resources that are supported by the Enhanced EAR and the scope in which they are created:

Table 3.1.  Scope for resources in WebSphere Enhanced EAR file

ResourceScope

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


You can modify the supplemental information in an Enhanced EAR using the WebSphere Application Server Deployment editor of IBM Assembly and Deploy Tools for WebSphere Administration.

Figure 3.41. Enhanced EAR configuring

Enhanced EAR configuring


The deployment information is contained in XML files in a folder called ibmconfig in the EAR file's META-INF folder:

Figure 3.42. META-INF/ibmconfig folder

META-INF/ibmconfig folder


If you are deploying an Enhanced EAR file, you specify in the Integrated Solution Console (ISC) whether to use the resource configuration information that is packaged in the Enhanced EAR file. The installation window pre-selects the Process embedded configuration option automatically if it detects Enhanced EAR.

Figure 3.43. Enhanved EAR deployment

Enhanved EAR deployment


If you do not want to use the resource configuration information that is packaged in the Enhanced EAR file, clear this option.

Professional hosting         Free 'Oracle Certified Expert Web Services Developer 6' Guide     Free SCDJWS 5.0 Guide