Results 1 to 2 of 2

Thread: problem with loading application context files with same name

  1. #1
    Join Date
    May 2008
    Posts
    5

    Default problem with loading application context files with same name

    Hi,
    I have two application context files with same name(SpringRmiBwClientContext.xml) at two different location of which one of the Application context file is in the jar and the other one is in the test folder.
    I want to use the application context file in the test folder for testing purpose. How can I override the hardcoded path in the Jar file with path in the test folder. Any help is highly appreciated.
    hardcoded path in jar
    Code:
    serverContext = 
           new ClassPathXmlApplicationContext("/org/blearn/vm/engine/SpringRmiBwServerContext.xml");
    Thanks,
    Sarala

  2. #2
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    I recommend you just to modify your buildmastering process in order not to include test config to the resulted jar. Also you can exploit another policy for base/test config namings, e.g. call test configs via ${base-config-name}-test.xml.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •