dcsimg
Accessing data through seperate application, via session bean or directly ? Design issue.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ashish_Sinha
Posted On:   Saturday, July 6, 2002 05:17 PM

We are making a Web Based J2EE App having a scheduler, which runs as a seperate application. It normally sleeps, wait every 10 minutes and invokes a database read intensive method , to be specific, examines all the defined rules. Once it finds the successful rules, it takes appropriate action by invoking a SessionBean method. Given a frequency of 10 minutes and lot of database read / computation, less of database update , how should the rule verification ( intensive read and calculation ) be done ? Should it be routed using a session bean for data consistency or bypassing the session bean to preserve server resources for web - client service.    More>>

We are making a Web Based J2EE App having a scheduler, which runs as a seperate application. It normally sleeps, wait every 10 minutes and invokes a database read intensive method , to be specific, examines all the defined rules. Once it finds the successful rules, it takes appropriate action by invoking a SessionBean method.




Given a frequency of 10 minutes and lot of database read / computation, less of database update , how should the rule verification ( intensive read and calculation ) be done ?


Should it be routed using a session bean for data consistency or bypassing the session bean to preserve server resources for web - client service.

   <<Less

Re: Accessing data through seperate application, via session bean or directly ? Design issue.

Posted By:   AlessandroA_Garbagnati  
Posted On:   Tuesday, July 9, 2002 07:34 AM

Hi,

Maybe you can read the Session Facade Pattern chapter of the EJB Design Patterns book.

Re: Accessing data through seperate application, via session bean or directly ? Design issue.

Posted By:   Lasse_Koskela  
Posted On:   Tuesday, July 9, 2002 01:55 AM

I would suggest using the SessionBean because the performance hit is negligent (once every 10 minutes), but the architecture would become more flexible.
About | Sitemap | Contact