In my JSF application @PostConstruct mentioned in initApplication() method and @PreDestroy is used to close all database connections
I gave more than 2 users to login same time. When any one Logged out session is invalidated by @PreDestroy. So other users also can not get connection.
I want to call @PreDestroy only when my Application scope terminated, not for session invalidation.
How can i do it?