Announcement Announcement Module
No announcement yet.
Serializable application context Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Serializable application context

    I'm implementing a session-scoped application context which uses the application-scoped container as its parent, and I've run into issues around serialization. I'd really rather not re-implement all of the methods in the ApplicationContext interface, so I was wondering if there are any implementations around that are serializable (and who's beanfactory is also serializable).

    Also, is there a way to tell a container to re-initialize all of the depenedencies for the beans contained within? If the session is serialized out to disk or across a wire to another server, the session-scoped components need to be re-wired to the correct application-scoped components (which will have been lost as they should be transient).

    Any pointers would be greatly appreciated.