Hi all,
I'm no java guru, so please correct me on everything.
I need to integrate an online payment system by the ING bank. They provide a jar-file and a config.properties file.
The first time I implemented this for a shop on our server this was no problem. Just put everything in the classpath and all was working fine.
The second time I ran into a problem, multiple shops would than all use the same config file (the one on the classpath)
So I either need to have multiple classpaths or I need to be able to pass a variable to the object with different config files for each shop.
The second option isn't really an option I think; I decompiled the class and found a constructor method that hard codes the config file as a ResourceBondle.getBundle( 'config' ) load. I have no idea where it gets that 'config' from.
For the first option to work I think I need to improve my understanding of the classpath concept.
Can anyone help me out? Is it possible to have a classpath for a certain jar?
Best regards,
Mingo.