6-18 Deploying Applications to Oracle WebLogic Server
package and redeploy referencing applications to use the newer version of the shared files. See Editing Manifest Entries for Shared Libraries in Developing Applications for
Oracle WebLogic Server for more information.
6.11.2 Registering Libraries with WebLogic Server
A shared Java EE library is a standard Java EE module or Enterprise application that is registered with a WebLogic Server container as a library. To register a Java EE library
with a WebLogic Server container, perform the following steps:
1.
Ensure that the deployment files you are working with represent a valid Java EE library or optional package. See Creating Shared Java EE Libraries in Developing
Applications for Oracle WebLogic Server.
2.
Select the WebLogic Server targets to which you will register the library or package. Shared libraries must be registered to the same WebLogic Server
instances on which you plan to deploy referencing applications. You may consider deploying libraries to all servers in a domain, so that you can later deploy
referencing applications as needed.
3.
Register the library or package by deploying the files to your selected target servers, and identifying the deployment as a library or package with the
-library option. For example:
java weblogic.Deployer -adminurl http:localhost:7001 -username weblogic -password weblogic -deploy -targets myserver1,myserver2
-library deploymentsmyLibraryApplication
6.11.3 Specifying Library Versions at Deployment
As a best practice, your development team should always include version string information for a library or optional package in the manifest file for the deployment.
See Editing Manifest Entries for Shared Libraries in Developing Applications for Oracle WebLogic Server for more information.
If you are deploying a library or package that does not include version string information, you can specify it at the command line using one or both of the following
options:
■
libspecver—Defines a specification version for the library or package.
■
libimplver—Specifies an implementation version for the library or package. For example:
java weblogic.Deployer -adminurl http:localhost:7001 -username weblogic -password weblogic -deploy -targets myserver1,myserver2
-library -libspecver 700 -libimplversion 7.0.0.1Beta deploymentsmyLibraryApplication
Deploying Applications and Modules with weblogic.Deployer 6-19
6.11.4 Deploying Applications That Reference Libraries