bea.com | products | dev2dev | support | askBEA |
|
e-docs > WebLogic Platform > WebLogic Integration > Deploying Solutions > Deploying Resource Adapters |
Deploying Solutions |
Deploying Resource Adapters
This section describes how to deploy resource adapters after you start the servers in your cluster. For information about how to set up and start your clustered deployment, and which adapters are deployed by default in your WebLogic Integration domains, see Configuring a Clustered Deployment.
After you start the servers in your cluster, you can deploy resource adapters by using one of the following methods:
Using the weblogic.Deployer Command-Line Utility
The weblogic.Deployer utility is a Java-based deployment tool that provides a command-line interface to the WebLogic Server deployment API. For information, see "Deployment Tools and Procedures" in WebLogic Server Deployment in BEA WebLogic Server Developers Guide, which is available at the following URL:
http://download.oracle.com/docs/cd/E13222_01/wls/docs70/programming/deploying.html
Deploying the Sample DBMS Adapter
The following example demonstrates how to deploy the sample DBMS adapter, which you received with your WebLogic Integration software, into a cluster named MyCluster. The cluster contains two managed servers: MyServer1 and MyServer2. The following table describes the cluster configuration.
Use the following command to deploy the DBMS adapter in this example cluster. Note: The following code listing represents a single command. It is shown here on multiple lines for the sake of readability. On your command line, however, it must be entered as one physical line. Listing B-1 weblogic.Deployer Command Line to Deploy the DBMS Adapter In the preceding command line:
java -classpath WL_HOME\lib\weblogic.jar weblogic.Deployer
-adminurl t3://127.0.0.5:7005 -user username -password password
-upload -stage
-source WLI_HOME\adapters\dbms\lib\BEA_WLS_DBMS_ADK.ear
-name BEA_WLS_DBMS_ADK
-targets BEA_WLS_DBMS_ADK.rar@MyCluster,
BEA_WLS_DBMS_ADK_Web.war@MyCluster,
BEA_WLS_DBMS_ADK_EventRouter.war@MyServer1
-activate
This is a comma-separated list of subcomponents. (Note that there are no spaces between the items in the list.) As described in Deploying Adapters, the event router WAR files for sample adapters are targeted to a single node in a cluster. This sample command specifies that the RAR and design-time Web application are deployed to the cluster, and that the EventRouter Web application is deployed to a specific managed server.
Using the WebLogic Server Administration Console
WLI_HOME\adapters\dbms\lib\BEA_WLS_DBMS_ADK.ear
For information about using the WebLogic Server Administration Console to deploy applications, see "Configuration and Deployment Tasks" in Applications in the Adminstration Console Online Help, which is available at the following URL:
http://download.oracle.com/docs/cd/E13222_01/wls/docs70/ConsoleHelp/applications.html