.net remoting question

H

hharry

hello all,

when using .net remoting, is there a way to preserve objects in memory
?

example scenario: zipcode/state lookup - for a given zipcode, return
the state.

i have a class library which contains one class with two functions
- load a hashtable of zip to state values
- for a given zip, lookup the value in the hashtable and return the
state value

the hashtable values are loaded from a sql database table

i have a console application which exposes the class library to
remoting clients

is there a way to preserve the hashtable contents between calls ?

thanks in advance
 
T

tommaso.gastaldi

hi hharry, I assume one could do something like serializing. But then,
how would you deal with simultaneous requests?

What about the object is requested while being modified by another
user?

Or perhaps you mean that the object must maintain its status for each
different client?

-tom

hharry ha scritto:
 
M

Michel Posseth [MCP]

Well you can do 2 things


1. use a db or serialize a dataset to disk to preserve data

2. Create a remoting singleton object


regards

Michel Posseth [MCP]
 

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