integrating struts2,spring and hibernate...
we need to build an web application where we need to integrate spring -hibernate with struts2.Do anyone of you have any idea about this or anyone already implemented it can throw some light on it.waiting for ur replies ..
> we need to build an web application where we need to
> integrate spring -hibernate with struts2.Do anyone of
> you have any idea about this or anyone already
> implemented it can throw some light on it.waiting for
> ur replies ..
Spring integrates both Struts and Hibernate. Plenty of docs available. Better to read those, because it's a bit complicated and isn't possible to do justice in a text box.
If you have no idea, you probably shouldn't be trying this. Unless it's only for education's sake.
Or did you get a nice outsourcing contract by lying about your capabilities?
%
> Spring integrates both Struts and Hibernate. Plenty
> of docs available. Better to read those, because
> it's a bit complicated and isn't possible to do
> justice in a text box.
>
> If you have no idea, you probably shouldn't be trying
> this. Unless it's only for education's sake.
>
> Or did you get a nice outsourcing contract by lying
> about your capabilities?
>
> %
well i have worked on struts framework, and also integrating hibernate in struts framework.Well what we are trying out here is
app framework:-struts2
backend:-POJO with spring,Hibernate and mysql.
so this means we want to use spring inside the struts framework for transaction management.
> If you have no idea, you probably shouldn't be trying
> this. Unless it's only for education's sake.
>
> Or did you get a nice outsourcing contract by lying
> about your capabilities?
>
> %
LOL...well said...outsourcing contract....no no don't worry it's just for the purpose of updating onself to the latest technologies available and trying out something new.
You could do a lot worse than buy this book
http://www.amazon.co.uk/Professional-Java-Development-Spring-Framework/dp/0764574833/ref=pd_bbs_sr_1/203-6236725-0531957?ie=UTF8&s=books&qid=1185358557&sr=8-1
A few days ago I read a nice article on the subject. Here's the link:
http://www-128.ibm.com/developerworks/java/library/j-sr2.html
Manuel Leiria
> You could do a lot worse than buy this book
>
> http://www.amazon.co.uk/Professional-Java-Development-
> Spring-Framework/dp/0764574833/ref=pd_bbs_sr_1/203-623
> 6725-0531957?ie=UTF8&s=books&qid=1185358557&sr=8-1
thanks
> A few days ago I read a nice article on the subject.
> Here's the link:
>
> http://www-128.ibm.com/developerworks/java/library/j-s
> r2.html
>
> Manuel Leiria
ya indeed a nice article...thanks..
> > A few days ago I read a nice article on the
> subject.
> > Here's the link:
> >
> >
> http://www-128.ibm.com/developerworks/java/library/j-s
>
> > r2.html
> >
> > Manuel Leiria
in this link the article shows three ways to integrate spring and struts...what they have tried to put empahsis is adding features of spring to struts framework...
1.Use Spring's ActionSupport
2.Override the RequestProcessor
2.Delegate action management to Spring
now what i'm thinking is which one is the best approach for my requirement..any idea?
> ell i have worked on struts framework, and also
> integrating hibernate in struts framework.Well what
> we are trying out here is
> app framework:-struts2
> backend:-POJO with spring,Hibernate and mysql.
Very good.
> o this means we want to use spring inside the struts
> framework for transaction management.
I'd recommend either the Spring reference docs or a book like "Pro Spring" or "Spring in Action". Both can tell you how to integration Struts and Hibernate with Spring.
Not sure what's new with Struts-2. (Doesn't it have WebWork in it now?) Also not sure if Struts-2 changes how Spring interacts with it.
%
I'd delegate actions to Spring.
Make sure you follow the Spring idiom: a well-defined, interface-based service layer. Don't put everything in an Action class. It tightly couples things with Struts and the web tier, and makes it impossible to use WITHOUT Struts.
Just a thought - why Struts? Why not Spring MVC? I think it's a better design.
%
> LOL...well said...outsourcing contract....no no don't
> worry it's just for the purpose of updating onself to
> the latest technologies available and trying out
> something new.
No offense intended. We see a lot of that here - folks who get contracts by touting capabilities with no idea how to pull them off. They actually ask for help to get their job done, and by "help" I mean "write this for me".
%