While consulting at one of our clients, I was asked to configure a Spring environment serving a Flex application with multiple Session Factories needed for accessing the old and new generations of the application (due to a heavy migration process). In order to work with more than one session factories in our application contex, some modifications were needed: