.NETGURU
Can a remote object be a WebService as well?
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.remoting.

Post a new message to this list...

Julia
Hi,

Can a Remote object be a WebService as well?
i want to able to connect to a remote object either using .NET remoting
and HTTP\SOAP

so I wonder if I can create a singleton(statefull) object hosted in IIS
which can be xml web service
,NET remoted object,singleton and support COM+ transaction management all in
the same time

The object should served single user

Thanks.

----------------------------------------------------------------------------
----------------------------------
My orginial post which didnt get answers in several news groups:
----------------------------------------------------------------------------
----------------------------------
I need help with architecture design,please:

I have a server which constantly downloading messages from the internet
and store them inside a data base.

the server have two administrators options:
one is a local windows application,and the second is a web application
The administrator can either delete messages,add new messages,and send
messages

i am new to .NET remoting,so here is my idea in general:

1.Create singleton MessagesServer remotable object which act as my server
and hosted by some exe application
2.For Windows admin application, just connect to the singleton object and
admin it
3.For the web admin application,using ASP,NET pages,connect to the
MessagesServer and admin it
(I cannot install .NET components on this machine so i must use server
side code?)

My questions are:

1.Can I create in .NET something similar to COM out proc server (activex
exe),which mean that when the admin application
will create the MessagesServer,than the exe which hosting MessagesServer
will start?

2.Assuming the window admin application is local to the MessagesServer,can
i just pack the MessagesServer object
into the window admin executbale,so it will be local to the window
application.,but remote for the web application?

3.When using Web application,what is the best way to access the data
base,should I do itusing the MessagesServer,for example
MessagesServer.GetMessages() as
ArrayList
or can I go directly to the data base(I guess I will have some
synchronization issues here!?)

4.Regarding locks,assuming i have one thread in the MessagesServer object
which access the data base,and than a request from the
Web application is arrived to write to the data base,can i control the
time in which the request will return to the web application?

5.can the MessagesServer object be a singleton,remotable(for windows
application),hosted by IIS,support transactions using COM+ and exposed as
WebService all at the same time?!?

6.Can you point me to some articles or examples which describe a similar
problem?

7.any books about services components in .Net(preferably in C#)?

The overall architecture is something similar to Exchange server/OWA i
guess.

Thanks.

Reply to this message...
 
    
Sam Santiago
You should be able to if you create a true singleton object that is also
exposed a remote object. If your web services is in the same App Domain as
your singleton object then is could use the object as a typical object.
Otherwise it could also use it as a remote object since the same instance
will be used by all clients. We had a discussion on singletons and
factories in this group a few weeks ago, so search the group for it or I
have some of the discussion here: http://www.SoftiTechture.com/discussions.
Also, this article might be helpful:

INFO: Configure .NET Remoting When the Remoting Client Is an ASP.NET
Application or the Client Is Another Remoted Component That Is Hosted by IIS
http://support.microsoft.com/default.aspx?scid=kb;en-us;323490

Thanks,

Sam
--
_______________________________
Sam Santiago
Click here to reveal e-mail address
http://www.SoftiTechture.com
_______________________________
"Julia" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Julia
Thanks.

"Sam Santiago" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Collections.ArrayList
System.Web.Services.WebService




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification