Oracle
  Home arrow Oracle arrow Page 5 - Deploying J2EE Applications
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Actuate Whitepapers 
VeriSign Whitepapers 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ORACLE

Deploying J2EE Applications
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2007-03-15

    Table of Contents:
  • Deploying J2EE Applications
  • Types of Data Sources
  • Creating Data Sources
  • Managing Data Sources
  • Deploying Web Application Modules

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Deploying J2EE Applications - Deploying Web Application Modules


    (Page 5 of 5 )

    You can use either the Application Server or the dcmctl utility to deploy Web applications. In the following subsections, examples are given of both approaches to Web application deployment.

    Using the dcmctl Utility

    Using the dcmctl utility, you can deploy, undeploy, and redeploy Web applications by using the supplied WAR files. Here’s an example showing how to use dcmctl to deploy a WAR file:

      dcmctl deployapplication -file /test/testapp.war -a testapp \
      -co home -rc /myiAS/myWebapps

    In the preceding dcmctl command, the various options stand for the following:

    • file refers to the WAR file (it could also be an EAR file) that you want to deploy.
    • a refers to the name of the application being deployed (testapp in our example). 
    • -co (component name) specifies the OC4J instance to which this WAR file will be deployed. If you leave this parameter out, the application will, by default, be deployed to the home OC4J instance.
    • The -rc option specifies the base path a URL will use to access the Web module (for example, http:// hostname:port/context_root) you are deploying. Note that the -rc option applies only when you’re deploying WAR files.

    Note that you mustn’t use the -rc option when deploying EAR files.

    To redeploy a Web application, use the dcmctl command as in the foregoing example, but with the redeployApplication option instead of the deployApplication option. To undeploy an application, use the undeployApplication option.

    Using the Application Server Control

    You deploy WAR files in order to deploy Web applications. However, when you deploy a WAR file for the first time, the Application Server Control wraps the application in an EAR file, thus making it a J2EE application. Use the following steps to deploy a Web application through the Application Server Control’s Deploy Web Application page, which displays a list of all OC4J applications deployed on the OC4J server:

    1. Go to the OC4J home page and click the Applications tab.
    2. In the OC4J server Applications page, click the Deploy WAR file, under the Deployed Applications section.
    3. In the Deploy Web Applications page, supply the path to the Web application, the Web application’s name, and the URL it should be mapped to. Figure 8-7 shows the Deploy Web Application page.


      Figure 8-7.  The Deploy Web Application Page
    4. Click the Deploy button to deploy the Web application.
    5. Note that once you deploy a Web application file through the Application Server Control, you can’t redeploy it by using the EAR file created for it by the Application Server Control. You must first undeploy the application and then deploy the WAR file again.

    Please check back next week for the conclusion to this article.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · This article is an excerpt from the book "Oracle 10g Application Server Exam Guide,"...
     

    Buy this book now. This article is excerpted from chapter eight of the Oracle 10g Application Server Exam Guide, written by Sam Alapati (McGraw-Hill; ISBN: 0072262710). Check it out today at your favorite bookstore. Buy this book now.

       

    ORACLE ARTICLES

    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...
    - Sub-templates and More with Oracle HTML DB
    - Focusing on Templates in Oracle HTML DB





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway