HighTechTalks DotNet Forums  

Dilemma in design pattern

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Dilemma in design pattern in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ashish
 
Posts: n/a

Default Dilemma in design pattern - 08-11-2003 , 08:40 AM






Hi Friends,
I am facing a very wierd situation and dont know how to apply .net design
pattern to resolve the same. My application is a distrubuted setup where
clients (from different machines) call a web service. The central web
service should be a daemonized process (like winnt services) and perform
other processing while accepting client requests. If I use a web service as
my central processing server then everytime a new client connects to it, IIS
will create a new process for the web service (I dont think I can use
singleton pattern here since processes will be different). If I create a
windows service then I lose soap interface (well ya I could use sockets but
automatic method invocation like in asp.net webservice is highly
desireable). I am sure this must be a common arch problem. Any hints on
this?
Thanks
Ashish




Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: Dilemma in design pattern - 08-12-2003 , 01:44 PM






Hi Ashish,

Thanks for using the Microsoft Developer Newsgroups. I have sent your
issue on to one of our support teams to get an answer to your question. I
will reply with their response as soon as I receive it.

Thanks for your patience!

Brett Keown
Microsoft Support
brettke (AT) online (DOT) microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
  #3  
Old   
Ashish
 
Posts: n/a

Default Re: Dilemma in design pattern - 08-13-2003 , 10:11 AM



Thanks Brett... waiting to hear from your side ...
Ashish

"Brett Keown [MSFT]" <brettke (AT) online (DOT) microsoft.com> wrote

Quote:
Hi Ashish,

Thanks for using the Microsoft Developer Newsgroups. I have sent your
issue on to one of our support teams to get an answer to your question. I
will reply with their response as soon as I receive it.

Thanks for your patience!

Brett Keown
Microsoft Support
brettke (AT) online (DOT) microsoft.com

This posting is provided "AS IS" with no warranties, and confers no
rights.




Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: Dilemma in design pattern - 08-15-2003 , 04:14 PM



Hi Ashish,

I am still working on this. It shouldn't be too much longer. Thanks!

Brett Keown
Microsoft Developer Support
brettke (AT) nospam (DOT) microsoft.com

To email me directly, please remove the "nospam" from my email address.

This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft Corporation. All rights reserved.


Reply With Quote
  #5  
Old   
Ashish
 
Posts: n/a

Default Re: Dilemma in design pattern - 08-19-2003 , 08:56 AM



Just to keep this thread alive... :-)
Ashish

"Brett Keown [MSFT]" <brettke (AT) online (DOT) microsoft.com> wrote

Quote:
Hi Ashish,

I am still working on this. It shouldn't be too much longer. Thanks!

Brett Keown
Microsoft Developer Support
brettke (AT) nospam (DOT) microsoft.com

To email me directly, please remove the "nospam" from my email address.

This posting is provided "AS IS" with no warranties, and confers no
rights. You assume all risk for your use. © 2001 Microsoft Corporation. All
rights reserved.
Quote:



Reply With Quote
  #6  
Old   
AT
 
Posts: n/a

Default RE: Dilemma in design pattern - 08-19-2003 , 12:08 PM



A service instance will be created for each call.

Does you need to hold the connection for each client?
Does you need to share state across the clients?

David
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.


Reply With Quote
  #7  
Old   
Ashish
 
Posts: n/a

Default Re: Dilemma in design pattern - 08-19-2003 , 12:58 PM



Hi David,
Thanks for your reply. As I said I want to design a daemonized service which
could be a windows service. I donot intend to hold connections for clients.
WS would act as a medium of information exchange, treat it as a replacement
of standard practice of using raw sockets from win services. Daemon will not
start / die after each requests, rather requests can be treated as
interrupts. So far from my knowledge I can host remoting objects with server
activated singleton configuration from win service and forward my calls from
asp.net WS to these remoting objects. I just donot know if this is a hack or
a proper way to do it.
Thanks
Ashish

"David Qiu" <davidqiuonline (AT) microsoft (DOT) com> wrote

Quote:
A service instance will be created for each call.

Does you need to hold the connection for each client?
Does you need to share state across the clients?

David
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.




Reply With Quote
  #8  
Old   
AT
 
Posts: n/a

Default Re: Dilemma in design pattern - 08-19-2003 , 06:50 PM



Hi Ashish,
Looks like hosting singleton remoteing objects in IIS will achieve what you
want.

David

This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
  #9  
Old   
AT
 
Posts: n/a

Default Re: Dilemma in design pattern - 08-20-2003 , 05:03 PM



Hi Ashish,
You have two solutions:
- Singleton remoteing object in IIS. You take the advantage of IIS built-in
security.
- Singleton remoteing object in Windows services over HTTP using SOAP

You need to call it first to create the object.

Thanks,
David
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.