aspose file tools*
The moose likes Spring and the fly likes Spring in Action: 3rd edition - Questions on Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring in Action: 3rd edition - Questions on Spring" Watch "Spring in Action: 3rd edition - Questions on Spring" New topic
Author

Spring in Action: 3rd edition - Questions on Spring

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Hi Craig,
I read the last edition of Spring In Action and was greatly impressed with it.
I don't work directly with Spring and my interest is to compare it to alternatives from an architectural perspective?

I have a few questions:
1.
Say you have the classic requirement to change the look the feel for different users in a CMS.
You have a choice Spring themes of JSF / Facelets. In a JSF / Facelets architecture you could just store references to CSS files as variables that were in backing beans and then resolve this as a dynamic property in a JSF page. Seems very simple. If I use themes I need to know about a lot of specific configuration and it just seems a more clunky wa of doing it. What's your preference for dynamic look and feel and why?

2.
JSF is now pushing facelets and not JSPs as a view technology. Spring is still pusing JSP as the default technology. Why is this? JSPs are a bit clunky and not good for promoting a true view layer (with no controller logic sneaking in).

3.
Spring originally started out as an alternative to EJB because the earlier EJB specs were way too clunky and nearly everyone went for Servlet centric architectures.
Now, EJB has got much simplier (especially with the advent of CDi) and Spring in an effort to p[rovide more and more features looks to be getting clunkier and clunkier. To even do a simple Hello World requires Apache jars not contained in Spring. Do you think there's a danger that Spring could be forgetting about it's original intent to simplify rather than to complicate things?

4.
The JSF model is much component based; whereas Spring MVC is much more request based. Which do you think is a better model and why?

5.
If you were asked for the number one killer feature from spring what would it be?

Reason I ask this is because a lot of what Spring does: Aspects, JMX seem like they can be achieved without it.

Cheers.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring in Action: 3rd edition - Questions on Spring