Instructor-led training
Building Modern Java Enterprise Apps: JPA, EJB3, & JSF Training in Carthage, Missouri
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
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Carthage, Missouri 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 TrainingPrerequisites
Course Outline
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
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.