简体   繁体   中英

Java EE application database architecture

I'm developing java EE database application(JSF) where I fill drop down menus from database. I looked for some tutorials and I find that they used the session bean to initialize these drop down values from database (using hibernate).As my application contains a lot of these is this a good strategy to fill values from database?

Is there any other approach to implement this? Is using backing bean for filling drop downs a good Idea?

Thanks all

Feras

I'd just load it in the constructor of an application scoped bean and use it to fill the dropdowns.

I would maybe add a background task to reload the data in the bean at certain intervals, eg daily, depending on how often the data will be updated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM