Re: having standalone threads managed by netplex
Jake Donham <[email protected]> Thu, 5 Feb 2009 10:28:53 -0800
| Newsgroups | gmane.comp.lang.ocaml.lib.net.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Feb 5, 2009 at 7:48 AM, Anil Madhavapeddy <[email protected]> wrote: > Thanks, this mostly worked great! Defining a receive_message hook gives the > very useful ability to dump out information using netplex-admin. I forgot to say that for something like a session service, you might find orpc useful, since you would be communicating OCaml to OCaml, and it's nice to be give an OCaml signature instead of the ONC RPC interface language: http://code.google.com/p/orpc2 > Oddly though, although I can call shutdown on the service, I can't seem to > find a way to get it to restart the thread (post_start_hook is never called > again, so it shuts down and stays down). I'm guessing I need to mess around > with the workload manager to prod it into making sure one service thread is > always up. Strange, I cannot reproduce this (on Fedora 7). Are you using netplex-admin -restart? Also, if you kill a service (and probably if you exit it as well, although I have not tried this), the controller will restart it for you. Jake ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com