Skip to main content

Instructor-led training

Building Modern Java Enterprise Apps: JPA, EJB3, & JSF Training in Ashtabula, Ohio

This course is intended for individuals who are Java programmers and have worked with databases and with object-oriented programming techniques, who are now ready to create more complex and advanced programs using Java SE 7.

What you'll learn

This course is intended for individuals who are Java programmers and have worked with databases and with object-oriented programming techniques, who are now ready to create more complex and advanced programs using Java SE 7.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Ashtabula, Ohio or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

Students should be skilled and experienced in using Java. They should have knowledge of database structures and terminology. Also, they should be familiar with object-oriented programming.

Course Outline

Upon successful completion of this course, students will be able to:
 
Create and manage custom classes.
Control program flow by writing code to respond to specific criteria.
Implement object-oriented programming techniques to create reusable and reliable programs.
Work with Java utility class libraries.
Use the capabilities of the Java I/O package to read and write data to external files or media.
Use collection APIs in Java to manage data.
Use generics to enforce compile-time type checking.
Use multi-threaded programs to help handle multiple tasks concurrently.
Manage Java applications for memory efficiency and create distributable versions of a Java application.
 
 
 
Enterprise Application Development
• Establishing components of an enterprise architecture
• Streamlining the development process with Java EE
 
Mapping with Java Persistence API (JPA)
 
Demystifying the JPA architecture
• Identifying the major components of JPA
• Establishing access with the EntityManager
 
Applying JPA core operations
• Persisting and retrieving entity objects
• Employing JPA to manually manage transactions
• Updating and deleting entity objects in the database
 
Handling Complex Object Relationships
 
Effectively representing object associations
• Capturing single- and multi-valued associations
• Representing Java collections
 
Choosing appropriate inheritance strategies
• Employing techniques for class-to-database mapping
• Contrasting the database schema for different inheritance strategies
 
Working with Java Persistence Query Language (JPQL)
• Selecting data with the JPQL API
• Building maintainable database access with named queries
• Avoiding SQL insertion attacks with query parameters
 
Building a Scalable and Dynamic Middle Tier with EJB
 
Implementing the business tier with EJB stateless and stateful beans
• Encapsulating scalable business logic with JavaBeans
• Accessing session beans remotely
• Managing conversation across multiple requests with stateful beans
 
Applying advanced strategies of session beans
• Adding behaviors with method interceptors
• Triggering timer-based and asynchronous services
 
Exploring other EJB types
• Managing resources with Singleton beans
• Implementing robust message receivers with MDB
 
Managing Transactions and Security with EJB
 
Applying declarative transactions with JPA
• Approaches to working with Java Transaction API (JTA)
• Managing transaction strategies with annotations
 
Securing a Java EE application
• Enforcing application security with Java EE
• Configuring authentication and authorization across the tiers
 
Generating Modern User Interfaces with JavaServer Faces (JSF)
 
JSF architecture
• Exploring the request processing cycle
• Managing application flow using JSF navigation model
 
Constructing a JSF application
• Creating views with JSF custom tags
• Handling user events with backing beans
• Taking advantage of the Unified Expression Language
 
Building views with facelets
• Arranging the UI component layout
• Localizing messages using Resource Bundles
• Achieving code reuse with templates
 
Leveraging Ajax to improve the user experience
• Sharpening response with the asynchronous web model
• Combining Ajax functionality with JSF
 
Building Responsive Websites with JavaScript Libraries
 
Exchanging information with JSON
• JSON: The format for Web 2.0
• Syntax and samples of JSON formatting
 
The responsive web
• Combining HTML formatting with JavaScript actions
• Building client-side Models, Views and Routes
 
Communicating with Java EE via REST
• Accessing a REST service with an Ajax call
• Generating a JSON response on the server side
 
Examining a Complete Application
• Creating an example list-detail application
• Tailoring the sample application to make it your own

What makes this material hard to master

The course covers a full enterprise stack in four days: persistence, a business tier, a web tier, and a JSON/REST client layer. Each layer has its own lifecycle rules, and most defects come from how the layers interact.

  • Persistence is not just SQL. The JPA modules cover the EntityManager, persisting, updating and deleting entities, mapping single- and multi-valued associations, and choosing an inheritance strategy. Each inheritance strategy produces a different database schema. The mapping choice also affects which queries are practical later.
  • Transactions are handled in two ways. You first manage transactions manually with JPA, then move to declarative transactions with JTA and annotations. A common misconception is that the container handles transaction boundaries without any design decisions on your part.
  • EJB types differ in state and concurrency. Stateless and stateful session beans, singleton beans, message-driven beans, interceptors, timers and asynchronous calls each have different rules. Stateful beans hold a conversation across requests, and singletons are shared, so both need care.
  • JSF has its own request cycle. You study the request processing cycle, navigation, backing beans, the Unified Expression Language, facelets templates, resource bundles and Ajax. Many bugs come from not knowing which phase of the cycle is running.
  • The client layer adds a second programming model. JSON, client-side models, views and routes, and REST calls from Ajax to a Java EE endpoint run in the browser, not in the container.

The syllabus objectives also include core Java topics: collections, generics, I/O, multithreading and memory management. The enterprise modules depend on all of them.

Who it suits and what to take around it

The stated prerequisites are solid Java experience, familiarity with database structures and terminology, and object-oriented programming knowledge. The description targets Java SE 7, which is out of support. The course therefore fits teams that build, maintain or migrate existing Java EE applications on that stack. Organizations on newer Java releases can request a training proposal for private training tailored to the versions they use.

If persistence and EJB are your main concern, Fast Track to EJB 3.2 (JEE 7 level) and JPA2 gives those subjects a full five days. For deeper facelets and component work, Fast Track to JavaServer Faces 2 is a natural follow-up. This course ends with JSON and REST access to Java EE. A good next step for service design is Developing RESTful Services Using Java. More options are in the Java Programming courses and learning guide.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Order management with several product types. A team might map a product hierarchy using one of the JPA inheritance strategies. It would then expose lookups as JPQL named queries with query parameters, which avoids building SQL by string concatenation.
  • Back-office processing. A team might use a stateless session bean for business logic with declarative transactions. A timer-based service could run periodic work, and a message-driven bean could receive messages from another system. Authentication and authorization would be configured across the tiers.
  • A list-detail application. A team might build JSF facelets views with templates and resource bundles for localized messages. It could then add a REST endpoint that returns JSON, so a client-side view can load detail records through an Ajax call.

AI coding assistants for this stack

Where they help. AI coding assistants can draft entity classes, named queries, session bean skeletons, facelets templates and JSON handling code. They can also explain unfamiliar annotations and suggest unit tests.

Where they fail.

  • They may produce code for a different Java or Java EE version than the project uses. Examples are language features newer than Java SE 7 and package names or APIs from another release.
  • They can build JPQL or SQL by concatenating strings, which defeats the injection protection that query parameters give.
  • They often get transaction boundaries wrong, including which bean method starts a transaction and what happens on exceptions.
  • They may treat singleton or stateful beans as safe for shared use without considering concurrent access.
  • They can place security checks in the UI layer only.

How to verify. Compile and run against the project's actual Java and server versions. Inspect the SQL that persistence operations generate. Test queries with hostile input, and check that security restrictions hold when a request bypasses the UI. Review every concurrency-sensitive bean by hand.

Frequently asked questions

What level is this course?

It is a general-level course for working Java developers. It moves from Java fundamentals into JPA, EJB, JSF and a JSON/REST client layer.

What should I know beforehand?

The prerequisites are skilled, experienced use of Java, knowledge of database structures and terminology, and familiarity with object-oriented programming.

What does the syllabus cover?

It covers JPA mapping and core operations, associations and inheritance strategies, and JPQL. On the EJB side it covers session, singleton and message-driven beans, interceptors, timers, asynchronous services, transactions and security. For the web tier it covers JSF with facelets and Ajax, followed by JSON, client-side views and routes, and REST access to Java EE. It finishes with a complete list-detail application.

Can this be delivered privately, onsite or online?

Yes. HSG delivers private training for organizations at the client's location or live online.

Can the content be customized, including for newer Java versions?

Private courses can be tailored to the technology versions an organization uses, including current releases. This course's description targets Java SE 7, which is out of support. You can request a training proposal to discuss your environment.

Training locations

Building Modern Java Enterprise Apps: JPA, EJB3, & JSF training across the U.S. and beyond.

We provide private Building Modern Java Enterprise Apps: JPA, EJB3, & JSF training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Building Modern Java Enterprise Apps: JPA, EJB3, & JSF training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.