• Post Reply Bookmark Topic Watch Topic
  • New Topic

Classpath Issue

 
Ally Cavs
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

I have to test 2 projects against each other. An old project and a new project. I have to call each webservice and compare results.
So i created a third project. I added the old and new projects to the class path of the compare project

Only issue is that they both share and identically named package/class but have different implementations.
I dont think there is anyway to tell which version I want to use at each time is there?

Thanks,
Alan
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, there isn't, unless you can control the classloader used. Much easier than trying to control the classloading is to refactor your new project.
 
Ally Cavs
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about using classloaders?

classpath=jar1;,,,,jar2

remove jar1
callWS2

remove jar2
load jar1
callWS1

load jar2 again
compare WS1 results and WS2 results?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!