Configuring Applications for Production Deployment 4-15
resources using the applications classloader. For example, the application code may do the following:
Properties myAppProps = new Properties; InputStream iostream =
Thread.currentThread.getContextClassLoader.getResourceAsStreammyCfgmyApp.pr operties;
myAppProps.loadiostream;
4.7 Additional Configuration Tasks
See the following sections for information about additional deployment configuration tasks:
■
Section 6.4, Deploying an Application with a Deployment Plan, describes how to
deploy an application with a valid deployment plan using the weblogic.Deployer tool. See
Appendix A, weblogic.Deployer Command-Line Reference.
■
Section 8.8, Updating the Deployment Configuration for an Application, describes how to update the deployment configuration for a currently-deployed
application.
■
Chapter 5, Exporting an Application for Deployment to New Environments, explains how developers can create portable deployment plans using the
weblogic.PlanGenerator tool.
■
Appendix B, weblogic.PlanGenerator Command-Line Reference, provides a
complete reference to the weblogic.PlanGenerator tool.
4.8 Best Practices for Managing Application Configuration
■
Always manage multiple deployment configurations using deployment plans, rather than multiple versions of the WebLogic Server deployment descriptor files.
■
Always store each existing deployment plan for an application in its own plan subdirectory of an application root directory.
■
If your organization requires standardized, repeatable deployments to several environments, use the
Section 4.2.1, Application with Single Deployment Plan workflow to maintain a single deployment plan in your source control system.
■
If you make extensive changes to an applications deployment configuration using the Administration Console, back up or safely store the updated deployment plan
for future use. Oracle recommends storing the entire application root directory in a source control system, so that you can maintain configuration information for
multiple environments and multiple versions of an application.
4-16 Deploying Applications to Oracle WebLogic Server
5
Exporting an Application for Deployment to New Environments 5-1
5
Exporting an Application for Deployment to New Environments
The following sections describe how to export an applications WebLogic Server deployment configuration to a custom deployment plan, which helps administrators
easily deploy the application into non-development environments:
■
Section 5.1, Overview of the Export Process