473,325 Members | 2,774 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,325 software developers and data experts.

.net remoting question

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

Jul 7 '06 #1
2 944
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:
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
Jul 7 '06 #2


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]

"hharry" <pa*********@nyc.comschreef in bericht
news:11**********************@b28g2000cwb.googlegr oups.com...
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

Jul 9 '06 #3

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

Similar topics

0
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to...
0
by: Dennis Owens | last post by:
Read below for previous conversation. We are developing an application that will some day run on anything from a computer down to a PDA (this is were the Lightweight comes in). The messaging...
15
by: anders | last post by:
Hi! I have a config file that looks like this: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <wellknown mode="SingleCall"...
5
by: DraguVaso | last post by:
Hi, I need to write a VB.NET-application (Windows Forms) that may have a part of it (re-)implemented as a Webpage for the customers. I think it can be usefull to create a business Layer with...
10
by: Michael Culley | last post by:
In vb6 it was possible to create an exe as an activeX exe and communicate between 2 apps. Now we have remoting which requires opening a tcp port to listen on, which seems kinda crappy cause another...
6
by: Uttam | last post by:
Hello, We are at a very crucial decision making stage to select between .Net and Java. Our requirement is to download a class at runtime on the client computer and execute it using remoting or...
3
by: Lucas Tam | last post by:
Does anyone have a good articles that describes the pros and cons of Web Services vs. Remoting Hosted in IIS? Is there a reason to use either or? With Remoting Hosting in IIS, is it possible...
9
by: Nak | last post by:
Hi there, I have been messing around with remoting in an attempt to create a "shared application" as mentioned in another thread by that name. I have created a singleton object just like the...
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...
2
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton /...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.