I am trying to start and stop a quartz scheduler in a spring singleton bean .But postconstruct is getting called two times and predestroy is not called at all . This link says that because of proxying it natural to be called twice but this is causing exception in the postconstruct method . I only want the postConstruct to be called once after the singleton bean is loaded.
Share
I write a contextloader listener and change web.xml listener .So I can initialize bean only one times.