[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

I need help with architecture design,please.

Julia

9/4/2004 11:35:00 AM


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 an 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 it
using 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 you point me to some articels or examples which describe a similar
problem?


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


Thanks.






3 Answers

Alvin Bruney

9/7/2004 5:53:00 PM

0

Are you that desperate that you need to post this message to this many
newsgroups?

Have a look at webservices, this ideally what you need to implement. I would
recommend it over a remoting interface since you have no control over the
web app client which makes remoting less ideal for your situation.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/de...]
Got tidbits? Get it here... http://tinyurl...
"Julia" <codewizard@012.net.il> wrote in message
news:ehVZ$MnkEHA.3372@TK2MSFTNGP09.phx.gbl...
>
> 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 an 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 it
> using 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 you point me to some articels or examples which describe a similar
> problem?
>
>
> The overall architecture is something similar to Exchange server/OWA i
> guess.
>
>
> Thanks.
>
>
>
>
>
>


Julia

9/8/2004 5:20:00 PM

0

Why? can't i call remoting object from an ASP.NET page?
The WebApp client will access the object only though a server side code.

Thanks.


"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:OH4TXOQlEHA.2680@TK2MSFTNGP15.phx.gbl...
> Are you that desperate that you need to post this message to this many
> newsgroups?
>
> Have a look at webservices, this ideally what you need to implement. I
would
> recommend it over a remoting interface since you have no control over the
> web app client which makes remoting less ideal for your situation.
>
> --
> Regards,
> Alvin Bruney
> [ASP.NET MVP http://mvp.support.microsoft.com/de...]
> Got tidbits? Get it here... http://tinyurl...
> "Julia" <codewizard@012.net.il> wrote in message
> news:ehVZ$MnkEHA.3372@TK2MSFTNGP09.phx.gbl...
> >
> > 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 an 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 it
> > using 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 you point me to some articels or examples which describe a similar
> > problem?
> >
> >
> > The overall architecture is something similar to Exchange server/OWA i
> > guess.
> >
> >
> > Thanks.
> >
> >
> >
> >
> >
> >
>
>


Alvin Bruney

9/8/2004 8:34:00 PM

0

> Why? can't i call remoting object from an ASP.NET page?
sure you can. the remoting route is a viable alternative as well. I've
already listed the reason for my recommendations.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/de...]
Got tidbits? Get it here... http://tinyurl...
"Julia" <codewizard@012.net.il> wrote in message
news:u0sOdgclEHA.2820@TK2MSFTNGP15.phx.gbl...
> Why? can't i call remoting object from an ASP.NET page?
> The WebApp client will access the object only though a server side code.
>
> Thanks.
>
>
> "Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
> news:OH4TXOQlEHA.2680@TK2MSFTNGP15.phx.gbl...
>> Are you that desperate that you need to post this message to this many
>> newsgroups?
>>
>> Have a look at webservices, this ideally what you need to implement. I
> would
>> recommend it over a remoting interface since you have no control over the
>> web app client which makes remoting less ideal for your situation.
>>
>> --
>> Regards,
>> Alvin Bruney
>> [ASP.NET MVP http://mvp.support.microsoft.com/de...]
>> Got tidbits? Get it here... http://tinyurl...
>> "Julia" <codewizard@012.net.il> wrote in message
>> news:ehVZ$MnkEHA.3372@TK2MSFTNGP09.phx.gbl...
>> >
>> > 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 an 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 it
>> > using 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 you point me to some articels or examples which describe a
>> > similar
>> > problem?
>> >
>> >
>> > The overall architecture is something similar to Exchange server/OWA i
>> > guess.
>> >
>> >
>> > Thanks.
>> >
>> >
>> >
>> >
>> >
>> >
>>
>>
>
>