473,405 Members | 2,444 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,405 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 22 '05 #1
3 1354
Hey Tom,

Typically, the shared component in an n-tiered application contains a
skeleton, outlining the methods and properties on the server side. The
implementation is not contained in the shared component; it is only an
interface. The interface allows the client code to recognize the
public methods and properties exposed by your server-side assemblies.
- Boyd

Nov 22 '05 #2
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 22 '05 #3
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 22 '05 #4

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

Similar topics

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: 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?
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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.