Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Developing Middleware in Java EE 8

You're reading from   Developing Middleware in Java EE 8 Build robust middleware solutions using the latest technologies and trends

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781788391078
Length 252 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Abdalla Mahmoud Abdalla Mahmoud
Author Profile Icon Abdalla Mahmoud
Abdalla Mahmoud
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Delving into Java EE 8 FREE CHAPTER 2. Dependency Injection Using CDI 2.0 3. Accessing the Database with JPA 2.1 4. Validating Data with Bean Validation 2.0 5. Exposing Web Services with JAX-RS 2.1 6. Manipulating JSON with JSON-B 1.0 7. Communicating with Different Systems with JMS 2.0 8. Sending Mails with JavaMail 1.6 9. Securing an Application with Java Security 1.0 10. Making Interactive Applications with WebSockets 1.1 11. Other Books You May Enjoy

What is Java EE?

Java EE is a very popular platform for building enterprise solutions in the Java programming language. For many years, it has reached the top of the list of the most important enterprise application development platforms, with success in nearly all aspects of enterprise application development.

Java EE provides application developers with the following:

  • Application Server: A fully-featured middleware with all of the functionalities required to build enterprise applications
  • Java EE APIs: A set of APIs covering the common functionalities required by application developers to implement their enterprise solutions

Our role, as application developers and architects, is to design our solution as a set of components. Those components will use the Java EE APIs.

Enterprise applications

For me, enterprise applications was always a buzzy term. If we substituted enterprise with the word business, it would become business applications, which is, in fact, misleading and a far cry from the true meaning of the term.

The term enterprise applications refer to the type of applications that are used by a group of users. These types of applications include nearly everything around us—social networks, business applications, productivity applications, gaming, chatting, and so on. If we conduct a simple analysis of the commonalities between all of them, we will find that some of their common characteristics include:

  • The applications are used by a group of users, with different levels of authority over the provided functionalities
  • The applications require special scaling and resource management techniques to be applied in order to be able to handle heavy loads when the application gets more active users or more data
  • The application should run on a robust environment, robust enough to provide near 100% system availability
  • The applications manage an operational database, with hundreds or thousands of operations performed each second, while keeping our data consistent and responsive

Java EE is you a platform that fulfills all of the aforementioned requirements, and more, with declarative and easy-to-use methodologies. Rather than investing time and effort into those non-functional requirements, you'll build your applications above a middleware software, providing you with a ready-to-use implementation for all required services, leaving you free to focus on your business logic.

Java EE architecture

The Java EE platform follows the four-tier architecture, the tiers being as follows:

  • EIS tier: This is the enterprise information system (EIS) tier, where we store and retrieve all of our business data. Usually, it's a relational database system that's accessed using the Java Persistence API through our business tier, as will be discussed in detail in this book.
  • Business tier: The business tier is responsible for managing business components that expose functionalities to other modules or separate systems. Enterprise JavaBeans, messaging, and other services are maintained in this tier, which will be discussed in detail in this book.
  • Web tier: The web tier is where your web components/pages live. Although the Java's EE web profile is out of the scope of this book, we've used the web tier in many examples as well as in this chapter; therefore, basic knowledge about Servlets and JSP is essential.
  • Client tier: Either a thin client (web browser) or a thick one (another Java application) that consumes the services we provide in our enterprise middleware solution.

Note that, in this book, we'll be focusing more on the EIS and business tier parts of an enterprise middleware solution, the web part being out of the scope of this book.

You have been reading a chapter from
Developing Middleware in Java EE 8
Published in: Jun 2018
Publisher: Packt
ISBN-13: 9781788391078
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime