Specify config files

6 views
Skip to first unread message

Mingo Hagen

unread,
May 25, 2011, 10:31:10 AM5/25/11
to javaloa...@googlegroups.com
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.

Mark Mandel

unread,
May 25, 2011, 4:35:29 PM5/25/11
to javaloa...@googlegroups.com

I'd there any documentation you can share with this jar file? Surely there is at least a javadoc, no?

Mark

Reply all
Reply to author
Forward
0 new messages