29.01.2013 Views

WebSphere Application Server V7.0: Concepts ... - IBM Redbooks

WebSphere Application Server V7.0: Concepts ... - IBM Redbooks

WebSphere Application Server V7.0: Concepts ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.10 Managing application configuration settings<br />

Almost all non-trivial applications require at least some amount of configuration<br />

to their environment in order to run optimally. Part of this configuration (such as<br />

references to EJBs, data sources, and so on) is stored in the application<br />

deployment descriptors and is modified by developers using tools such as<br />

Rational <strong>Application</strong> Developer Assembly and Deploy V7.5 or Rational<br />

<strong>Application</strong> Developer for <strong>WebSphere</strong> Software V7.5. Other settings, such as the<br />

JVM maximum heap size and database connection pool size, are stored in the<br />

<strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> configuration repository and modified using the<br />

<strong>WebSphere</strong> administrative tools. Finally, there are settings that are<br />

application-internal, usually created by the developers and stored in Java<br />

property files. These files are then modified, usually using a plain text editor, by<br />

the system administrators after deploying the application.<br />

8.10.1 Classifying configuration settings<br />

Configuration data can often be categorized into three different categories.<br />

► <strong>Application</strong>-specific<br />

This category includes configuration options that are specific for an<br />

application regardless of its deployment environment. Examples include how<br />

many hits to display per page for a search result and the EJB transaction<br />

timeout (for example, if the application has long-running transactions). This<br />

category should move, unchanged, with the application between the different<br />

environments.<br />

► <strong>Application</strong> environment-specific<br />

This category includes configuration options that are specific both to an<br />

application and its deployment environment. Examples include log detail<br />

levels, cache size, and JVM maximum heap size.<br />

For example, in development, you might want to run the Order<strong>Application</strong> with<br />

debug-level logging, but in production, you want to run it with only<br />

warning-level logging. And during development, the Order<strong>Application</strong> might<br />

work with a 256 MB heap, but in the busier production environment, it might<br />

need a 1 GB heap size to perform well. These options should not move along<br />

with the application between environments, but need to be tuned depending<br />

on the environment.<br />

Chapter 8. <strong>Application</strong> development and deployment 301

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!