You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leonidas Papadakis <it...@creteonline.gr> on 2007/08/23 11:34:29 UTC

struts 2 best practice for hibernate session

Greetings to all,

since i am migrating to struts2 i would like to ask which is the most 
efficient way to handle the hibernate sessions ... i.e. stick to the 
hibernateutil class that is on hibernate website example ? Create a 
application scope bean accessible via spring ?

Your answers are appreciated

Thank you very much

Leonidas

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: struts 2 best practice for hibernate session

Posted by Baseer Patel MD <Ba...@mphasis.com>.
Depends on many factor & your exact requirement,
However you can use EHCache to boost performance along with QueryCache,
Level1 & Leve2 cache.
Lazy loading is also boost performance but in some scenarios only.
If you don't recognize these may degrade even too.

-----Original Message-----
From: Leonidas Papadakis [mailto:it@creteonline.gr] 
Sent: Thursday, August 23, 2007 3:41 PM
To: Struts Users Mailing List
Subject: Re: struts 2 best practice for hibernate session

Thank you for your reply.

What about the performance in this case... Is it going to be fast and 
stable ?

L

Baseer Patel MD wrote:
> If spring take control of this then you can access many
spring&container
> feature on session. Also you can take advantage of different Templates
> provided by spring(HibernateTemplate , SimpleJDBCTemplate..)
>
> -----Original Message-----
> From: Leonidas Papadakis [mailto:it@creteonline.gr] 
> Sent: Thursday, August 23, 2007 3:04 PM
> To: Struts Users Mailing List
> Subject: struts 2 best practice for hibernate session
>
> Greetings to all,
>
> since i am migrating to struts2 i would like to ask which is the most 
> efficient way to handle the hibernate sessions ... i.e. stick to the 
> hibernateutil class that is on hibernate website example ? Create a 
> application scope bean accessible via spring ?
>
> Your answers are appreciated
>
> Thank you very much
>
> Leonidas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts 2 best practice for hibernate session

Posted by Leonidas Papadakis <it...@creteonline.gr>.
Thank you for your reply.

What about the performance in this case... Is it going to be fast and 
stable ?

L

Baseer Patel MD wrote:
> If spring take control of this then you can access many spring&container
> feature on session. Also you can take advantage of different Templates
> provided by spring(HibernateTemplate , SimpleJDBCTemplate..)
>
> -----Original Message-----
> From: Leonidas Papadakis [mailto:it@creteonline.gr] 
> Sent: Thursday, August 23, 2007 3:04 PM
> To: Struts Users Mailing List
> Subject: struts 2 best practice for hibernate session
>
> Greetings to all,
>
> since i am migrating to struts2 i would like to ask which is the most 
> efficient way to handle the hibernate sessions ... i.e. stick to the 
> hibernateutil class that is on hibernate website example ? Create a 
> application scope bean accessible via spring ?
>
> Your answers are appreciated
>
> Thank you very much
>
> Leonidas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: struts 2 best practice for hibernate session

Posted by Baseer Patel MD <Ba...@mphasis.com>.
If spring take control of this then you can access many spring&container
feature on session. Also you can take advantage of different Templates
provided by spring(HibernateTemplate , SimpleJDBCTemplate..)

-----Original Message-----
From: Leonidas Papadakis [mailto:it@creteonline.gr] 
Sent: Thursday, August 23, 2007 3:04 PM
To: Struts Users Mailing List
Subject: struts 2 best practice for hibernate session

Greetings to all,

since i am migrating to struts2 i would like to ask which is the most 
efficient way to handle the hibernate sessions ... i.e. stick to the 
hibernateutil class that is on hibernate website example ? Create a 
application scope bean accessible via spring ?

Your answers are appreciated

Thank you very much

Leonidas

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org