Re: Workaround with Remoting in CF

From: Diego F. (diegofr_at_NOterra.es)
Date: 05/05/04


Date: Wed, 5 May 2004 13:08:45 +0200

I'm still having problems. In my dll I declare static the hash table and
even the methods to store and retreive the objects from the table, but when
I follow the execution, when my web service calls the method, the table is
empty :-(

Regards,

Diego F.

"casey chesnut" <casey@braSPAMins-N-braSPAMwn.com> escribió en el mensaje
news:O$0mt4eMEHA.2488@TK2MSFTNGP10.phx.gbl...
> web services are typically stateless,
> but you can certainly make one stateful.
>
> if you just want to keep a Hashtable around between requests,
> then make it static:
> static Hashtable ht = new Hashtable();
> else you can store it in the Application Cache.
> as long as the WS app does not restart,
> then your Hashtable will remain in memory.
>
> alot more complicated, but if you want remoting over WS,
> then you would want to tweak this:
> http://www.codeproject.com/cs/webservices/remotingoverinternet.asp
>
> casey
> http://www.brains-N-brawn.com
>
>
> "Diego F." <diegofr@NOterra.es> wrote in message
> news:OPTlZ3cMEHA.624@TK2MSFTNGP11.phx.gbl...
> >I know that CF doesn't support .NET Remoting but, does Web Services
support
> > that?
> >
> > I need a hash table in memory and clients accesing to it. In Windows
Forms
> > it can be solved with remoting and singleton mode, but my clients are
> > Pocket
> > PCs. The problem with WS is that I can't have the table in memory. Could
I
> > have a kind of service (Windows forms), the web service and the mobile
> > clients? The idea is that the clients send objects to the WS and it
sends
> > them to the service via remoting. Is that possible?
> >
> > If not, how could I have a table in memory?
> >
> > Regards,
> >
> > Diego F.
> >
> >
>
>



Relevant Pages

  • Re: Parsing Large Files
    ... This gives me the hash %id which is keyed by ... Since you want to have the Y and X, store ... It is easier to sort in memory than ... to sort files from perl. ...
    (comp.lang.perl.misc)
  • Re: Memory-mapped persistent hash?
    ... Marshal.dump of your object, stores the object into the mmap, and then ... that memory location is stored in the Hash instead of the object. ... Except that the backing store is the system swap ...
    (comp.lang.ruby)
  • Re: Pring array into a text file
    ... how could yOu read them from file.txt and store in memory again? ... is there a binary format for hash? ...
    (comp.lang.perl)
  • Re: Encrypting passwords stored in memory
    ... > store only password's hash values in memory. ... So, you don't have plain ... You still have to collect the password initially and hash it. ...
    (sci.crypt)
  • Re: hash table size
    ... talking about chess programming ideas and what they do rather than actually ... you can clear out the memory. ... Just a couple cycles per hash check. ... The amount of physical memory each user gets is likely to be somewhat ...
    (rec.games.chess.computer)