Oracle
  Home arrow Oracle arrow Deploying J2EE Applications
Dev Shed Forums 
Administration  
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 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
eWeek
 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

    PCmover - $15 Off with Coupon Code CJPH7Q

    Deploying J2EE Applications
    (Page 1 of 5 )

    In this week's part of a multi-part series covering OC4J and J2EE applications, you will learn how to deploy J2EE applications, create data sources, and more. This article is excerpted from chapter eight of the Oracle 10g Application Server Exam Guide, written by Sam Alapati (McGraw-Hill; ISBN: 0072262710).

    CERTIFICATION OBJECTIVE 8.07

    Deploying J2EE Applications

    Oracle recommends that you use consistent and meaningful naming conventions when developing Web applications. You must create your applications as a set of modules and place them under a directory that’s named for the application. All your directories under the main application directory should be consistent with the directory structure for creating the necessary JAR, WAR, and EAR archives to facilitate the archiving of the application modules. Here’s the standard development application directory structure for J2EE-based Oracle applications:

      Applications/<application_name>/
                 META-INF
                       application.xml
                <ejb_modules>/
                       EJB classes
                       META-INF/
                           ejb-jar.xml
                           orion-ejb-jar.xml 
                <web-module>/
                   index.html
                   JSP pages
                   WEB-INF/
                     |      web.xml
                     |     orion-web.xml
                     |     classes/
                     |      ----Servlet classes
                     |---------------Lib/  
      <client_module>/
                Client classes
               
    META-INF/
                    
    |
                    
    ---------   application-client.xml
                               
    orion-application-client.xml

    Note that the application.xml file, which is the main application descriptor file, defines each of the modules. When you create a directory structure such as the one shown here, the modules are easily distinguishable from each other. For example, the EJB package class "testapp.ejb.Prod" should be located in the directory <testapp>/<ejb_module>/testapp/ejb/Prod.class.

    Deployment Methodologies

    As mentioned previously, you can deploy Web applications as well as EJB applications through OC4J. You can deploy applications through the Application Server Control, or by using the dcmctl utility. The recommended approach is to use the Application Server Control. You can also deploy applications by manually editing the configuration files, of course, as well as by unpacking the deployment archive files in their deployment directories.

    Data Sources

    A data source is an object that lets you retrieve a connection to a database server. Data sources are encapsulations of connections to a database server, and they are instantiations of objects implementing the javax.sql.dataSource interface. Data source objects are bound to the JNDI name space, and the J2EE applications use the JNDI tree to look up various DataSource objects. Data sources offer you portable methods for creating JDBC connections across servers.

    on the job:  Because of their vendor-independent nature, Oracle Corporation recommends that you use data sources to retrieve database server connections.

    More Oracle Articles
    More By McGraw-Hill/Osborne


       · 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 6 hosted by Hostway