The present invention relates generally to the development of web applications and, in particular, to merging independently developed modules into an integrated web application.
Large software projects are frequently divided into separate components to be completed by independent development teams. For example, in Java Enterprise Edition (J2EE) projects, applications are typically divided into a presentation or user interface component, a business logic component and a data component, each completed by an independent development team. Separating the development of an application in this manner reduces the complexity of development by isolating each team from the effects of changes in other parts of the project implemented by other teams.
However, such a division of development effort may still be subject to unnecessary complexity in very large projects. Upon completion of the J2EE components, the presentation and business components are generally combined into a single archive (WAR) file. Although the two components could be packaged into multiple WAR files, separate packaging is not preferable because each WAR file has its own configuration data and/or runtime resources. Thus, WAR files will not be able to share resources, such as a context root (configuration data) or a session (runtime resource), with other WAR files.
Consequently, a need exists to independently develop the separate components of a project while integrating the components into a single logical component at runtime.
The present invention provides method, system and computer program product to increase the efficiency of the development of Java Enterprise Edition (J2EE) applications. A project may be divided into modules which may be developed by independent teams. The files within each module are classified as independent of resources in other modules or dependent. Independent files may be packaged into a single, integrated web application archive (WAR) file without further processing. Corresponding dependent files are compared and any conflicts are resolved. The resulting files may then be packaged into the WAR file.
Changes made to a module during development may be process and tested against modules previously integrated into the WAR file.
Similarly, subsequent revisions to a module may be incorporated into the WAR file after first being processed to resolve any conflicts with files in the existing modules.
Referring to the block diagram of
The remaining resources used in the first module 200 are each related to a corresponding resource in the second module: file 1C 206 is related to file 2C 226; file 1D 208 is related to file 2D 228. For example, a file to map error codes to error messages might be used in two modules.
In a third section 306 of the tool 300, the related files are compared (step 408). The information in two corresponding files (such as files 1C and 2C) is examined to determine if any conflicts exist between the two. If no conflicts are present, the two files are merged (step 410) and passed to the second section 304 to be packaged in the WAR file 308.
If a conflict in the information of two resources is identified, it must be determined whether the conflict is major or minor (step 412). If minor, a user may be notified with an appropriate message 310 (step 414), allowing the user to decide how to proceed. While less preferable, the information in one file may alternatively be ignored (step 416), displaced by the information in the other file.
If the conflict is irreconcilable and, therefore, major, the user may be notified with an error message 310 (step 418), allowing the user to decide how to proceed. Alternatively, the process may abort (step 420), giving the development groups an opportunity to resolve the conflict by revising one or both of the related modules.
After conflicts have been resolved, the merged files (files C and D in the example) are passed to the second section 304 of the tool 300 to be packaged in the WAR file 308 (step 406). The WAR file 308 is then ready to be installed into a J2EE application server as a J2EE application.
During development, a development team may want to make revisions to a file and determine if the revisions will perform as expected. The module in which the revisions were made may be processed by the tool 300 and tested against other modules already integrated into the WAR file 308.
Similarly, after development, revisions or updates to a file may be made. The module in which the revisions were made may be processed by the tool 300 and integrated into the WAR file 308.
The objects of the invention have been fully realized through the embodiments disclosed herein. Those skilled in the art will appreciate that the various aspects of the invention may be achieved through different embodiments without departing from the essential function of the invention. The particular embodiments are illustrative and not meant to limit the scope of the invention as set forth in the following claims.
This application is a continuation of application Ser. No. 10/721,818, filed Nov. 24, 2003, status allowed.
Number | Name | Date | Kind |
---|---|---|---|
5047918 | Schwartz et al. | Sep 1991 | A |
5966702 | Fresko et al. | Oct 1999 | A |
6230184 | White et al. | May 2001 | B1 |
6336122 | Lee et al. | Jan 2002 | B1 |
6493870 | Madany et al. | Dec 2002 | B1 |
6675382 | Foster | Jan 2004 | B1 |
6901590 | Narayanaswamy et al. | May 2005 | B2 |
6976093 | Lara et al. | Dec 2005 | B2 |
7069553 | Narayanaswamy et al. | Jun 2006 | B2 |
7165249 | Potter et al. | Jan 2007 | B2 |
7171422 | Hayes et al. | Jan 2007 | B2 |
7197519 | Nishikawa et al. | Mar 2007 | B2 |
7210124 | Chan | Apr 2007 | B2 |
7480895 | Brauneis et al. | Jan 2009 | B2 |
20020178439 | Rich et al. | Nov 2002 | A1 |
20020184187 | Bakalash et al. | Dec 2002 | A1 |
20030018642 | Bakalash et al. | Jan 2003 | A1 |
20030033360 | Garnett et al. | Feb 2003 | A1 |
20030050967 | Bentley | Mar 2003 | A1 |
20030061191 | Pearson | Mar 2003 | A1 |
20030093471 | Upton | May 2003 | A1 |
20030182651 | Secrist et al. | Sep 2003 | A1 |
20040039728 | Fenlon et al. | Feb 2004 | A1 |
20040177358 | Narayanaswamy et al. | Sep 2004 | A1 |
20050108259 | Watanabe et al. | May 2005 | A1 |
20050114630 | Brauneis et al. | May 2005 | A1 |
20090037878 | Brauneis et al. | Feb 2009 | A1 |
Entry |
---|
Chan, “J2EE Application Deployment Considerations”, Jun. 11, 2003, pp. 1-8, retrieved from scholar.google.com on Oct. 2, 2007. |
Number | Date | Country | |
---|---|---|---|
20090037878 A1 | Feb 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10721818 | Nov 2003 | US |
Child | 12251266 | US |