File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic