This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Spring & Struts

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

My company have a requirement to build a J2EE application. So far we were using Struts and J2EE Patterns (Business Delegate, DAO etc)for other projects.My management would like to know how Spring and Hibernate can be used. Should we use stop using Struts?Team is not trained in these frameworks now. How long it will take a developer to learn these?

Thanks in advance.
Vinu
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need to dump Struts to use Spring. Unless you want to use SpringMVC. Spring and Hibernate can work just fine in a Struts application. And there is plenty of documentation on the Spring website on the topic and several books that are very good. Spring in Action and Pro Spring to name two.
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That said, I made the switch seemlessly from Struts to Spring MVC. They are similar enough and there wasn't anything I needed to do in Struts that I couldn't do in Spring MVC. The primary reason I haev seen to use Struts with Spring is for the comfort and familiarity of the developers. If your developers know Struts, they shouldn't have much of a problem picking up Spring MVC if needed.
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vinu,

Spring is very much modular framework. It is not mandatory to use Spring framework completely. You can choose which feature of Spring you wanted to use and then integrate only that feature in your application.

If you are planning to develop entire new application then you can think about using SpringMVC, but if you want to use Spring in your existing Struts based application, then also you can choose that approach. You have to integrate Spring and Struts together with Spring's provided classes. (This is not difficult).

Using Hibenrate in existing application is littile complex. In my previous project legacy application database schema doesn't have primary key for most of the tables. As well as Hibenrate prooves to be limited helpful for database specific queries. Ex. If you are using connectby, startswith clause with Oracle database. Then it is difficult to simmulate all these types of queries in Hibernate.

My suggestion is, if you are doing bottom-up approach use framework like IBatis.

Thanks
Dhananjay
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!