Re: Hibernate and Struts

2008-10-17 Thread Anoop
I did try this as you told but I am still getting the exception. Anyways to get a solution to that. I think this is a widespread problem(having gone through the forums), is there any other way. I am also looking to test this finally on Webshpere so are there some issues there? On 10/17/08, jygnash

Re: Hibernate and Struts

2008-10-16 Thread jygnash
Hi Anoop, YOu can use the JNDI context to get the Hibernate's SessionFactory. 1) in hibernate-cfg.xml give the jndi name as below 2) in one of your startup servlet or first class handling the request for session factory creation (we had a start up servlet) , you can have the session f

Re: Hibernate and Struts

2008-10-16 Thread Hardik Shah
hope this help to you http://hardik4u.wordpress.com Anoop-9 wrote: > > Hi, > We are looking forward to integrating struts with hibernate in our web > application project. Could you guide us on how to to integrate them. I > tried the hibernate plugin as recommended on the hibernate website, >

Re: Hibernate and Struts

2008-10-15 Thread Mead Lai
haven't use this plug before. but I think Spring-plug-in, would be better! It's less config! On Wed, Oct 15, 2008 at 11:04 AM, Anoop <[EMAIL PROTECTED]> wrote: > Hi, > We are looking forward to integrating struts with hibernate in our web > application project. Could you guide us on how to to in

Re: Hibernate and Struts Usage Pattern question/survey

2005-03-03 Thread N G
On Tue, 1 Mar 2005 17:48:40 -0500, Joe Hertz <[EMAIL PROTECTED]> wrote: > That is, usually you want the request to begin a transaction early > and either commit or rollback at the end. Hmm... I was under the impression that you **always** want to begin your transaction as late as possible, not ear

RE: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
This particular application (tiny, not used much, never will be, and was written in a hurry and not by me) implementing it after the fact ain't going to happen. Not worth the cost to the customer. In general though, youre quite correct (and I'm cutting through the layers of abstraction. Ultimate

RE: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
This particular application (tiny, not used much, never will be, and was written in a hurry and not by me) implementing it after the fact ain't going to happen. Not worth the cost to the customer. In general though, youre quite correct (and I'm cutting through the layers of abstraction. Ultimate

Re: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Brandon Mercer
Joe Hertz wrote: I've been hearing this from the Spring set. I'm waiting for a good book to come out on it. www.springlive.com a REALLY good book for more than just spring. It's 30 bucks online, money WELL spent. Brandon - T

Re: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Christian Bollmeyer
On Tuesday 01 March 2005 22:07, Joe Hertz wrote: > Curious as to which concept Struts/Hibernate implementers like more > for implementation: > > #1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate > Session object into the httpServletRequest. Every action has a fresh > Hibernate S

RE: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
ling issue, but it got me wondering about where the bathwater began and where the baby ended. -Original Message- From: Brandon Mercer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 4:48 PM To: Struts Users Mailing List Subject: Re: Hibernate and Struts Usage Pattern question/su

RE: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
ling issue, but it got me wondering about where the bathwater began and where the baby ended. -Original Message- From: Brandon Mercer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 4:48 PM To: Struts Users Mailing List Subject: Re: Hibernate and Struts Usage Pattern question/su

Re: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Brandon Mercer
Joe Hertz wrote: Curious as to which concept Struts/Hibernate implementers like more for implementation: #1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate Session object into the httpServletRequest. Every action has a fresh Hibernate Session raring to go if it needs it. Then aga