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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:34:15+00:00 2026-05-23T21:34:15+00:00

I have a solution in which an UpdateController class manages the logic for updating

  • 0

I have a solution in which an UpdateController class manages the logic for updating data. This controller calls various classes for managing data (ClaimData, StatementData, etc.). What’s the best way to share connection across these data handlers–use a singleton, or create another class for managing the connection and passing it to each data handler? What if the application is multithreaded?

Thanks in advance.

  • 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-23T21:34:16+00:00Added an answer on May 23, 2026 at 9:34 pm

    you could use dependency injection to provide each of these with a connection…

    another way is to use an Oracle provider with internal Connection pooling (for example Devart dotconnect, I am only a customer)… then you only share the connection string via dependency injection or configuration file… every class instantiates/releases the connection on its own… the central connection pooling takes care of the rest (reusing connections etc)… this way you don’t have to worry about any threading issues regarding connections…

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

Sidebar

Related Questions

I have a solution which contains a website and various class libraries. The exists
I have an solution in VS 2008 which contains two class library projects and
I have solution A which defines public class Foo, and solution B which references
This may have a simple solution which I haven't found yet. but here's the
How do you create rounded corners with Paperclip? I have found this solution which
I have a static class in my solution which is used to work with
I have a solution which has multiple output projects (a website, and admin tool,
I have a solution which has many projects inside it. I build the solution
I have a VS2005 solution which contains a variety of projects (C++ DLLs, C++
I have a Visual Studio solution which is open in both blend 2 SP1

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.