Objects by Design Forums Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home  
Objects by Design Forums : Powered by vBulletin version 2.3.5 Objects by Design Forums > Main Forums > Object-Oriented Software Environments > The Spring Framework
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
SZ
Administrator

Registered: Apr 2001
Location: New York
Posts: 492

The Spring Framework

The Spring Framework is a relatively new J2EE framework which is fully documented in Rod Johnson's excellent book Expert One-on-One J2EE Design and Development.

What makes this book so exceptional is that the author pursues an architecture for web frameworks by ruthlessly breaking down all preconceived ideas about frameworks that have been inherited from other existing, popular frameworks. The prime example of this is the chapters on MVC, in which the author compares Spring's MVC design to others from Struts, Maverick and WebWork. These chapters are a must read for anybody who wants to understand the issues about MVC in a web environment.

What is even more attractive about the book is the chapters on performance. Rarely do you get such an informed study of performance based on hard numbers from real performance tests. All software developers would do well to know this material inside out before publishing any web application without doing a performance analysis.

However, we did discover a weak point in the performance analysis. The performance comparison between various view technologies - JSP, Velocity, XMLC and XSLT - showed extremely poor numbers for XSLT. Since we use XSLT a lot and have never seen such poor results, I contacted the author about this. He recommended to do a stress test similar to his, which we did on a Resin servlet engine running on Linux at a web hosting company (Resin is an optimized container for servlets and XSLT). In fact our numbers showed XSLT using Templates to be very scalable and highly performant on this platform. Our tests used 10, 20, 50 and 100 threads and scaled from 220 to 307 to 453 to 724 milliseconds response times, respectively. So the threshold was around 83 pages per second which compares very favorably with the best numbers found on page 664 of the book. Mind you, we are doing two XSLT transforms per page because we use a custom taglib for XSLT transformation in two different places on our page. The actual XSLT transforms can take between 9 and 17 milliseconds. So you see the XSLT view, which is one of the Spring view subclasses and uses Templates, should be considered a highly viable option whenever pages have any complexity that would be better handled by XSLT.

We have sent our numbers to Rod Johnson and he mentioned that he would put out some corrections. His tests used Xalan with Templates and were repeated several times. I don't know if Xalan still has this bottleneck but somebody from the Apache Xalan team should retest to check this out because it would be very bad press for the XSLT community if it still performs so poorly is it did in Rod Johnson's tests.

Report this post to a moderator | IP: Logged

Old Post 12-31-2003 12:38 PM
SZ is offline Click Here to See the Profile for SZ Click here to Send SZ a Private Message Visit SZ's homepage! Find more posts by SZ Add SZ to your buddy list Edit/Delete Message Reply w/Quote
SZ
Administrator

Registered: Apr 2001
Location: New York
Posts: 492

New Spring Features

Rod Johnson has announced the following new features for Spring:


Spring is very capable now. Among other new features since the book:


- AOP framework, which powers declarative transaction management for POJOs.
This works very nicely indeed, and outperforms local SLSBs with CMT in both
WebLogic 8.1 (marginally) and JBoss (by a large margin). We've tried these 2
servers on several different hardware environments with the same results.


- Transaction abstraction that provides a consistent model (or declarative
transactions) over JTA, JDBC, JDO, Hibernate etc. So you can have
declarative transactions in Tomcat without JTA.


- Hibernate, JDO, iBATIS integration and JDBC enhancements.


- Much more powerful IoC, in further evolution of the bean factory


- Mail integration

Report this post to a moderator | IP: Logged

Old Post 12-31-2003 12:39 PM
SZ is offline Click Here to See the Profile for SZ Click here to Send SZ a Private Message Visit SZ's homepage! Find more posts by SZ Add SZ to your buddy list Edit/Delete Message Reply w/Quote
SZ
Administrator

Registered: Apr 2001
Location: New York
Posts: 492

We've added UML Diagrams for the latest Spring release, 1.0 M4 to our Open Source in UML pages. You may use these to get an idea how this complex software is organized.

Report this post to a moderator | IP: Logged

Old Post 01-07-2004 11:37 AM
SZ is offline Click Here to See the Profile for SZ Click here to Send SZ a Private Message Visit SZ's homepage! Find more posts by SZ Add SZ to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 03:58 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

< Contact Us - Objects by Design >

Powered by: vBulletin Version 2.3.5
Copyright ©2000 - 2017, Jelsoft Enterprises Limited.
Copyright 1999-2005, Objects by Design, Inc.