Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 8th, 2007, 12:57 PM
Authorized User
Join Date: Jul 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default J2EE BluePrints: correct location for common Java

I have a set of Java source files that are common between multiple J2EE applications.

Within the J2EE package hierarchy, what is the correct location for these files?

Also, is there a typical package name that common Java source files are grouped under?

Old October 15th, 2007, 07:56 AM
Friend of Wrox
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post

The common code is specific to your applications or may be common for some other applications, you can use like com.rakesh.util.[code specific name like db for database related code, io for io related classes]/com.rakesh.common.[code specific name] and place these classes in a separate directory and have a separate build script for these file. Make jar file only for these classes and place it in the lib directory of your application or you can try by placing them in app.server lib directory so that one jar file will be shared by all the applications deployed in that app.server.

- Rakesh

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prepare for interviews of java/j2ee prabhatbisht J2EE 2 December 26th, 2007 09:28 AM
Java Server Programming J2EE 1.3 Edition yan_kadis All Other Wrox Books 3 October 13th, 2005 02:34 PM
Help me to get a good book for JSP , J2EE,JAVA premnath_a JSP Basics 0 May 16th, 2005 05:38 AM
Professional Java Server Programming J2EE Edition havid All Other Wrox Books 0 June 22nd, 2003 05:14 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.