Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 773
  • Last Modified:

Best approach for singleton service

Coming from a DCOM world, I'm trying to write a singleton type service that does not necessarily require user interaction via a GUI but needs to be programatically addressable.

This application should be run at startup like a Windows Service (in fact I would prefer a Windows Service but I understand that starting with Vista it is a no-no to have a program interface on a service).  Also needs to be reachable in a client/server setup.

Not really a web environment - I'm thinking maybe WCF?

Suggestions anyone?  Thanks!



0
mfenske17363
Asked:
mfenske17363
  • 2
  • 2
1 Solution
 
Anurag ThakurTechnical ManagerCommented:
you want to have a windows service and to be accessible so that you can create the onject of the singleton class and then use it

my suggestion will be to create a windows service based singleton class and then make it accessible using TCP remoting

0
 
mfenske17363Author Commented:
Sorry for noobish questions...

Does not WCF replace remoting?

So you are suggesting creating a separate executable that the service would start that clients can then communicate with?
0
 
Anurag ThakurTechnical ManagerCommented:
WCF might have replaced remoting but not completely
there might still be situations where the remoting applications will have advantage over WCF applications
http://www.codeplex.com/WCFvsRemoting/Wiki/View.aspx?title=Home
http://social.msdn.microsoft.com/forums/en-US/wcf/thread/bb7985ea-4595-4a31-97d6-928f9724ab46

I am jsut suggesting to create a windows service and implement remoting through it as it will listen to a specific port and when the call comes will return the singleton object or the value queried
0
 
mfenske17363Author Commented:
I have a sample service running now, I wonder if there is a sample floating around that implements the singleton object concept that my clients can talk to.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now