• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple Versions of the same jar  RSS feed

 
Anjaneya Ram
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,
We have upgraded a jar to a newer version. But we need few applications to use the older version and other applications to use the newer version? We have specified in manifest the appropriate path of the jar to be used? We see some issues with two versions of same jar. Do we need to have a separate classloader for each application? What is your suggestion?


Thanks,
Ram
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this is a desktop application, you should have no problem, because you can include just the correct jar in the app.
If this is a web app that needs to access both versions, and you can't separate it into two web apps, then -yes- you would need to use classloaders to separate the two namespaces from each other.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!