Organize utility jars with Rational Application Developer/Rational Software Architect

by lichen 1/21/2008 8:39:00 PM

We a fairly large Java project that contains multiple utility projects and web projects. We also use several utility jars such as Log4J, Spring and Hibernate. IBM has an great article on how to organize utility jars. Here is what we do:

  1. Create a java project to hold all the utility Jars. We would like to create a folder for each vendor. However, a limitation of Linked Utility Jars forced us to place all the jars in the root of the project directory. We also export all the jars in the project build path.
  2. In all projects that use the jars, we simply include the project in the build path. Since the project that hold the utility jars export them, these jars are automatically used by the projects that reference the utility project.
  3. Create a path variable that points to the utility project. In all EAR projects, reference the jars in the utility project through Linked Utility Jars (Import J2EE Utility Jars). When we export the EAR, all the linked jars will be included in the root of EAR.
  4. In the web projects, edit META-INF\MANIFEST.MF file using the Jar dependency editor to include jars. This is necessary for the web project to use the jars in the EAR file.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Add comment


(Will show your Gravatar icon)  

  Country flag





Live preview

11/21/2008 5:17:29 PM

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  November 2008  >>
MoTuWeThFrSaSu
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

View posts in large calendar

Pages

    Recent comments

    Authors

    Tags

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2008

      Sign in