Review of the J2EE Blueprint 1
2005-05-19 21:57
441 查看
When to use Servlets verses JavaServer Pages?
Where to store client session state: client-tier, web-tier or EJB tier?
Access Data Base Resources via EJB or directly from JSP JavaBean ?
Do it primarily from the EJB tier. But use JaveBean when 1. Access to the data is read-only and non-transactional. 2. The application can tolerate stale data. 3. High performance is more important than consistant, reliable transaction.
When to use EJB components?
When to use Session Beans and when to use Entity Beans?
Entity Beans are usually used to model business concepts, the abstractions of real entities expressed as nouns. They are the object views of the business data; it also supports shared access from multiple users. So we use Entity Bean when we need 1. represent persistent data. 2. shared concurrent access to update data. 3. provide robust long-lived data management.
Where to store client session state: client-tier, web-tier or EJB tier?
Access Data Base Resources via EJB or directly from JSP JavaBean ?
Do it primarily from the EJB tier. But use JaveBean when 1. Access to the data is read-only and non-transactional. 2. The application can tolerate stale data. 3. High performance is more important than consistant, reliable transaction.
When to use EJB components?
When to use Session Beans and when to use Entity Beans?
Entity Beans are usually used to model business concepts, the abstractions of real entities expressed as nouns. They are the object views of the business data; it also supports shared access from multiple users. So we use Entity Bean when we need 1. represent persistent data. 2. shared concurrent access to update data. 3. provide robust long-lived data management.
相关文章推荐
- Review of the J2EE Blueprint 2
- Book Review of "The Practice of Programming" (Ⅰ)
- Under the Hood of J2EE Clustering
- An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more informat
- Review of Debugging the development process 6. Constant, Unceasing Improvement
- Book Review of Dynamics of Software Development--Get their heads into the game
- Northwind Starter Kit Review: Data Access and the essence of needless work, Part II
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决办法。
- App Store审核被拒:App Store Review Guideline 2.5.2 and section 3.3.2 of the Apple Developer Program
- What is the content of J2EE EAR, WAR and JAR files?
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决
- Getting a statistics education: Review of the MSc in Statistics (Sheffield)
- A review of the CVS SCC PLUGIN
- Book Review of Dynamics of Software Development--Remember the triangle:features, resources, times
- Under the Hood of J2EE Clustering
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决办法。
- Find out with my performance review of the nike pg 1
- what is new - .NET 4.5: review of the ThreadLocal
- 旧文:Under the Hood of J2EE Clustering