![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 1
Rep Power: 0
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|