This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
G.Sathish kumar
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic