Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 6th, 2005, 4:02 PM   #1
neked
Newbie
 
Join Date: Jul 2005
Posts: 1
Rep Power: 0 neked is on a distinguished road
Compartmentalization

Dear All,

I have been hired recently to work on a Java J2EE project, and the codebase is very huge. I have designed a small servlet that is supposed to run independently as the J2EE container starts up, however the servlet makes use of few classes inside the big project. Therefore, to make the servlet work, all necessary classes from the original project should be included in the WAR file that is deployed independently. I have tried to include only those files that are necessary for the running of the servlet, however, I got deep into a dependency mud swamp, where almost every class depends on an array of other classes inside the project. Therefore, I just put the whole project in the WAR file made for the servlet, and deployed it.

Obviously, this is an ineffecient and unclean solution: Not only are the project files deployed twice in the J2EE memory, but some of those files are deployed twice unnecessarily, since the independent servlet does not need them. To solve this problem, I started researching some dependency finders that would enable me to make a complete list of dependencies for a certain Java class and port the list into a WAR file. This would have solved the second problem (unnecessary redundancy of class files in the memory), however, I have not found any such utility. I could try to write one, but I simply have no time and I have faith there must be somebody out there who knows of some compartmentalizing utilities for Java.

The question is, anybody here knows any of those utilities?

Thanks in advance,
neked
neked is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:42 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC