473,408 Members | 1,841 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,408 software developers and data experts.

remoting general

Tom
Hi friends

I am new to remoting so this may sound silly. I don't understand remoting, I
think its suppose to be client / server but why is it that you always need
to attach somesort of service.dll to both the client and the server ? so
what I don't understand is how can I implement server logic on client calls
if the dll must be attached to both the client and the server ? say if I
want to perform some sql queries on the server and I embed this logic in the
service.dll but then this dll must also be attached as a library for the
client. the problem is when you distribute this application on a client site
there'll be no sql db.. how can I resolve this ?

Thanks
Tom
Nov 16 '05 #1
2 986
Remoting is for when you want to execute code, but execute it on another
('remote') machine.
why is it that you always need
to attach somesort of service.dll to both the client and the server ?
The client has to have knowledge of the class because it has to know how to
call it, and the server obviously has to have knowledge of it in order to
know how to execute it. (If it is a large volume of code, then you may be
able to use an interface, the client just having the interface and the server
has the interface and a class derived from it, but I've never tried that).
The client's calling the methods, and the results are returned to the
client. But the code's actually running on the server, and any information
will be relative to the server machine's frame of reference - e.g. say if you
retrieve information about the file system, it will be the file system of the
server. And it will use the server's processor.

However it is probably not the best idea to use remoting just in order to
execute queries on a SQL server - SQL server runs its own service in order to
handle these.
"Tom" wrote:
Hi friends

I am new to remoting so this may sound silly. I don't understand remoting, I
think its suppose to be client / server but why is it that you always need
to attach somesort of service.dll to both the client and the server ? so
what I don't understand is how can I implement server logic on client calls
if the dll must be attached to both the client and the server ? say if I
want to perform some sql queries on the server and I embed this logic in the
service.dll but then this dll must also be attached as a library for the
client. the problem is when you distribute this application on a client site
there'll be no sql db.. how can I resolve this ?

Thanks
Tom

Nov 16 '05 #2
Hi Tom,

For you, I'm going to strongly recommend that you pick up a copy of
"Advanced .NET Remoting" by Ingo Rammer.
http://www.amazon.com/exec/obidos/AS...692560-9975161

This will do an excellent job of explaining why you need THREE sets of
classes. One set for the client, one for the server, and one set of
interfaces. The interface classes are shared, and allow the definition of
the calling parameters for remoting to work. (This really is a good book,
BTW.)

If you want to set up a server-side operation, web services may be easier.
You create the web service and you can test the server easily. Then you do
your client development to consume it. For me, it is simpler to develop. It
is also harder to secure, and SOAP can be a little slower than binary
remoting.

Good Luck,
--- Nick

"Tom" <to********@optushome.com.au> wrote in message
news:41***********************@news.optusnet.com.a u...
Hi friends

I am new to remoting so this may sound silly. I don't understand remoting, I think its suppose to be client / server but why is it that you always need
to attach somesort of service.dll to both the client and the server ? so
what I don't understand is how can I implement server logic on client calls if the dll must be attached to both the client and the server ? say if I
want to perform some sql queries on the server and I embed this logic in the service.dll but then this dll must also be attached as a library for the
client. the problem is when you distribute this application on a client site there'll be no sql db.. how can I resolve this ?

Thanks
Tom

Nov 16 '05 #3

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

Similar topics

1
by: Dave | last post by:
An test application uses remoting to call a component on a different machine. The client app has 2 buttons. The first calls the component using http/soap and it is remarkably fast. The second...
1
by: Dave | last post by:
I know that Remoting requires a host application on the server. Is it possible to use COM+ as the host? If so, where can a good example be found?
1
by: f00sion | last post by:
I found a good tutorial of how to supply the objects without having the implementation files on the client. This was working great until I realized that I couldnt use any constructors with server...
3
by: Tom | last post by:
Hi friends I am new to remoting so this may sound silly. I don't understand remoting, I think its suppose to be client / server but why is it that you always need to attach somesort of...
0
by: Albert Greinöcker | last post by:
Hi there, I have a very general question about .NET remoting using SOAP: is there any way to influence WSDL generation (like setting a different target-namespace, or which classes (e.g. custom...
8
by: sandy82 | last post by:
I coded a simple example in c# In which their is a client and a server using a dll . I am confused on the Point that u have to use the .dll on both sides .Cant we have a solution of having a dll...
2
by: Ryan | last post by:
My apologies if this is not the forum to post questions regarding .NET Remoting, but I figured WebServices would be the most appropriate forum of the bunch. We're currently completely re-arching...
6
by: Palvinder Singh | last post by:
Hello google group peeps, I am new to remoting, but have a grasp of it. I am trying to create a server/client application, which will be deployed over an intranet. I have upwards of five...
4
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
What are the factors that I should consider in choosing .NET Remoting vs Web Services when an application will be deveoped using .net 2.0 and above? I think I need to consider at least the...
0
by: William | last post by:
Hi I'm busy developing a .NET remoting application. Tcp remoting with a binary formatter is used. The user can specify on the client configuration whether to connect to the hosted Singleton or...
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.