user manual

18 BES Developers Guide
Creating Partitions
Additional applications and application components are also provided that can
be used in your applications:
UDDI Server
Apache Struts
Apache Cocoon
Petstore J2EE blueprint application
SmarTicket J2EE blueprint application
By enabling and disabling the various Partition containers and services, and
configuring the Partition's environment, you can "right-size" the Partition to its
specific task. Typical use cases for a Partition include:
Providing a complete isolated J2EE server platform for an application with
all relevant J2EE container and services enabled.
Providing a platform for a component of a distributed application such as its
Web Tier with just the Web Container and Session Service enabled.
Providing a central service such as a platform for the BES UDDI server with
just its Web Container enabled.
Providing a diagnostic platform for an application such as running under
OptimizeIt.
Avoiding monolithic J2EE server Partitions hosting many applications also
allows you to fine tune the Java environment the application needs. The
version and type of JDK together with such configuration as heap space
available ensures a satisfactory environment in which to run, while not over-
allocating resources. Limits on pooled resources such as threads and
connections may similarly be configured for optimal total performance.
Partitions also have their own individual security settings for authentication
mechanisms, authorization tables, and so on. A user who has authority to
access all resources in a development Partition may be granted much more
limited authority in a production Partition.
Creating Partitions
Partitions are created as managed objects in a "configuration" from templates
provided in the Borland Management Console. Typically the Partition disk
footprint is created in:
<install-dir>/var/domains/<domain-name>/configurations/<configuration-
name>/
You can specify another location for the Partition and add a pre-existing
Partition to a configuration. The Management Console provides a rich
configuration experience for a Partition and is discussed in the Management
Console User's Guide Using Partitions section. Most configuration data for the
Partition and its services is captured in its Partition XML reference file
described in Chapter 30, Partition XML reference.