Skip to content

Creating a ConversationListener interface so conversation begin and end can be monitored [SWF-154] #130

@spring-operator

Description

@spring-operator

Martin van Dijken opened SWF-154 and commented

We'd like to have a way of attaching a ConversationListener to our web flow configuration. The problem we'd like to fix is that when a user logs on in our system, the user record in the database is functionally locked. We have no means by which we can unlock the user when he is done.

I've been mulling this over with a colleague a little and we're halfway on a solution but are running into some problems:

The obvious way of solving this would be to use a J2EE SessionListener. Unfortunately our debugging has shown that we can't access any webflow objects from the HttpSession object nor directly from the ServletContext. What we can get to is a Spring WebApplicationContext object. From that we can get to the flowExecutor and many other objects, but we can't yet figure out how to get to the conversation this session resolves to. Any thoughts?

The second problem is how to architect this. I'll dive into this a little deeper and throw up some suggestions. It should at least look like the way the flowExecutionListeners work.


Affects: 1.0.4

Issue Links:

1 votes, 3 watchers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions