Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update serialization related FAQ entry.

...

Is the implementation currently Serializable, meaning that can an SCXMLExecutor be serialized, passed across a wire, be deserialized, and then continue processing events where it left off? If so, are there any limitations around listeners?

No, as of for the Commons SCXML 0.5 release, this cannot be done.

However, this is clearly a desired feature, particularly in clustered server-side environments for failover etc., and may be considered down the road. If anyone has ideas and would like to help with this, please post to the commons-dev list or open an enhancement request in JIRA and comment there (see Commons SCXML website for mailing list and JIRA information). As a side note, this will require a change in major versionhas been implemented in trunk, so with the next release of Commons SCXML the SCXMLExecutor instances will be Serializable. Listeners and other associated user-supplied bits are expected to be Serializable.