Login

mvnForum

mvnForum Homepage Welcome Guest
  Search  
  Index  | Recent Threads  | Unanswered Threads  | List Polls  | Public Albums  | Who's Online  | Help


Quick Go »


No member browsing this thread
Thread Status: Active
Total posts in this thread: 7
Post new Thread
Author
Previous Thread This topic has been viewed 3070 times and has 6 replies Next Thread
Male magician
Newbie
Member's Avatar

China
Joined: Jul 8, 2003
Post Count: 29
Status: Offline
Reply to this Post  Reply with Quote 
cool share the experience with Hibernate and Struts

Hibernate is a very good o/r mapping tools

i don't wanna talk about the normal way to use it

but i have some difficult when i using it:

1、optimize the RDB

Hibernate can export the schema of DB , can create your DB on runtime

BUT , how about indexes you need? how about views you need?

as i do , i stiil need write some sql for native db especial for high performance , sigh!

2、Cache

Hibernate has it's cache .

AWAK , B/S application has at lease two tier : views and business

Hibernate Cache can quick your business model , BUT how about Web Tier ? OSCache ? yes it's good. but there is another problem : Synchronization!

How to synchronize the web data and business data is the Core problem.

maybe MNVFORUM can avoid this problem because it has it's cache system by self wink

3、Transaction

DAO architecture is good , at lease in my application (also a Forum wink ).

BUT DAO make the transaction process hardly.

which level i should put the Session ? views ? control ? business ? DAO ? i choose DAO , but business was absolute seperated from the DAO , so i can't transimit the transaction from one to another

maybe you can choose another model , such as let session run throught your reqest from begin to the end , that is : Filter.

but in my opion , that will confuse your tiers , even you will do hardly work when your change the layout.

and then let's talk about Struts

i use struts for a long time , since 1.0 beta

i take advantage of it's:

i18n , forgive me ,but i should say loudly : mvnforum i18n is so ugly!!! tongue

taglib , i try to build the jsp all by tag and i do it 95% now , performance is very good and custom the tag when bottleneck

mvc , most imortant thing , we all konw!

validate , maybe it's not perfect but help me enough

and some other features such as exception handler 、file upload and so on

i think the mvnforum ' s mvc is not good as the Struts ,so change it to is necessary ( and as i konw , it works!)

i have sent a mail to Minh Nguyen and wanna join the MVNForum team , do you remember? cool
[Dec 3, 2003 5:21:12 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://magician.mblogger.cn/ [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: share the experience with Hibernate and Struts

i have sent a mail to Minh Nguyen and wanna join the MVNForum team , do you remember?

Yes, and I replied to you but does not get any email back from you. Maybe there is something wrong. My email is welcome you and ask you for more information on your plan on contributing to mvnForum. Thanks smile
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Dec 24, 2003 12:09:32 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Male murrumbeena
Newbie




Joined: Dec 6, 2003
Post Count: 20
Status: Offline
Reply to this Post  Reply with Quote 
applause Re: share the experience with Hibernate and Struts

hey man,could you show your web app?

applause
[Dec 31, 2003 8:53:19 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male magician
Newbie
Member's Avatar

China
Joined: Jul 8, 2003
Post Count: 29
Status: Offline
Reply to this Post  Reply with Quote 
rose Re: share the experience with Hibernate and Struts

i have sent a mail to Minh Nguyen and wanna join the MVNForum team , do you remember?

Yes, and I replied to you but does not get any email back from you. Maybe there is something wrong. My email is welcome you and ask you for more information on your plan on contributing to mvnForum. Thanks smile


oh , god bless me , i miss the mail!

thanks for your reply , i just wanna contributing to mvnforum for some code and some experience or my simple Architecture :)

can i just to do this in CVS directly?

hey man,could you show your web app?

applause


of course of course , but now my project full of Chinese comments , so please give me time to beautify it ;)

if you can read Chinese , go my blog , then you can get more detail for this
[Jan 2, 2004 2:54:56 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://magician.mblogger.cn/ [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: share the experience with Hibernate and Struts

I send you the second mail, hopefully it could reach you. Of course when you are developer, you will commit code to CVS directly wink
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Feb 15, 2004 5:07:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Male funks
Stranger




Joined: May 18, 2004
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: share the experience with Hibernate and Struts

You are having problems because you are using Java to do procedural work. Design a good object model instead.

As for transaction demarcation through different Service Objects, you can use something like the Spring Framework which makes it easy. (both programatic & declarative).

No need to create ugly hacks like Hibernate Session filters and such..
[May 18, 2004 8:19:25 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male dejan
mvnForum Developer




Joined: Feb 27, 2003
Post Count: 185
Status: Offline
Reply to this Post  Reply with Quote 
Re: share the experience with Hibernate and Struts

If you want to use lazy loading for collections you still do need Hibernate Session Filter. Spring has its implementation of Session Filter so you don't need to write your own, but it is still SessionFilter, right?
[May 18, 2004 10:32:02 AM] Show Printable Version of Post    View Member Profile    Send Private Message    dejan_krsmanovic    76119246 [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread