471,348 Members | 1,304 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Usage of Remote Proxy Pattern

Hi NG !
I have the following situation:
I have a database on a server in my network and few client-computers on
which my software runs. My software must connect the database on the network
and makes readable requests on it. To be open for extensions (one day the
lib must support writeable request to the database) i thought of using the
Remote Proxy Pattern.

But I'm new in .NEt programming. I have read, that it would be possible to
write the specific location of a DLL (Assembly) in the configuration file.
If that's right and can I store my Db-AccessLib on the Server (same server
like my DB) and note this location in the configuration file of my software
to solve the problem of the access to a common used ressource ?

In my oppinion the Remote Proxy Pattern sound as the right solution, but I
would like to be sure.
Thanks

Marcel Hug

Feb 15 '06 #1
1 3819
What do u want to hide with Proxy pattern (what do u mean by "Remote" BTW?) ?
Everything you need it is to create necessary instance of your Db-AccessLib.
"facade" patterns were designed for this. If you are working in distributed
environment look at InversionOfControl pattern and Dependency Injections -
I've posted note about using it in my blog here
http://spaces.msn.com/laflour/blog/cns!7575E2FFC19135B4!297.entry?_c11_blogpart_blogp art=blogview&_c=blogpart#permalink
I have a database on a server in my network and few client-computers on
which my software runs. My software must connect the database on the network
and makes readable requests on it. To be open for extensions (one day the
lib must support writeable request to the database) i thought of using the
Remote Proxy Pattern.

But I'm new in .NEt programming. I have read, that it would be possible to
write the specific location of a DLL (Assembly) in the configuration file.
If that's right and can I store my Db-AccessLib on the Server (same server
like my DB) and note this location in the configuration file of my software
to solve the problem of the access to a common used ressource ?

In my oppinion the Remote Proxy Pattern sound as the right solution, but I
would like to be sure.
Thanks


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Feb 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Leszek | last post: by
1 post views Thread by FluffyCat | last post: by
3 posts views Thread by =?Utf-8?B?UmljaGFyZEBub3NwYW0ubm9zcGFt?= | last post: by
20 posts views Thread by =?Utf-8?B?cmtibmFpcg==?= | last post: by
1 post views Thread by Ronak mishra | last post: by

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.