▶Book Description
Java EE is one of the most popular tools for enterprise application design and development. With recent changes to Java EE 8 specifications, Java EE application development has become a lot simpler with the new specifications, some of which compete with the existing specifications. This guide provides a complete overview of developing highly performant, robust and secure enterprise applications with Java EE with Eclipse.
The book begins by exploring different Java EE technologies and how to use them (JSP, JSF, JPA, JDBC, EJB, and more), along with suitable technologies for different scenarios. You will learn how to set up the development environment for Java EE applications and understand Java EE specifications in detail, with an emphasis on examples. The book takes you through deployment of an application in Tomcat, GlassFish Servers, and also in the cloud. It goes beyond the basics and covers topics like debugging, testing, deployment, and securing your Java EE applications. You'll also get to know techniques to develop cloud-ready microservices in Java EE.
▶What You Will Learn
⦁ Set up Eclipse, Tomcat, and Glassfish servers for Java EE application development
⦁ Use JSP, Servlet, JSF, and EJBs to create a user interface and write business logic
⦁ Create Java EE database applications using JDBC and JPA
⦁ Handle asynchronous messages using MDBs for better scalability
⦁ Deploy and debug Java EE applications and create SOAP and REST web services
⦁ Write unit tests and calculate code coverage
⦁ Use Eclipse MAT (Memory Analysis Tool) to debug memory issues
⦁ Create and deploy microservices
▶Key Features
⦁ Explore the complete workflow of developing enterprise Java applications
⦁ Develop microservices with Docker Container and deploy it in cloud
⦁ Simplify Java EE application development
▶Who This Book Is For
If you are a Java developer with little or no experience in Java EE application development, or if you have experience in Java EE technology but are looking for tips to simplify and accelerate your development process, then this book is for you.
▶What this book covers
⦁ Chapter 1, Introducing JEE and Eclipse, explains in brief different technologies in JEE and where they fit in a typical multitiered JEE application. The chapter also describes installing Eclipse JEE, Tomcat, GlassFish, and MySQL, which are used to develop sample applications in later chapters.
⦁ Chapter 2, Creating a Simple JEE Web Application, describes the development of web applications using JSP, servlet, JSTL, and JSF. It also explains how to use Maven for project management.
⦁ Chapter 3, Source Control Management in Eclipse, shows how to use SVN and Git plugins of Eclipse for source code management.
⦁ Chapter 4, Creating JEE Database Applications, explains the creation of database applications using JDBC and JPA. You will learn how to execute SQL statements directly using JDBC, map Java classes to database tables, set relationships between classes using JPA, and use database connection pools.
⦁ Chapter 5, Unit Testing, describes how to write and run unit tests for Java applications, mock external dependencies in unit tests, and calculate the code coverage.
⦁ Chapter 6, Debugging the JEE Application, shows techniques for debugging JEE applications and debugging support in Eclipse.
⦁ Chapter 7, Creating JEE Applications with EJB, describes using EJBs to code business logic in the JEE applications. It also explains connecting to remote EJBs using JNDI and injecting EJBs in container-managed beans.
⦁ Chapter 8, Creating Web Applications with Spring MVC, describes the creation of web applications using Spring MVC and how some of the JEE technologies could be used in a Spring MVC application.
⦁ Chapter 9, Creating Web Services, explains the creation of SOAP-based and RESTful web services in JEE applications. You will also learn how to consume these web services from JEE applications.
⦁ Chapter 10, Asynchronous Programming with JMS, shows you how to write applications to process messages asynchronously. It describes how to program queues and topics of messaging systems using JMS and MDBs.
⦁ Chapter 11, Java CPU Profiling and Memory Tracking, describes techniques for profiling CPU and memory in the Java applications to find performance bottlenecks.
⦁ Chapter 12, Microservices, describes how to develop and deploy microservices. It also covers the deployment of microservices in Docker container.
⦁ Chapter 13, Deploying JEE Applications in the Cloud, describes how to deploy JEE applications in Amazon and Google Cloud platforms. Specifically, it describes the deployment of applications in AWS EC2, Beanstalk, Google Compute Engine, and Google App Engine. It also describes Eclipse tools that can be used for deployment to the Cloud.
⦁ Chapter 14, Securing JEE Applications, describes how to secure JEE applications using authentication and authorization features of JEE containers. It also covers some of the JEE 8 security enhancements.