I wonder if Spring AOP can advise on afterPropertiesSet method, which is from InitializingBean interface.
I tried to put a db reading logic in this method so as that the data only be read once at very beginning. But error occurs (hibernate session is closed) when afterPropertiesSet is invoked. In my application, AOP advised on all method within service tier with transactions which with the same edge as session. The seeion is closed error means no transaction wrapped on afterPropertiesSet method. I move the logic into other normal method, it works properly. Anyone has any clue of it? Thanks