wood burning stoves 2.0*
The moose likes OO, Patterns, UML and Refactoring and the fly likes JEE vs. Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "JEE vs. Spring" Watch "JEE vs. Spring" New topic
Author

JEE vs. Spring

Alessandro Gentile
Greenhorn

Joined: Jul 27, 2010
Posts: 12

Hi guys,

I've read several articles on this subject and I don't want to arouse controversies, but if I had to design a complex web application with a fair amount of transactions per day (let's say 5.000) should I choose JEE or Spring or both? My friends in the UK say that nobody uses JEE any more and that I should move on to Spring. In my personal experience I found that the use of both Spring and application servers is messy because you spend too much time to set up a development environment properly. Do you really think that JEE is dead?


OCMJEA/SCEA 5
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

That's an odd question. JEE provides the support for web applications written in Java. To avoid using JEE entirely and still be using Java, you'd have to design, build, and debug up a custom webapp server from scratch. In the business world, that would rarely be justifiable, since you and you alone would have to shoulder the costs of developing and supporting the webapp server in addition to developing and supporting the webapp itself. And, for that matter, developing and supporting a decent security manager, since almost nobody manages to create security systems that are actually secure on their own.

You could attempt to leverage the above by making your DIY server out of Spring components, but it would still be a lot of work.

On the other hand, I've found that Spring can be an immense help in developing and testing JEE webapps. I use it to manage the persistency layer of my apps as well as supply common services like email, where the rewiring capabilities of Spring mean that I can test using a dummy mailer, then switch on the live one for production with no changes to program source code.

Whether you use Spring's web subsystems or JEE facilities such as JSF would depend entirely on your local needs and resources. There's no single correct answer.


Customer surveys are for companies who didn't pay proper attention to begin with.
Alessandro Gentile
Greenhorn

Joined: Jul 27, 2010
Posts: 12

Thank for your reply, Tim.
 
Don't get me started about those stupid light bulbs.
 
subject: JEE vs. Spring
 
Similar Threads
Spring versus Jee
spring and hibernate
New to Java Spring
transaction management in spring
Need Java Job in Germany