posted 12 years ago
Hello,
I would like to add VLH in my design, and thinking of the best way to implement it I ran into following question. If my application already needs a stateful session bean for other purpose, and I need two vlh, is it a decent ideea, from performance and loading point of view to have 3 stateful session beans, in the situation in which for two of them I estimate that the client would hold on them for hours?
And even more, is it ok, if over the above described design I add a Singleton Session Bean that would cache some list to be called by the the Stateful Session Beans that would handle the VLH?
Also, if I want to persist data that one of the Session Beans holds, at the time it expires, is it a good practice to persist it in PreDestroy method?