Hi
My current project architecture has Struts in Presentation layer, Stateless session beans in business layer and Hibernate/DAO in data layer. The database is Oracle 9i. I am experiencing performance issues for search pages which return large object trees. I bet it is happending due to large data being serialized/unserialized from
1. Database server to application server's data layer
2. from Data/Business layer to presentation layer
I have couple of options:
1. Use projection queries so that the amount of data being fetched and hence transferred among layers is minimal.
2. Instead of using stateless session beans use plain Java objects so one round of serialization/unserialization is saved (ofcourse with huge price of making application non-distributed).
3. Use pagination so limited data objects are fetched per transaction.
I am ok with option 1 and 3, but is there anyone from Hibernate Team and users think option #2 is good ?
This also brings interesting question about any project using Hibernate. Is Hibernate designed to complement session beans ? It is a replacement for entity beans, I agree.
Thanks in advance.
Ron
|