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 8034585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:04:10+00:00 2026-06-05T02:04:10+00:00

What is the best way to configure Datasources if application server may change client

  • 0

What is the best way to configure Datasources if application server may change client to client?

I have originally specified it in the application server itself. But now application servers are changing client to client. Clients are using many different application servers as JBOSS,Tomcat or Websphere etc.

Now it is becoming tedious for me as now it has to be configured as per the client specific server and I have to understand their application server configuartion.

That is why now I am moving datasource configuration to Spring’s application context.

  • What is most efficient way to inject datasource configuration while dealing with multiple application servers?
  • 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-05T02:04:12+00:00Added an answer on June 5, 2026 at 2:04 am

    I prefer configuring the database connection on the application level.

    A good way to achieve this would be to define the relevant connection settings in a properties file located outside you web application, eg “/home/myuser/mywebapp/database.properties”. You can then configure your spring application to read the properties from this file and create your datasource accordingly.

    This way you can

    • avoid (re)configuring a client’s application server
    • avoid holding your client’s database settings on your build system, because you’ll only need the location of their database properties file
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the best way to configure my .Net 4 application to use the
The best way of describing this is I have a table of people with
What is the best way to protect a Cocoa shareware application from software piracy?
What's the best way to configure the maximum number of threads that can pull
I am looking to the best way to configure eclipse or STS to work
What is the best/easiest way to configure logging for code kept in the lib
What would be the best way to implement fluent-nhibernate regarding project architecture? I have
What is the best way to make a browser=based chat server with a python
I'm trying to find the best way to configure my App instances on GAE.
What is the best/easiest way to configure AutoMapper to map ICollection<DomainModel> to ICollection<ViewModel> to

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.