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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:45:02+00:00 2026-06-13T00:45:02+00:00

The project am working implements IOC/DI using castle windsor. There are many modules in

  • 0

The project am working implements IOC/DI using castle windsor. There are many modules in project. There is a module called ProcessEngine that send the Invoices to my module for Automatic Process which involves 7 steps.

Up to now ProcessEngine module use to send Invoices one by one as in a queue and my module worked perfectly. But now ProcessEngine send many invoices that are ready by spanning them in different threads each invoice having there own thread so the problem arises.

The problem I see is that the instances are created by using Castle Windsor and it returns the same object everytime. That means all threads are having same instance and it creates the chaos. Then I created instances of major classes that have some private properties by using new keyword and it worked fine.

Is there any way I can restrict Castle Windsor container to return new instance everytime for some of the classes of my module? It is Architecture guideline of the project that object must be instantiated using Castle Windsor not using new keyword. Is there any solution for this?

Any help will be highly appericiated. I dont have much knowledge of Castle Windsor but I observed It is kind of Singleton Pattern as it returns same object everytime using Castle Windsor.

  • 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-13T00:45:03+00:00Added an answer on June 13, 2026 at 12:45 am

    You need to check lifestyles.

    Default behaviour is singleton, which means it will indeed return the same instance when you ask for resolve.

    You can use PerThread or Transient lifestyle.

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

Sidebar

Related Questions

I am currently working on a project that implements Azure ACS. I got the
I'm working on a large Winforms project for a client that is using business
I've been using Castle Windsor in my previous project and I liked it a
I'm working with open source project (axil) that implements a scripting engine inside of
I'm working on a project that will require me to implement a calendar. I'm
I am working on one project where there is a functionality need to implement
I'm working on a WPF project using MVVM and I'm trying to implement a
I am working on a web project that is Spring+Hibernate+MySQL based. I am stuck
I am working on a project for college that uses GWT, Hibernate and Gilead.
I'm working on a grails legacy project. A domain class called User exists. It

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.