473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help on TCP Remoting options:

(Type your message here)

--------------------------------
From: Mural Kumar

Which is the best way to make a remoting
server?

1)As a Windows service
2)As a simple exe, which will run in a system tray.

If there is any link or article, please let me know.

Thank you

Mural

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>sysRNMGC40em7DQ50mPSEw==</Id>
Nov 16 '05 #1
12 1523
Hi, Mural.
Though windows service is a better choice most of the time, it actually
depends on the nature of the service.
The benefit of using a windows service as host is that the service can
use a different user account, with less or greater privilege (more
security); it can have a separate logon session; the service will be up and
running without anyone logon to the machine.
On the other hand, windows service normally can't have any user
interaction (can't access desktop, etc). If a system tray controller is
required, it has to communicate with the service through any IPC.
BTW: You also have the option of hosting a remoting object by ASP.NET.

Hope this helps.
Ming Chen

"Mural Kumar via .NET 247" <an*******@dotnet247.com> wrote in message
news:eh**************@TK2MSFTNGP15.phx.gbl...
(Type your message here)

--------------------------------
From: Mural Kumar

Which is the best way to make a remoting
server?

1)As a Windows service
2)As a simple exe, which will run in a system tray.

If there is any link or article, please let me know.

Thank you

Mural

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>sysRNMGC40em7DQ50mPSEw==</Id>

Nov 16 '05 #2
Mural,

It really depends on what you are trying to do. If the remoted objects
are only going to be interacted with by someone on the same machine, during
a user session, then the second option is better. However, if this is a
service, where people will connect to it regardless of the user session
logged into the service machine, then the first option is better.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mural Kumar via .NET 247" <an*******@dotnet247.com> wrote in message
news:eh**************@TK2MSFTNGP15.phx.gbl...
(Type your message here)

--------------------------------
From: Mural Kumar

Which is the best way to make a remoting
server?

1)As a Windows service
2)As a simple exe, which will run in a system tray.

If there is any link or article, please let me know.

Thank you

Mural

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>sysRNMGC40em7DQ50mPSEw==</Id>

Nov 16 '05 #3
This is really a qustion of whether you only want the applkication to run when someone is logged on to the machine. For peer-2-peer this is perfectly acceptable. However, for a server app you really don't want someone to go have to log on to the machine for the server to be able respond to requests. A service can run without someone logged on, a system tray application cannot.

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<eh**************@TK2MSFTNGP15.phx.gbl>

(Type your message here)

--------------------------------
From: Mural Kumar

Which is the best way to make a remoting
server?

1)As a Windows service
2)As a simple exe, which will run in a system tray.

If there is any link or article, please let me know.

Thank you

Mural

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>sysRNMGC40em7DQ50mPSEw==</Id>

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

[microsoft.public.dotnet.languages.csharp]
Nov 16 '05 #4
Seeing as you are deploying a remoting component into the service, having to communicate via an IPC is not really a problem

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<O4**************@TK2MSFTNGP11.phx.gbl>

Hi, Mural.
Though windows service is a better choice most of the time, it actually
depends on the nature of the service.
The benefit of using a windows service as host is that the service can
use a different user account, with less or greater privilege (more
security); it can have a separate logon session; the service will be up and
running without anyone logon to the machine.
On the other hand, windows service normally can't have any user
interaction (can't access desktop, etc). If a system tray controller is
required, it has to communicate with the service through any IPC.
BTW: You also have the option of hosting a remoting object by ASP.NET.

Hope this helps.
Ming Chen

"Mural Kumar via .NET 247" <an*******@dotnet247.com> wrote in message
news:eh**************@TK2MSFTNGP15.phx.gbl...
(Type your message here)

--------------------------------
From: Mural Kumar

Which is the best way to make a remoting
server?

1)As a Windows service
2)As a simple exe, which will run in a system tray.

If there is any link or article, please let me know.

Thank you

Mural

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>sysRNMGC40em7DQ50mPSEw==</Id>


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

[microsoft.public.dotnet.languages.csharp]
Nov 16 '05 #5

"Richard Blewett [DevelopMentor]" <ri******@develop.com> wrote in message
news:eg**************@TK2MSFTNGP10.phx.gbl...
A service can run without someone logged on, a .....


Richard,

The same goes for a console applications started as a scheduled task.

Willy.

Nov 16 '05 #6
Ah yes, thats true.

Although are you suggesting that a timed console app is a good alternative to a windows service as a remoting host?

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<#V**************@TK2MSFTNGP11.phx.gbl>
"Richard Blewett [DevelopMentor]" <ri******@develop.com> wrote in message
news:eg**************@TK2MSFTNGP10.phx.gbl...
A service can run without someone logged on, a .....


Richard,

The same goes for a console applications started as a scheduled task.

Willy.


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

[microsoft.public.dotnet.languages.csharp]
Nov 16 '05 #7
Yes, you are right. The remoting service can always be controlled with the
remoting interface it provides. But normally you would like the control
interface to be more secure than the service interface. For example, only
start/stop the service from localhost, not remotely.

Best Regards
Ming Chen

"Richard Blewett [DevelopMentor]" <ri******@develop.com> wrote in message
news:uJ****************@TK2MSFTNGP09.phx.gbl...
Seeing as you are deploying a remoting component into the service, having to communicate via an IPC is not really a problem
Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<O4**************@TK2MSFTNGP11.phx.gbl>
Hi, Mural.
Though windows service is a better choice most of the time, it actually
depends on the nature of the service.
The benefit of using a windows service as host is that the service can
use a different user account, with less or greater privilege (more
security); it can have a separate logon session; the service will be up and running without anyone logon to the machine.
On the other hand, windows service normally can't have any user
interaction (can't access desktop, etc). If a system tray controller is
required, it has to communicate with the service through any IPC.
BTW: You also have the option of hosting a remoting object by ASP.NET.

Hope this helps.
Ming Chen

"Mural Kumar via .NET 247" <an*******@dotnet247.com> wrote in message
news:eh**************@TK2MSFTNGP15.phx.gbl...
> (Type your message here)
>
> --------------------------------
> From: Mural Kumar
>
> Which is the best way to make a remoting
> server?
>
> 1)As a Windows service
> 2)As a simple exe, which will run in a system tray.
>
> If there is any link or article, please let me know.
>
> Thank you
>
> Mural
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>sysRNMGC40em7DQ50mPSEw==</Id>


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

[microsoft.public.dotnet.languages.csharp]

Nov 16 '05 #8
For a server, the ability to remotely administer my server is a pretty crucial aspect. But agreed, due to the lack of an inbuilt security infrastructure in remoting, securing the control interface more than the line-of-business one would not be straightforward.

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<uvbmYK Ao********@TK2MSFTNGP11.phx.gbl>

Yes, you are right. The remoting service can always be controlled with the
remoting interface it provides. But normally you would like the control
interface to be more secure than the service interface. For example, only
start/stop the service from localhost, not remotely.

Best Regards
Ming Chen

"Richard Blewett [DevelopMentor]" <ri******@develop.com> wrote in message
news:uJ****************@TK2MSFTNGP09.phx.gbl...
Seeing as you are deploying a remoting component into the service, having to communicate via an IPC is not really a problem
Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<O4**************@TK2MSFTNGP11.phx.gbl>
Hi, Mural.
Though windows service is a better choice most of the time, it actually
depends on the nature of the service.
The benefit of using a windows service as host is that the service can
use a different user account, with less or greater privilege (more
security); it can have a separate logon session; the service will be up and running without anyone logon to the machine.
On the other hand, windows service normally can't have any user
interaction (can't access desktop, etc). If a system tray controller is
required, it has to communicate with the service through any IPC.
BTW: You also have the option of hosting a remoting object by ASP.NET.

Hope this helps.
Ming Chen

"Mural Kumar via .NET 247" <an*******@dotnet247.com> wrote in message
news:eh**************@TK2MSFTNGP15.phx.gbl...
(Type your message here)

--------------------------------
From: Mural Kumar

Which is the best way to make a remoting
server?

1)As a Windows service
2)As a simple exe, which will run in a system tray.

If there is any link or article, please let me know.

Thank you

Mural

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>sysRNMGC40em7DQ50mPSEw==</Id>


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

[microsoft.public.dotnet.languages.csharp]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

[microsoft.public.dotnet.languages.csharp]
Nov 16 '05 #9
In my opinion Yes, I find in general that Windows Services are way overused.
Scheduled tasks can offer a good alternative for services, especially for
simple tasks like remoting hosts.
After all they share most of the "features" like:
- Run in a configurable security context (user)
- No UI (sandboxed desktop/winstation) when run in the LocalSystem context.
- Can easily be controlled just like services (started , stopped, queried,
changed...)
But also offers some advantages not found when implemented as a Service:
- Less complex to implement, you don't have to consider specific SCM
requirements like OnStart/OnStart time-out's . The FCL hides most of the
complexities of the SCM interaction protocol, but many inexperienced
developers do have issues with it, just because so many things are hidden
,but he! they still are there under the covers (very often the cause of
services failing to start or stop).
- And they can be scheduled to run at boot time, logon time, system idle
time or at specific date/time, which is less flexible when running as a
service.

Willy.

"Richard Blewett [DevelopMentor]" <ri******@develop.com> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
Ah yes, thats true.

Although are you suggesting that a timed console app is a good alternative
to a windows service as a remoting host?

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<#V**************@TK2MSFTNGP11.phx.gbl>
"Richard Blewett [DevelopMentor]" <ri******@develop.com> wrote in message
news:eg**************@TK2MSFTNGP10.phx.gbl...
A service can run without someone logged on, a .....


Richard,

The same goes for a console applications started as a scheduled task.

Willy.


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

[microsoft.public.dotnet.languages.csharp]

Nov 16 '05 #10
Between the two, a normal exe is a better option.

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #11
Well I disagree. The ability to have the process run unattended *and* have a control interafce familiar to all machine admins is a big plus - even if the code is slightly more complex. As already stated the complexities of service programming have been buried in the framework for the most part.

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<eA*************@tk2msftngp13.phx.gbl>

Between the two, a normal exe is a better option.

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

[microsoft.public.dotnet.languages.csharp]
Nov 16 '05 #12
The complexities of Service development may be buried within the .Net
framework but the access to some of the OS' resources for the Windows
Service does cause a concern for them to be used in Remoting.
Permissions, account under which the Service runs etc.

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dennis Owens | last post by:
I want to develop a Client/Server messaging system that does not require Microsoft messaging. I want to use the .Net remoting, but I am having some real problems with the remoting. The remoting...
0
by: Dennis Owens | last post by:
Read below for previous conversation. We are developing an application that will some day run on anything from a computer down to a PDA (this is were the Lightweight comes in). The messaging...
0
by: MLH | last post by:
Why does A97 sometimes let me copy Help text (Options, Copy) or (hilite, rite click, Copy) and sometimes not? I find it quite disconcerting. Could this be a hardware problem for me rather than an...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
3
by: Julia | last post by:
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...
0
by: Mat | last post by:
i create a remote server which i want to use like windows servers. -On start i put the following code: Protected Overrides Sub OnStart(ByVal args() As String) Dim filename As String =...
1
by: Alexandre (www.pointnetsolutions.com) | last post by:
I am looking at building a distributed system, and i have been looking at many different options, in some cases i was thinking of a client server relation where a client would send a string to...
8
by: Matt Kruse | last post by:
Using the latest version of Opera 8.5, this test case: -------------------------------------------------------- <select name="sel" multiple="true" size="3"> <option value="option1"...
1
by: nelsonbrodyk | last post by:
Hey All, I currently have C# clients, and I want them to talk to a Java server side running on Glassfish application server. I am wondering if anyone has some options outside of webservices, as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.