Saturday, January 15, 2011

Book Review for "OSGi and Apache Felix 3.0 Beginners Guide"

Book review for "OSGi and Apache Felix 3.0: Beginner's Guide"

This book promises to bring a developer from level zero through advanced usage of Apache Felix, a pretty ambitious goal. Before we get into how well it delivers, let's talk a little about what OSGi and Felix are.

OSGi is a specification meant to save Java developers deployment and classpath headaches. If you've ever used Eclipse, you have used OSGi, albeit as a user. OSGi is bigger than just Eclipse, though-- it's the basis for a whole new class of frameworks, and it's got buy-in from the guys at JBoss, Spring, Apache and others.

OSGi is meant to alleviate classloader headaches. It helps keep your deployments clean, allowing you to run application that have dependencies on libraries that might differ in version from what other deployments need. In other words, you can specify exactly which libs you need, and which versions, and OSGi will manage keeping all the applications happy.

This book teaches Apache Felix, which is a pretty mature OSGi implementation. The cruxt of the book is building, then improving a simple bookshelf application. Maven2 is used for the build duties, and the author is very generous with providing instruction about how to build your .pom files each step along the way.

Felix (and OSGi are much more than just a runtime container, though. Felix contains lifecycle startup mechanisms, so these are taught. You're also given a whole chapter on the shell language Felix provides for control functions.

Beyond that, it's mostly application development done the Felix way. Even tasks as mundane as logging are different under OSGi, and this book gives insights into all the nooks and crannies you'll need to implement the bookshelf application. (Note: I'm sure EVERY nook and cranny isn't explored, but if you follow the clear instructions this book provides you'll end up with a running application.) The book leads you through an incremental buildup of the app, so you'll add functionality bit by bit as you improve the application.

The book ends with a nice-to-have chapter on troubleshooting and a few quick write-ups on the dev environment (Maven and Eclipse) and other topics that should be within reach for the reader.

So, what's the verdict? OSGi coding is not trivial, and isn't something to be taken up lightly. (It's yet another Java framework to be embraced, complete with it's own set of twists and turns.) If you're going to learn it, though, this book is a very good from-the-ground-up resource to guide you completely through the learning process. So if you're going the OSGi path, this is a good place to start.

The book can be found here.

Happy Reading!

Friday, January 7, 2011

Packt begins publishing Microsoft books

Hi all,

I like to review technical books, and I have reviewed plenty of them from Packt Publishing. Packt has always been a good provider of material on Open Source topics, but has recently branched out and is now offering Microsoft titles as well. Enclosed is a brief press release from the folks at Packt, for the benefit of MSFT readers.

Happy reading, and good luck in the Monday drawings!



On Monday the 24th January, 2011 Packt Publishing is issuing five brand new Microsoft Books on a range of different subject matters:

  • Microsoft SQL Server 2008 High Availability

  • Microsoft Application Virtualization 4.5

  • Microsoft Forefront UAG 2010 Administrator's Handbook

  • Dynamics AX 2009 Administration

  • Microsoft Dynamics Sure Step 2010

  • (Microsoft SharePoint 2010 Administration Cookbook)

With five Microsoft books published at the end of 2010, the publication of a further five new books all on one day reiterates Packt’s commitment to producing specialist Microsoft book titles, and signifies their position as a top Microsoft publisher. James Lumsden, the Packt Enterprise Publisher states that “serving the needs of Microsoft professionals is one of our top priorities at Packt, and 2011 promises to be a bumper year. What better way to kick off the New Year than with five exciting new titles on Microsoft Monday! As always we want to do our utmost to serve you, the reader, so please email us if you have book ideas, general suggestions, or if you just want to offer some feedback. Have a great 2011”.

To mark this milestone Packt is also offering a 25% discount when you purchase two or more Microsoft books throughout January. And will be running a competition throughout January offering customers the opportunity to win a free 1 year’s subscription to PacktLib every Monday throughout January.

For further information on this, and other books published by Packt Publishing, please visit this link.