Tuesday Oct 21, 2014

New book: RESTful Java Patterns and Best Practices

RESTful Java Patterns and Best Practices” written by ’Bhakti Mehta' has been recently published. One of the great thing about this book is that it is not a theoretical book covering the JAX-RS API 2.0. As its title suggest, this book is talking about different best practices that are relevant when it comes to build efficient, scalable and secure RESTful services. So the focus of the book is really on REST best practices. It then shows how you can apply the practices and patterns using the JAX-RS 2.0 APIs.

Some of the covered practices discussed are:

  • How to design and expose your resources
  • Error handling 
  • API versioning
  • Testting
  • Security
  • Caching
  • Asynchronous behaviours, etc.

Another aspect I particularly like about this book is that it also covers features that are not yet part of the standard. It should be mentioned that some of those features (e.g. SSE, JSON-Pointers, ...) will high likely be introduced in Java EE 8. So the book give some useful background material to understand why it would make sense to add those capabilities to the platform.

Finally, the book is really trying to not overload you with too many details, with too much information. For each of the discussed topic, a technical solution is presented and explained. Pointers to additional ressources are then also suggested in case you need to dig into a specific topic in more details.

All in all, this book is a nice reading for anybody designing RESTful based applications... and who isn't?

To celebrate this, Packt Publishing will raffle 10 copies of  “RESTful Java Patterns and Best Practices” (5 eBook copies and 5 paper copies). To participate, just leave a comment about the book on your preferred social media using the 'http://bit.ly/1uUs7QR' URL and the '#JavaBhakti' hashtag. PackT will randomly select 10 lucky persons.

Please do note that Oracle is not involved in this raffle, we are just relaying this information. For any question about this raffle, please contact Packt Publishing directly.

Tuesday May 06, 2014

New book: Java Performance - The Definitive Guide

"Don't lower your expectations to meet your performance.
Raise your level of performance to meet your expectations."

(Ralph Marston)


As its title imply "Java Performance: The Definitive Guide - Getting the Most Out of Your Code" covers Java Performance at large.

Let's start with the beginning. In order to isolate any potential performance issue, you first need to be able to accurately measure performance. The first part of the book discusses general methodologies for testing Java applications. It also discusses the usual pitfalls of Java benchmarking.
Performance analysis is about about observing and understanding what an application is doing so the book continues with an ideal Java Performance Toolbox. It covers some of the tools available to monitor Java applications. It should be mentioned that Java Mission Control that has been recently added to Java SE 7 (starting with update 40) and Java SE 8 is also discussed.
The book then dive into Java performance by discussing in great details two key fundaments that are the JIT (Just-In-Time) compiler and the Garbage Collection.
The remaining chapters focus on best practice uses of various parts of the Java platform. It's the platform at large as it goes from memory use with the Java heap, native memory use, thread performance to Java EE, JPA and JDBC!

Scott Oaks, the author, has spend more than 15 yeas in the Java Performance Group at Sun and now at Oracle. I know Scott since more than 12 years, he is clearly someone that understand all the aspects related to Java Performance, from measuring to tuning. And not only that, Scott has also the capacity to distillate sometime complex technical aspects into easy to understand points. From a Java EE point of view, the book doesn't obviously covers the complete platform (see the ToC here) but nevertheless the book is a really a must-read for anyone writing Java applications based either on Java SE or Java EE. And the fact that the book also discusses Java EE and some of its APIs is certainly a nice additional bonus for any Java EE developer!

Tuesday Apr 22, 2014

New book: Java EE 7 with GlassFish 4 Application Server

The third edition of David Heffelfinger's Java EE book has been recently released. This updated edition is covering the latest version of the Java EE Platform, i.e. Java EE 7.

The book gives a wide introduction on the Java EE Platform and its major APIs in their latest version: JPA 2.1, EJB 3.2, JSF 2.2, CDI 1.1, JMS 2.0, JAX-RS 2.0, Beans Validation 1.1, JAX-WS 2.2, etc. The book also cover 2 of the APIs introduced in Java EE 7 : the WebSocket API and JSON-P.

So if you are new to Java EE 7 or if you have been stuck on an older version the platform, reading this book will give you a good technical overview of Java EE 7, its main APIs and they works. It will give a solid overall understanding of Java EE 7 to rapidly start. You will then be able to deep more easily in the Platform and its APIs.


NB : The book samples are using GlassFish 4 but most of the content of the book is also applicable to any other Java EE 7 application server... that's the beauty of the Java EE!

Tuesday Apr 08, 2014

New book: EJB 3 in Action, Second Edition

'EJB3 in Action' is one of the reference books when it comes to this important area of Java EE. The second edition covering EJB 3.2 has just been published.

Over the years, the EJB specification has come a long way and has been greatly simplified but nevertheless EJB is still a large specification to grasp. This book is a great (and up-to-date!) introduction to the EJB Component Model. The book goes beyond just introducing EJBs in details as it also explains technologies related to EJB such as CDI and JPA (the older amongst us will remember that EJB, back in the days, used to also handle persistence). The book has also a full chapter devoted to WebSocket, a new important Java EE 7 technology. The final chapter of the book is devoted to a critical, some time over looked, topics: testing.

This is not a pure theoretical book as it really gives 2 views, it first introduce and explains EJBs but also JPA, CDI, etc. The book then explain how to use EJBs and the other technologies, how to put them in action! All in all, a great book to add to any Java EE 7 bookshelf!

Disclaimer: 'EJB 3 in Action' was co-authored by our own Reza Rahman. But to be honest, I was already praising the first edition of the book when Reza wasn't yet working for Oracle.

Tuesday Nov 19, 2013

New book: RESTful Java with JAX-RS 2.0


Bill Burke's RESTful Java with Jax-RS is a book that comes to mind when talking about JAX-RS. It is has been published by O'Reilly in its Animal Menagerie a few years ago.

Bill is a long time JBoss contributor and is also the RedHat representative in theJAX-RS 2.0 Expert Group.

O'Reilly has just published a revised edition of the book to includes the new JAX-RS 2.0 features. RESTful Java with JAX-RS 2.0 has new chapters to cover the specification important additions such as the JAX-RS 2.0 Client API, the Asynchronous Client and Server APIs, Filters and Interceptors. In addition, the new edition also covers smaller JAX-RS 2.0 updates such as ParamConverters, UriBuilder extension, etc.

JAX-RS 2.0 cover


Sunday Apr 15, 2012

Configuring JMS and Message Queues in GlassFish - Sample Chapter

PacktPub released Java EE 6 with GlassFish 3 Application Server a few months after the first version in GlassFish 3 train was released.

This book is a practical guide to install and configure the GlassFish 3 Application Server and develop and deploy Java EE 6 applications on this server. Recently they released a sample chapter on how to configure JMS and message queues in GlassFish. The chapter provide complete snapshots from the web-based admin console and working sample code.

Java EE 6 with GlassFish 3 Application Server Book

The Table of Contents shows that all major Java EE 6 APIs and the details of the GlassFish 3 server are covered followed by examples of its use. This book is a practical guide with a very user-friendly approach.

Read about other books on Java EE and GlassFish here.

Friday Mar 09, 2012

Tab Sweep - Upcoming JPA in NetBeans, JCP voting, Java EE and more....

Recent Tips and News on Java, Java EE 6, GlassFish & more :

Radio Receiver

Inside Oracle's Java Magazine (YouTube)
NetBeans JPQL and named queries support (NetBeans.org)
JSR 356 WebSocket Review Ballot results (jcp.org)
Why we vote “Yes” for JSR 331, JSR 354 and JSR 355 (London Java Community)
QCon Report - Day One (JAXenter)
JavaEE6 and the Ewoks (Developer Chronicles)
How to Create a New JSF Project (Pack Publishing)

Monday Feb 27, 2012

LE GlassFish (French GlassFish Literature)

Jérôme Lafosse's French Java EE book (Amazon, Author Interview) was published in 2011 and French developer portal developpez.com now has the GlassFish chapter freely available.

Jérôme has also written a book dedicated to GlassFish.

ALT_DESCR

In other French GlassFish literature, Antonio Goncalves' Java EE book has been translated to French.

Monday Jun 20, 2011

Yet another Java EE 6 book

We have a new Java EE 6 book in store! This one from Packt Publishing is called "Java EE 6 Development with NetBeans 7" by David Heffelfinger who is also author of Java EE 5 and GlassFish books.

This book holds a step-by-step book documention all of the Java EE 6 features and APIs (including CDI) using the IDE with the best Java EE out-of-the-box experience : NetBeans 7. It uses GlassFish as the default container and PrimeFaces as a JSF component suite.

Book Cover

We've covered several Java EE and GlassFish books before and I can't help but think that given writing books never helped authors retire early, having so many good books on Java EE 6 says something about its success among developers.

Tuesday May 10, 2011

Java EE Books, an update

It's been a while since we did the last JavaEE and GlassFish book review. A few months back, this O'Reilly post detailed the book market in 2010 asserting that "Java experienced the biggest gain in units" making it the #1 language (see graph).

In the current book industry climate it's remarkable to see a good number of new JavaEE and GlassFish books. Here are some recent ones we came across :

3rd edition of Antonio Goncalves' Java EE 5 book, updated to use GlassFish 3.0.1.

Another French book covering Java EE and GlassFish 3.1. More coverage here.

Very recent book from Adam Bien, available from Lulu.com.

Covers various JSF libraries and environment options including NetBeans/GlassFish.

Great coverage by David Heffelfinger of all Java EE technologies with GlassFish as the preferred runtime.

By Java Champion Yakov Fain. Covers Java overall with Java EE 6 section (using GlassFish).

Most of these have electronic editions. Wether you get it when buying the paper version is another story...

We're most likely missing some books here, so please feel free to comment and we'll complete the list.

Saturday Oct 09, 2010

GlassFish Tips and Links #11: CDI, EJB 3.1, Spring, HTML5, Maven, JCP, Forks...

Recent Tips and News on Java EE 6 & GlassFish:

Informational Sign

Tips

TOTD #145: CDI Events - a light-weight producer/consumer in Java EE 6
Enterprise JavaBeans 3.1 with Contexts and Dependency Injection: The Perfect Synergy
Spring to Java EE – A Migration Experience
Problem with Grails on Glassfish v3?
Web Sockets and HTML5 in Glassfish
Book Review: Java EE 6 with GlassFish 3 Application Server

Links and News

• Maven 3 has been released: Sonatype, InfoQ
• GlassFish as Best Practices in Software Development (Johan)
• TSS Thread: Moving from Spring to Java EE 6: The Age of Frameworks is Over
GlassFish jobs at Indeed.com crosses 780 Flower NFA Update (Using GlassFish)
Proposed Maven Artifact Naming and Versioning for JavaEE
• Standards are Good for You: JBoss 6 Moving Towards JavaEE 6 with M5

Conferences

Java2Days 2010; Reports: Arun, Ivan: d1 & d2, Alexis.
Hudson User meetup in Tokyo (Nov 12th)
Silicon Valley Code Camp
• eBIG SIG: JavaEE 6 = Less Code + More Power (Oct 20th)
JavaOne Brazil (Dec 7th thru 9th)

Recent Sites Seen Running on GlassFish

• HPCSense uses GlassFish - twitter
ParaFarmacia, Mas Barata - Netcraft

JCP News and Future of Java

Now OPEN -- Nominations for EC seats
• TSS Thread: The Future of Java: forking, death, or stasis
• More Forking Opinions: Sacha and Greg.
• Java.Net Poll: Free Java? Closed Java? Evolving JCP? What's the Most Likely Path?

Thursday May 06, 2010

Patterns and Samples for GlassFish from Antonio and Adam

Kenai is back after its data center move (congrats to David, Lea, et al!) so this seems a good moment to remind GlassFish users of Adam and Antonio's projects on Patterns and Samples.  Both projects are based on best-selling books, both leveraging JavaEE 6 and using GlassFish.

Java EE Patterns and Best Practices is led by Adam Bien and is based on Real World Java EE Patterns. The samples are available under GPL; the project is very popular and has 335 members.

Beginning Java EE 6 is led by Antonio Goncalves.  The samples are based on Beginning JavaEE 6 Platform with GlassFish 3 and are available under ASL2.

The JavaEE SDK includes its own set of samples (glassfish-samples).  If you know of other significant, good-quality, sets of samples for GlassFish, post them as comments with a way to reach you. More GlassFish books here.

Saturday Mar 27, 2010

More GlassFish Books - From JSF 2.0 to OSGi

Time to do an updated list of GlassFish books. I've added 16 new entries since the March Review; some are dedicated to the operation of GlassFish, some use GlassFish in all their examples, some only in most. I'm sure there are other worthy entries; add a comment if you want to submit names to the collage; I've left out books that only use GlassFish as one of the "common containers" (GlassFish, Apache Tomcat and JBoss).

You may also want to check the Amazon Listmania I created to help me track them.