Announcement Announcement Module
Collapse
No announcement yet.
bean destroy order Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • bean destroy order

    Hi,
    I was wondering if there's any way to define "bean destroy order"; say, to force a DisposableBean to be destroyed after another bean ( or, be the last bean to be destroyed)
    thanks in advance

  • #2
    Beans are destroyed in the reverse order as they are created (at least that is what spring tries to do). So if your bean is the first to be created it should be the last one destroyed.

    Also why is this ordering so important, spring already does a best effort to resolve the order of bean destruction.

    Comment

    Working...
    X