i want able display news on login page. (e.g. downtime caused server maintenance etc.)
the news loaded db. however, because news change rarely, should cached , not loaded everytime application loaded.
here stucked: how can cache news ? in addition, want load news every 10 min db,else cache. possible?
or maybe recommand me better soultion.
many in advance.
leostiw
if want store data across pages can use @sessionscoped bean hold data purpose.
can use cookies store data between multiple sessions.
far requesting db every 10 minutes concerned..,
1 send ajax call every 10 minutes, instead can use priemface's prime push technology[link].
build based on reverse ajax technology reverse ajax call sent update jsf component managed bean when data updated.
can use data base triggers along that.
edit: luiggi mendoza suggested in following comments using @applicationscope fix issue.
Comments
Post a Comment