Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 29912 invoked from network); 28 Apr 2009 18:12:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Apr 2009 18:12:19 -0000 Received: (qmail 65003 invoked by uid 500); 28 Apr 2009 18:12:18 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 64895 invoked by uid 500); 28 Apr 2009 18:12:17 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 64885 invoked by uid 99); 28 Apr 2009 18:12:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 18:12:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 18:12:10 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LyrmX-0007LO-4g for user@commons.apache.org; Tue, 28 Apr 2009 11:11:49 -0700 Message-ID: <23283182.post@talk.nabble.com> Date: Tue, 28 Apr 2009 11:11:49 -0700 (PDT) From: TonyTheFish To: user@commons.apache.org Subject: [SCXML] Saving and restoring execution state. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tonyg@gamesys.co.uk X-Virus-Checked: Checked by ClamAV on apache.org I am considering using SCXML in a high throughput environment where I have many thousands of state chart instances - naturally this means that the instances have to be pooled which means that there has to be a way of very quickly saving a restoring state to an executor. I see that I can serialise an SCXMLExecutor instance - but that would be too heavyweight for this kind on environment. There is a getCurrentStatus() but apparently no setCurrentStatus(). Also the Context object seems to have a variety of system defined objects in it - it's not immediately clear which if any of them I would need. What I was hoping I could do was something like: executor.setState("node one"); executor.setContextVars(myVariableMap); But that doesn'te seem to be possible. Has anyone tried using SCXML in the sort of environment I am describing? How would you go about it? -- View this message in context: http://www.nabble.com/-SCXML--Saving-and-restoring-execution-state.-tp23283182p23283182.html Sent from the Commons - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org