Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8361591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:43:59+00:00 2026-06-09T11:43:59+00:00

I have two Java applications which use Spring (one with v 2.5.4, the other

  • 0

I have two Java applications which use Spring (one with v 2.5.4, the other with v 3.1.1.) and are deployed onto Weblogic.

For each application, I’d like Spring to be able to utilise two separate property files – one in the server’s filesystem and, if that does not exist for any reason, one included in the application’s ear file as a set of “default” values.

Can I specify such a thing using a “context:property-placeholder” entry in the application’s applicationContext.xml file?

I’ve had a look on the Net and not been able to find anything definitive… but could I do something like this, for example?

<!-- Default values loaded first -->
<context:property-placeholder location="classpath:myEarPropertiesFile.properties" />
<!-- Overridden values loaded next -->
<context:property-override location="file:myExternalPropertiesFile.properties" />

Thanks in advance for any thoughts.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:44:00+00:00Added an answer on June 9, 2026 at 11:44 am

    I managed to fix the issue with a PropertiesFactoryBean which was referenced by my PropertyPlaceholderConfigurer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two Java applications in my network that talk to each other over
I have two separated applications, one written in Java and other in Erlang. Both
I have two versions of a Java application which use different concurrency logic. I
I have a bean which extends other Java file. When I create a Spring
I have a java application where the main-thread starts 2 other threads. If one
I have an application which consists of two activities/screens and a java class from
Background: I have a Spring 2.5/Java/Tomcat application. There is the following bean, which is
I have a application which use two layouts in portrait ans landscape. To load
I have a setup in which some applications communicate with each other via Tibco
Suppose I have two Java projects in Maven / Eclipse: An open source application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.