Win a copy of Emmy in the Key of Code this week in the General Computing 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

From Struts to Spring

 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been developing web-applications with Struts since June 2004. Is it worthwhile to change for every application to Spring, or is this just another framework besides Struts (and some others)? Or is it specifically meant for some kind of application (working with EJBs or something like that)?
If you are an intermediate struts developer: would changing to Spring be very difficult (for me as developer) and time-consuming (changing jsp's, action forms, action classes,... to SpringMVC)
 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I'm not mistaken, EJBs are a big no-no in Spring. To Spring, EJBs are the culprits that make J2EE applications too heavy-weight.

Correct if I'm wrong.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Spring and still continue to develop with Struts, Tapestry, JSF, etc. Spring offers its own MVC framework, but you're not required to use it.

I've been using Tapestry lately and looking forward to integrating it with Spring to see how well everything works together.
 
author
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Cheng Wei Lee:
If I'm not mistaken, EJBs are a big no-no in Spring. To Spring, EJBs are the culprits that make J2EE applications too heavy-weight.



Spring doesn't really discourage the use of EJBs, in fact, it
makes EJBs easier. However, most applications don't need EJBs because they'll only ever run on a single server and they don't need the distributed/remote stuff that EJBs provide.

Also, Spring provides many of the services of an EJB container: i.e. declarative transactions and security (via Acegi Security) and makes it much easier to "test" your code. Testing EJBs is hard out-of-container.
 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Christopher DeBracy:

I've been using Tapestry lately and looking forward to integrating it with Spring to see how well everything works together.



I think Matt forgot to mention that appfuse integrates Spring/Tapestry/Hibernate

You may find that a useful starting point for your Spring/Tapestry integration.

Cheers
[ February 23, 2005: Message edited by: Sonny Gill ]
 
We can walk to school together. And we can both read this 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!