Feeds

Ironing down the JBoss Seam

Not just another Java framework

  • alert
  • submit to reddit

The Power of One eBook: Top reasons to choose HP BladeSystem

Book review We might as well get this over and done at the outset. Yes, JBoss Seam is another Java framework. I know, you thought there couldn't possibly be any room for another one, but you're wrong.

What's more, it's another Java EE framework, built to make life for the enterprise developer more productive, more efficient, more interesting etc etc.

All the usual suspects are present here: object relation mapping, database persistence, transactions, inversion of control, the model-view-controller design pattern, and so on.

However, Seam is different. The obvious influence of Ruby on Rails is visible. The lure of Ajax and rich internet applications (RIA) is here. And there's plenty of Java here too, in case you were wondering.

The intention of Seam is to take a lot of the pain out of Java EE – no screeds of XML configuration, no brittle dependencies, an easier "code deploy debug" cycle, an easy way to get the most out of existing tools such as Hibernate, Java Server Faces, and Ajax.

What's more, it takes a leaf out of the Ruby On Rails book, as much of the work as possible is done for the developer up front. And, to a greater or lesser extent, that's what Seam succeeds in doing.

The authors manage to squeeze a fair chunk of material into this book, starting with a basic introduction to Seam, with a quick run-down of the aims and benefits it provides before launching into the compulsory "Hello World" example in the second chapter. This being a web application, of course, there's more to this simple example than a page that loads a simple "Hello World" message. From then on the examples become more elaborate or are geared to illustrating particular aspects of the platform.

For example, there is a complete section of the book devoted to creating stateful applications (HTTP not being a stateful protocol means that developers need to carry state with them as an application moves from page to page). Seam applications are stateful by default, but there's a fair amount of functionality and detail involved in something as complex as a shopping basket application. In the case of Seam there's even functionality to create complete workspaces, in much the same way that an IDE has a workspace.

Ajax is covered in some detail too, with a range of different options available, from using pre-existing components to pretty much roll-your-own JavaScript. The standard Web 2.0-type Ajax functionality is covered, from on-the-fly field validation for forms to type-ahead functions.

More advanced material looks at business rule processing, rule-based security, two chapters dedicated to testing, a number of chapters on deployment and productionising, and more. Oh, and there's IDE support for NetBeans and Eclipse covered as well.

The book features lots of code, but the reader is really expected to have downloaded and installed the samples. The writing tends to be clear and easy to get to grips with, though there are times when a little more of the why rather than the how would have been useful. That said, there's a lot to be gained from the book and it's certainly not as dry as many Java EE books tend to be.

JBoss Seam

JBoss SeamVerdict: Whether Seam will change the world is open to question, but there's no disputing the increasing interest that it's attracting, and this book is a great introduction to it.

Author: Michael Juntao Yuan and Thomas Huete

Publisher: Prentice Hall

ISBN: 0131347969

Media: Book

List Price: £28.99

Current Reg price: £19.13 inc VAT (discount 34 per cent)

Buy this book at Register Books, at Reg Developer's special discounted price (subject to change).

HP ProLiant Gen8: Integrated lifecycle automation

More from The Register

next story
Chrome browser has been DRAINING PC batteries for YEARS
Google is only now fixing ancient, energy-sapping bug
HIDDEN packet sniffer spy tech in MILLIONS of iPhones, iPads – expert
Don't panic though – Apple's backdoor is not wide open to all, guru tells us
Do YOU work at Microsoft? Um. Are you SURE about that?
Nokia and marketing types first to get the bullet, says report
Microsoft takes on Chromebook with low-cost Windows laptops
Redmond's chief salesman: We're taking 'hard' decisions
Cheer up, Nokia fans. It can start making mobes again in 18 months
The real winner of the Nokia sale is *drumroll* ... Nokia
EU dons gloves, pokes Google's deals with Android mobe makers
El Reg cops a squint at investigatory letters
Big Blue Apple: IBM to sell iPads, iPhones to enterprises
iOS/2 gear loaded with apps for big biz ... uh oh BlackBerry
prev story

Whitepapers

Reducing security risks from open source software
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
Application security programs and practises
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.
Consolidation: the foundation for IT and business transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.