Agile Zone is brought to you in partnership with:

Meera has posted 70 posts at DZone. You can read more from them at their website. View Full User Profile

Free Book: JBoss in Action

  • submit to reddit
Published by: Manning
ISBN: 1933988029

Reviewer Ratings




Buy it now

One Minute Bottom Line

It is very simple to rate this book: everyone who uses JBoss AS should own and read a copy. The book is highly readable and with tons of working examples. The references at the end of each chapter are a real bonus.


This book is divided into four parts, containing 15 chapters and two appendices.

Part 1: The JBoss Application Server

If you are using JBoss than you can simply skip Chapter 1(Vote for JBoss). This chapter gets you up and running with JBoss by describing the directories and files that are part of JBoss AS, how to start and stop the server, and finally show how to deploy and undeploy a simple web application.

Chapter 2(Managing the JBoss Application Server) starts with a description of how JBoss application server is architected;the JBoss Microcontainer and JMX. Next, you will learn how each of these components are configured using its own configuration file, and how you can change these as well. Next, we get a closer look at a few of the management tools provided by JBoss like the JMX Console and twiddle. And finally, a look at some MBeans that provide helpful information,the MBeans that give the list of names in the JNDI namespace or a list of system properties.

Chapter 3(Deploying applications) is especially useful if you are encountering tons of deployment errors. This chapter starts with explaining how to deploy applications as well as services. Next, the most important section which you shouldn’t miss reading at all; understanding class loading. In this section, the authors start with a description of the class loaders, then go into class scoping, which enables the application server to differentiate among classes. Next in this section, a look at loader repositories which enable several class loaders to share or isolate classes. The next few sections cover common deployment errors like class not found exception, class cast exception and so on. The last section in this chapter is about configuring data sources and Hibernate archives.

If you are concerned about the security of your applications than Chapter 4(Securing applications) shows you everything you need to know about securing your applications. The authors discuss in detail the fundamental concepts behind application security, including authentication, authorization, and encryption and how they are implemented in JBoss AS. They also show you how to configure by demonstrating how you can access security data from a database, LDAP, or other security datastores.

Part 2: Application Services

If you are deploying web applications to JBoss than you must read Chapter 5(Configuring JBoss Web Server). It covers configuring web applications, JBoss web server, the key configuration files. Next, is configuring specific things in web applications like the URL paths, then the authors discussed JBoss Web Server connectors and how they’re used to allow client requests to come in over different protocols. In the next section the authors give us an overview of why web applications have different class loading rules and show us how to configure different web-specific class loading parameters. Next comes valves, another feature of JBoss Web Server, and finally the last section is all about configuring JavaServer Faces.

In chapter 4, the authors discussed about the fundamentals of JBoss security and showed you how to configure security domains and login modules. Chapter 6(Securing web applications)  explores the configuration files necessary to enable security, how to enable authentication and authorization for URLs relative to your application’s context path. And finally see how to enable secure communication for server authentication, mutual authentication, and client-certificate authentication.

If you are a huge fan of EJB's just like I am, than Chapter 7(Configuring enterprise applications) shows you how to structure, deploy, and configure EJB applications. Then, you will learn how to configure the application server, and finally also secure EJB applications.

In Chapter 8(JBoss Messaging), you’ll learn about configuring messaging. The chapter begins by describing JMS and how JBoss Messaging is architected. You will see an example of a message-driven EJB and a message-driven POJO. The authors show you how to use a database for message storage, how to define destinations, and how to configure authentication and authorization for those destinations.

If you are quite familiar with web services than you skip the first few sections of Chapter 9(Configuring Web Services) which introduces you to web services, shows you how to develop a simple web service. However, don't skip the next few sections which are quite interesting and cover topics such as JBossWS annotations, securing your web services using authorization and encryption.

Part 3: JBoss Portal

I did evaluate JBoss Portal sometime in 2006. So, I am not an expert in this specific area so I just skimmed over Chapters 10 and 11. These chapters provide a very basic introduction to JBoss Portal. So, I am just going to quote the topics covered in these two chapters:
  •     Creating a portlet using JSPs and JSTL
  •     Using the Admin portlet and the descriptor files to define portlet instances and portlet windows
  •     Using multiple instances within a portal
  •     Adding content to the CMS
  •     Configuring window appearance
  •     Setting up access control for portals, pages, and windows
  •     Creating a custom portal

Part 4: Going to Production

All the chapters in this section are important and very interesting. These chapters cover everything you will need to know when your application goes to production.

Chapters 12 and 13 are dedicated to clustering. Chapter 12(Understanding Clustering) begins with the fundamentals of clustering; It was interesting to set up a simple cluster as explained in this chapter and learn how to configure JGroups and JBoss Cache. Chapter 13 covers clustering as applied to Java EE specific application components and services like session EJB's and entities, HTTP session replication, and JNDI.

If you need to access and improve the performance of your application, than you need to read Chapter 14(Tunning the JBoss Application Server). In this chapters you will see ways to tune the hardware, operating system, database, JVM, application server, and of course your deployed application. There are also a few tips on how to interpret thread dumps to pinpoint performance issues within your code.

Chapter 15(Going to production) is the last chapter in this book which covers topics such as selecting a platform, running JBoss AS as a service, running multiple JBoss AS instances on the same machine. You will also learn how to remove services which are not required, secure the management applications, change the default data source, database, configuring the EJB3 timer service and precompile JSPs.

Appendix A: JNDI namespaces

In this appendix, the authors explore how JBoss does JNDI binding and how to generically bind your applications in JNDI, making them more portable across application servers.

Appendix B: Change is inevitable

To quote the authors
This appendix contains changes that came after CR2 and before the book went to the printer. Any changes after that will appear on the book’s website.
Published at DZone with permission of its author, Meera Subbarao.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)


farida bouferguene replied on Wed, 2009/05/20 - 11:05am

I would like to have this book.

I am learning JBoss.  I have more than 5 years experience in java using Tomcat and websphere and my next assignment is developing application with JBoss and eclipse. I really need it.


Tang wei replied on Wed, 2009/05/27 - 6:44am

I'm chinese user, how can I get this book ? Thank you ! Please tell me :

michael james replied on Thu, 2009/06/11 - 12:40am in response to: Juan Antonio Martinez Villar

 Learn how to get up to speed quickly with JavaFX and improve your RIAs.  Includes JavaFX 1.2 features!



himalayan goji

chris mart replied on Thu, 2009/07/09 - 9:14pm

I used Jboss since the 3.0 version. JBOSS contributes a lot for using JAVA in my professionnal activities. Thanks.

jack zeng replied on Tue, 2009/07/14 - 1:09am

JBOSS is so complicated that I need to spend a lot of time to survey ! But it's instristing.

Rajesh Chetty replied on Tue, 2009/07/14 - 12:32pm

Jboss is easy to use.

The Jboss EJB3 implementation makes a lot of stuff really simple.

Peter Boxberg replied on Mon, 2009/07/27 - 3:32pm

Sometimes I'am a bit disappointed for the unsufficient documentation that comes out with JBoss.

So for an example, it is not easy to find out which jar files are necessary touse jBPM with JBoss in an particular version for instance JBoss 4.2.3

Slobodan Djordjevic replied on Wed, 2009/07/29 - 6:56pm

JBoss is a good product, but lacking good documentation. Books like this should help bridge the gap. Thanks

Gouws Jay-Dee replied on Thu, 2009/07/30 - 5:44am

JBoss looks like it can handle large volumes and is fairly extensible but I wonder why it is so difficult to connect to a JBoss JMS queue from .net. This book seems like a really good starting point to get one going on the J2EE journey.

srk ch replied on Mon, 2009/08/24 - 1:51pm

I am migrating my application from weblogic to JBoss 5.1, and I am getting tons of errors in that process, hopefully this book will help in solving those errors

Johan Wallén replied on Thu, 2009/08/27 - 2:06am

JBoss is nothing less than the only application server you need. I'm looking forward to reading the book and learning more about the nuts and bolts of JBoss AS. By the way, did you try JBoss Seam? That's a really nice framework for developing feature rich applications for the web.

fadi zeng replied on Sun, 2009/09/13 - 9:44pm


fadi zeng replied on Sun, 2009/09/13 - 9:45pm

I am a Jboss fan.

hob hobbs replied on Sun, 2009/09/20 - 3:52am

thank you for download the book

james percy replied on Fri, 2009/09/25 - 6:31am

jboss rocks compared to other app servers I've worked with!

Wayne Ross replied on Mon, 2009/10/19 - 3:25pm

JBoss is in my opinion is a first rate application server. When performing an application survey for a technology refresh of b2b services for a company the cost / value proposition of JBoss was just too great to ignore. Also it was the only app server to support the latest J2EE technologies of the time.

Ramaswamy Srinivasan replied on Fri, 2009/11/06 - 5:11am

I will be interested in buying this book as I need to understand the security aspects and implement them in a forthcoming project.





bill tuba replied on Mon, 2009/11/09 - 2:09pm

i have been designated as the "go-to guy" for jboss-related configuration / deployment on my team. I did not know diddly about JBoss having been coddled in a "developer-only" role. Another developer cast in a similar lot on another team has this book. It is dog eared and well worn after only six months time. He can do nothing but praise the authors for thier work. From what I have read - i cannot wait to get my hands on it.

bill tuba replied on Mon, 2009/11/09 - 2:11pm

I think I had a problem with the download... but in any case from what i was able to read of my friend's book: it explained everything so clearly and plainly. Execellent writing. Clear. Concise. No bafflegab.

Guy Stevens replied on Thu, 2009/11/12 - 6:17am

At first, I found JBoss intimidating. However, it truly can be quite simple to use. Combine that with it being open source and its ability integration with other utilities -- you've got yourself a winner.

Eric Yomi replied on Tue, 2009/12/01 - 11:05am

there doesn't seem to be a link to download the "free" book. I guess maybe because it is not free after all. Nice try Javalooby!

Dhananjay Diwan replied on Mon, 2009/12/28 - 9:16am

This is really great book. I have actually gone through the old edition and found a tremondous value add in the new version covering JBoss 5 features.

Erik Vande Velde replied on Mon, 2009/12/28 - 9:55am

trying to download the book to investigate webservices, didn't read it yet

Cameron Miller replied on Thu, 2010/01/14 - 6:48pm

I'm new so I ask how is it free?

Parmendra Tyagi replied on Tue, 2010/02/16 - 12:11am

JBoss is awesome Application server...And this book is super.

Roland Bonilla replied on Thu, 2010/03/11 - 12:30pm

What exception handleing does JBOSS have ?

Jaco Boon replied on Wed, 2010/04/07 - 3:26am

I have used JBoss AS in production for several projects. JBoss AS is a very stable and good performing app server which can be configured to meet your needs. I would prefer JBoss AS  over any (more) commercial app server.

Ben Knight replied on Sun, 2010/04/25 - 3:50pm

Just getting started with JBoss. Hoping this book can answer some questions for me.

Rich Kucera replied on Mon, 2010/08/16 - 11:54am

According to the Notebook,  Jboss is highly configurable JMX microkernel,  like a spine.   We deploy jboss enterprise portal already but to get into the nitty gritty of jboss and to use it for many other things inhouse we need a textbook like this one.  So, yeah,  great book...

David Connell replied on Fri, 2010/11/19 - 1:52pm

I am new to the jboss world but i am finding to to be a solid solution. I look forward to reading the book and passing it to my associates.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.