Hi Niels, You're definitly on the right track - the FlowControllerFactory sounds like the right place to do the injection when a page flow is created.
I'm not aware of any hooks in the framework you could use to re-inject after serialization maybe someone on this list with a bit more knowledge of page flows could confirm that. Assuming there isn't - implementing your own HttpSessionActivationListener sounds like the way to go. Once you have a solution, it would be great if you could describe your approach on this list, I have seen a number of posts from Beehive users interested in being able to use dependency injection. - Chad On 2/7/07, Niels Harremoes <[EMAIL PROTECTED]> wrote:
Hi everyone! We are using netui, but without beehive controllers. We would like to spring inject resources into our pageflow controllers, and I were thinking of extending the FlowControllerFactory to do this. Have anybody done this previously? I assume I need to override most/all methods to call super implementations, and then spring inject any properties, probably using the AutowireCapableBeanFactory.configureBean method. However, this doesn't seem to cover the case where the PageFlow has been serialized during session replication. My injected resources will most likely be transient, since e.g. datasources doesn't really serialize well. But how/where should I re-inject them? Should I implement my own HttpSessionActivationListener, or is there already a place in the framework for this?? Any advice would be appreciated. -- View this message in context: http://www.nabble.com/Integrating-netui-with-spring-using-FlowControllerFactory-tf3185579.html#a8841548 Sent from the Beehive - User mailing list archive at Nabble.com.
