473,799 Members | 3,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1376
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********@opt ushome.com.au> wrote in message
news:41******** *************** @news.optusnet. com.au...
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
2298
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
230
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
1697
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 some software (currently it's essentially a single tier app - a giant meat ball - we're turning it into an n-tier architecture; gotta love ex-employees). One of the things we're looking at doing is using Remoting from the client to an appserver...
6
2087
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 clients that connect to a main server. The client application sets the state of several switchs (on/off by means of clicking a button). When a switch is turned on/off, its state is updated on the server, which will then raise an event to update...
0
1037
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 SingleCall objects. The application consists out of the following: - Shared assembly This contains serializable classes that are shared between the server and client applications. This also includes interfaces for the server classes. -...
0
9538
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10470
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9067
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.