• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to design independent component on the same application server

Tony David
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Is it possible to really design independent components on the same application server ?
Assuming for instance 2 components :
a war for the GUI part -> component A
an EJB for the business inside an ear -> component B

If I have the same Jar deployed in both components but with different classes' version,
according to the class loader policy, jar classes will be loaded only one time depending on their position in the classpath,
that means one jar will be loaded and the second one ignored.

I know we can configure some properties in ear or war to force a class loader to load a specific class or package exclusively
inside itself but is it the only way because this practice is quite difficult to manage especially in case of huge application.

If we deploy each component on different application server, we can get the independence we are looking for but
I was wondering in case of application with several components to be independent, running one application server for each component can be cumbersome.
I am waiting for your opinion, thanks in advance
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic