I am just joining the EJB community and have been looking for the appropriate pattern w/out luck.
Here is the problem:
I have content stored in a relational database that will be updated constantly by another application.
I need to provide this content in the form of XML to large number of simulaneous clients at once (read-only). (I figured processing the list once from the database and building the DOM and XML, then pushing it out to the clients would be most efficient using EJBeans)
So, I have routines that will check the database for updates and update the DOM. But, how do I manage the bean to consistently look for updates?
USE: Entity Bean
implement ejbCreate to build object
implement ejbLoad to look for updates???
don't implemnt ejbStore, ejbPassivate, ejbActivate (unnecessary)