I'm using 2 third party jars (cannot change the class file). Each one uses the same communication jar (same path and name) but of different versions. In case the third party doesn't use the correct version it crashes. for example:
Third Party A.jar calls comm1.3.jar
Third Party B.jar calls comm1.8.jar
Calling to A or B is multithreaded which might take sync issues so i cannot rely on class loader order.
How can i make sure each third party jar will load/use the correct comm jar?
Do you have a code sample?
Thanks in advance,
Fredy
Aucun commentaire:
Enregistrer un commentaire