Results 1 to 3 of 3

Thread: Storing flow (scoped variable) state in memory

  1. #1
    Join Date
    May 2007
    Posts
    157

    Question Storing flow (scoped variable) state in memory

    Hello Spring community,

    I need to manipulate a large object tree in a flow/wizard. It's a system management webapp and this particular flow is constrained to single user only. With flow serialized on every transition, and if I understand well also into the session, this flow/wizard is painfully slow.

    Maybe enabling state compression would help a bit, but I couldn't find a way to enable it.

    Is there a way to avoid serialization of given flow scoped variable and just have variable stored in memory but still in flow scope?

    If there is no such support bundled, what would be recommended way to approach enhancing Spring Webflow to enable this feature for a flow, build custom FlowExecutionRepository, custom FlowExecutionListener suffice, or something else?

    Kind regards,
    Stevo Slavić.
    Stevo Slavic

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,806

    Default

    Is there a way to avoid serialization of given flow scoped variable and just have variable stored in memory but still in flow scope?
    I think not, if my memory doesnt fail me, an object must implement "serializable" to be persisted within the "flow" session control

    How big is your object?
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  3. #3
    Join Date
    May 2007
    Posts
    157

    Default

    It's a result of reading in ~100MB of text files.
    Stevo Slavic

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •