• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2EE project design decision  RSS feed

Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all:
I have 2 question, and I really appreciate any suggestion from experieced developers.
1- If I have a certain set of information in the database, which I need it almost in every page I display (for example: a list of the functions available to a certain user) is it adeqaute to bring all this data and store it in the serverlet context object, so that it will be availabel to all other servlets? If I use this approch, if the information in the database changed, how can I change it in the application servlet context without rebooting the server? Note: consider a clustered application server.
2- If the first approche is not adequate, how can I approche the this problem? How can I make infomation available to every page and servlet without quering the database every time a user request a page?
Not: The size of information is large, and it is confidinial, so I can't store it in a flat file.
thank you all
[ April 02, 2004: Message edited by: Hanna Habashy ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!