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

  • Home
  • SEARCH
  • 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 7591473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:39:31+00:00 2026-05-30T20:39:31+00:00

My application source its Datasource settings from a properties file. When I start Tomcat

  • 0

My application source its Datasource settings from a properties file. When I start Tomcat I load the properties file, make changes to it depending on the enviroment Tomcat is running, typically UAT or Production – and base on this pass the appropriate Setting values require for Database connection.

My problem is, when the properties file is updated at bootstrap for the first time with the new connection values, on tomcat – Spring sessionFactory do not seem to acquire the current updated values, and therefore end up with Database connection exception. But when I restart Tomcat – sessionFactory now have access to the updated values.

My question is – do anyone know why sessionFactory only works with the previous values as oppose to the updated settings values?

  • 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-05-30T20:39:33+00:00Added an answer on May 30, 2026 at 8:39 pm

    I Used Maven Filter to replace profile properties at build time.

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

Sidebar

Related Questions

I have built an open-source application from the source code. Unfortunately, the original executable
I'm trying to build an application from source in windows that requires some Unix
I'm building a python application from some source code I've found Here I've managed
Am using datagrid in my windows application, its getting more time to load datas(13
Spring.NET is an open source application framework that makes building enterprise .NET applications easier.
After developing a WPF application without Source Control, I decided to add the solution
I'm using a closed-source application that loads Lua scripts and allows some customization through
I want to download this open source application, and they are using Git. What
My open-source Android application uses this in an SQL query: String.format(%f, someDoubleValue); Unfortunately, in
I'm developing an application that detects Source-based games running on the LAN. Following up

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.