Font Size: a A A

Based On Hibernate And Aop Three-tier Cache Study

Posted on:2009-12-30Degree:MasterType:Thesis
Country:ChinaCandidate:K YangFull Text:PDF
GTID:2208360245961161Subject:Computer applications
Abstract/Summary:PDF Full Text Request
As the information technology develops quickly, the information construction of enterprise draws more and more attention, and it becomes more and more important in the management of enterprise. 3-tired-architecture is very popular among enterprises, and it is based on J2EE. In recent years, oop pattern became the main stream of enterprise development, at the same time, relation database is being used mostly, so, it is very often to develop both with oop and relation dababase. But as the two technologies are based on different theory, there would be conflicts when they cooperate with each other, which would make the 3-tired-architecture hard to maintain and transfer. On the other hand, the performance of 3-tired-architecture became more and more important. Some present 3-tired-architecture would get much longer reponse delay, can not satisfy request of clients and even deny service when they get many concurrent requests. The traditional method of improving the performance of 3-tired-architecture would waste a lot of human, material and financial resources and also prevent the creation of enterprise.Due to the causes above, researched 3-tired-architecture especially the persistence layer is researched in this paper. First, fault of present persistence layer when it operates the database were analyzed. Then hibernate framework based on O/R mapping is introduced, which would present oop mechanism when we deal with relation database and reduce work greatly.Second, as for the performance of persistence layer, the cache mechanism of hibernate was expouded. Hibernate cache lies between application and database, which is often used to reduce the frequency of accessing database, and thus to improve performance. Ehcache was chosen to store data from database in memory and disk, which would reinforce the database resources and make database the bottleneck of 3 tiered layer no longer.Finally, as for the generation pattern of hibernate cache, it would better to put the cache out of persistence layer. Thus the AOP(aspect oriented programming) technology was introduced. With the most popular J2EE light weight framework Spring, AOP improved the generation pattern of hibernate cache, and changed the position of cache in 3 tiered layer , finally improved the performance of 3 tiered layer.
Keywords/Search Tags:3-tired-architecture, Hibernate, Ehcache, AOP
PDF Full Text Request
Related items