EJB 3.1 Cookbook

Enterprise Java Beans enable rapid and simplified development of secure and portable applications based on Java technology.Creating and using EJBs can be challenging and rewarding. Among the challenges are learning the EJB technology itself, learning how to use the development environment you have chosen for EJB development, and the testing of the EJBs.

This EJB 3.1 Cookbook addresses all these challenges and covers new 3.1 features, along with explanations of useful retained features from earlier versions. It brings the reader quickly up to speed on how to use EJB 3.1 techniques through the use of step-by-step examples without the need to use multiple incompatible resources. The coverage is concise and to the point, and is organized to allow you to quickly find and learn those features of interest to you.

The book starts with coverage of EJB clients. The reader can choose the chapters and recipes which best address his or her specific needs. The newer EJB technologies presented include singleton beans which support application wide needs and interceptors to permit processing before and after a target method is invoked. Asynchronous invocation of methods and enhancements to the timer service are also covered.

The EJB 3.1 CookBook is a very straightforward and rewarding source of techniques supporting Java EE applications.

What you will learn from this book :

  • Create and use the different types of EJBs along with the use of the optional session bean business interface
  • Create a singleton session bean for application-wide use
  • Use declarative and programmatic techniques for security, timer services, and transaction processing
  • Use asynchronous session beans to complement message driven beans
  • Support aspect oriented features such as logging and data validation using interceptors
  • Use EJBs in support of message based applications
  • Master the use of deployment descriptors and improved packaging options
  • Use EJBs outside of the Java EE environment using the embeddable container

Each recipe comprises step-by-step instructions followed by an analysis of what was done in each task and other useful information. The book is designed so that you can read it chapter by chapter, or look at the list of recipes and refer to them in no particular order. It is packed with useful screenshots to make your learning even easier.

Who this book is written for
The book is aimed at Java EE and EJB developers and programmers. Readers should be familiar with the use of servlets in the construction of a web application. A working knowledge of XML is also desirable.

Book Details

  • Paperback: 436 pages
  • Publisher: Packt Publishing (June 2011)
  • Language: English
  • ISBN-10: 1849682380
  • ISBN-13: 978-1849682381
Download [18.5 MiB]

You may also like...

No Responses

  1. niv says:


  2. cram52 says:

    After reading this book I can say that the book provides what the author says at the preface: how to use both the EJB and its development environment, and EJB testing as well.

    Moreover, the methodology that the author uses, allows a clear way of understanding these topics, because the explanation is structured in a good manner, with simple examples or recipes as the author calls it, discussing it with additional comments, so, it is easy to understand the concepts through executing these recipes. I think that in this way, the book riches its objective to be a cookbook.

    The recipe examples are developed in a step – by – step manner, and don’t have extra code, so the code is very clear and clean, without misunderstanding the topics that are explained. In this way, it is possible to focus solely on the concepts.

    In general, it is possible to choose each chapter almost in any order as we need them. Of course, it is necessary to have previous knowledge about Java and others topics like Web Service, Servlets and JSP in order to take advantage of this book.

    Finally, I think that this book can be used both by beginners and experts: For beginners, through the recipes, to gain a global knowledge aspect on, in a fast way; for experts, to have it on hand for getting any help on these topics.

    So, I strongly recommend this book.

Leave a Reply