Usage of Remote Proxy Pattern

M

Marcel Hug

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
 
G

Guest

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/...gpart_blogpart=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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top