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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:19:19+00:00 2026-05-15T16:19:19+00:00

Both perform the same operation that is MSDN Singleton: Single Call objects service one

  • 0

Both perform the same operation that is

MSDN

  • Singleton: “”Single Call objects service one and only one request coming in…. “
  • CAO: “Client-activated objects (CAO) are server-side objects that are activated upon request from the client….”

in both cases, data is not shared, but in singleton only once client can be connected at a time, why would someone want that
Under what scenario is Singleton useful and are there any more differences in them ?

  • 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-15T16:19:20+00:00Added an answer on May 15, 2026 at 4:19 pm

    You missread the lines. Here´s the definition from the MSDN. I highlight (bold) some diffrences between those objects.

    • Single Call

      Single Call objects service one and only one request coming in. Single
      Call objects are useful in scenarios
      where the objects are required to do a
      finite amount of work. Single Call
      objects are usually not required to
      store state information, and they
      cannot hold state information between
      method calls
      . However, Single Call
      objects can be configured in a
      load-balanced fashion.

    • Singleton Objects

      Singleton objects are those objects that service multiple clients
      and hence share data by storing state
      information between client
      invocations
      . They are useful in cases
      in which data needs to be shared
      explicitly between clients and also in
      which the overhead of creating and
      maintaining objects is substantial.

    • Client-Activated Objects (CAO)

      Client-activated objects (CAO) are server-side objects that are
      activated upon request from the
      client
      . This way of activating server
      objects is very similar to the classic
      COM coclass activation. When the
      client submits a request for a server
      object using “new” operator, an
      activation request message is sent to
      the remote application. The server
      then creates an instance of the
      requested class and returns an ObjRef
      back to the client application that
      invoked it. A proxy is then created on
      the client side using the ObjRef. The
      client’s method calls will be executed
      on the proxy. Client-activated objects
      can store state information between
      method calls for its specific client
      and not across different client
      objects
      . Each invocation of “new”
      returns a proxy to an independent
      instance of the server type.

    State Information is some data that you store in variables or properties of the object, to process the client request.

    Since a Single call object is created when a client request it to do some work, and destroyed after it has done work, it cannot hold state information, cause each request creates a new object (It can load and store data in a datasource, to do it´s work).

    A Singleton object is created only once (maybe at server starup) and lifes as long as the server process is running. It can store information in variables and properties to handle client requests, cause each client works with the same object and it isn´t destroyed after a client call.

    An easy example to display the diffrence betwenn a single call and singleton object is to create a method Increment() to increment a variable (integer) in the object and write the variable to the Console. The single call object will always print the same value to the Console (1 if the variable starts with 0), while the singleton object will always print an incremented value (1, 2, 3, etc.) after each call.

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

Sidebar

Ask A Question

Stats

  • Questions 505k
  • Answers 505k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer List.First() will work. However, you really shouldn't be using ElementAt… May 16, 2026 at 3:28 pm
  • Editorial Team
    Editorial Team added an answer Delete the setup.exe that's on your hard drive and try… May 16, 2026 at 3:27 pm
  • Editorial Team
    Editorial Team added an answer So, assuming that the question is "How do i get… May 16, 2026 at 3:27 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

We need to perform the following operation in our database : There is a
I have some written a number of unit tests that test a wrapper around
i have a Parent class that has two child collections ChildCollectionA and ChildCollectionB. ChildCollectionA
Returning a new object on overloaded operators seems the only thing to do. Right?
I am using JBoss 5.1.0.GA on Red Hat Linux 4. We have only webservices
I'm trying to switch from two-stage rotation to one-stage rotation (to avoid the console
I'm writing a windows service to do some daily processing, and I want to
I have an object called FormObject that contains two ArrayLists - oldBooks and newBooks
I am trying to loop through some elements in a form (radios, text boxes,
Sorry for the lack of a descriptive title; I couldn't think of anything better.

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.