wood burning stoves 2.0*
The moose likes Java in General and the fly likes User defined Class Loader - restrict loading classes based on package structure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "User defined Class Loader - restrict loading classes based on package structure" Watch "User defined Class Loader - restrict loading classes based on package structure" New topic
Author

User defined Class Loader - restrict loading classes based on package structure

G.Sathish kumar
Ranch Hand

Joined: Jul 27, 2009
Posts: 84
Hi

In our web application, we are having 3 layers (Ex: UI (java only used for rendering) with Controller, Service and DAO) and each layer having difference package structure. we planned to take the packages and classes from each layers into each jar file and distribute into different servers.

But, as of now we are developing with single JDK for all layers and all classes loaded in single JVM only. My need and question is: we need a No Class Definition found exception while UI layer class is constructed in service layer, we should throw No class definition found run time exception.

I feel it is possible by using Class Loders but can any one please help me to understand with some examples.

Thanks
Sathish kumar


Thanks
Sathish kumar
SCJP, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User defined Class Loader - restrict loading classes based on package structure
 
Similar Threads
stand-alone java app and hibernate transactions
package structure during design
help with complicated uml diagram
Passed SCJD with 137/155
access right to Static key word - same jvm - difference application