Book description
Develop and deploy fully functional applications and microservices utilising Tomcat, Glassfish servers, Cloud and docker in Java EE 8
About This Book- Explore the complete workflow of developing enterprise Java applications
- Develop microservices with Docker Container and deploy it in cloud
- Simplify Java EE application development
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 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
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.
Style and approachThis guide takes a step-by-step approach to developing, testing, debugging, and troubleshooting Java EE applications, complete with examples and tips.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Introducing JEE and Eclipse
- Creating a Simple JEE Web Application
- Source Control Management in Eclipse
-
Creating JEE Database Applications
- Creating database schema
-
Creating a database application using JDBC
- Creating a project and setting up Maven dependencies
- Creating JavaBeans for data storage
- Creating JSP to add a course
- JDBC concepts
- Using a JDBC database connection pool
- Saving courses in database tables using JDBC
- Getting courses from database tables using JDBC
- Completing add course functionality
- Using Eclipse Data Source Explorer
-
Creating database applications using JPA
- Creating user interfaces for adding courses using JSF
- JPA concepts
- Creating a JPA application
- Creating a new MySQL schema
- Setting up a Maven dependency for JPA
- Converting a project into a JPA project
- Creating entities
- Configuring entity relationships
- Creating database tables from entities
- Using JPA APIs to manage data
- Wiring user interface with JPA service classes
- Summary
- Unit Testing
- Debugging the JEE Application
- Creating JEE Applications with EJB
- Creating Web Applications with Spring MVC
-
Creating Web Services
- What is a web service?
- JAXB
- JSON-B
-
RESTful web services
- Creating RESTful web services using Jersey
- Implementing a REST GET request
- Testing the REST GET request in the browser
- Creating a Java client for the REST GET web service
- Implementing a REST POST request
- Writing a Java client for the REST POST web service
- Invoking a POST RESTful web service from JavaScript
- Creating a RESTful web service with form POST
- Creating a Java client for a form-encoded RESTful web service
- A RESTful web service using JSON-B
-
SOAP web services
- SOAP
- WSDL
- UDDI
-
Developing web services in Java
- Creating a web service implementation class
- Using JAX-WS reference implementation (Glassfish Metro)
- Inspecting WSDL
- Implementing a web service using an interface
- Consuming a web service using JAX-WS
- Specifying an argument name in a web service operation
- Inspecting SOAP messages
- Handling interfaces in RPC-style web services
- Handling exceptions
- Summary
- Asynchronous Programming with JMS
- Java CPU Profiling and Memory Tracking
- Microservices
-
Deploying JEE Applications in the Cloud
- Deploying in the cloud
- Deploying in AWS Cloud
- Deploying in Google Cloud
- Summary
- Securing JEE Applications
- Other Books You May Enjoy
Product information
- Title: Java EE 8 Development with Eclipse
- Author(s):
- Release date: June 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788833776
You might also like
book
Java EE 8 Application Development
Develop Enterprise Java applications compliant with the latest version of the Java EE specification About This …
book
The Definitive Guide to JSF in Java EE 8: Building Web Applications with JavaServer Faces
Learn and master the new features in the JSF 2.3 MVC web framework in this definitive …
book
Java EE 8 Cookbook
A practical guide for building effective enterprise solutions with Java EE 8 About This Book Recipes …
book
Java EE 7: The Big Picture
The Definitive Guide to Java Platform, Enterprise Edition 7 Java EE 7: The Big Picture uniquely …