Skip to content

Week 1 — Component Model (CDI 4.0) & RESTful Services (JAX-RS 3.1)

Goal: Master contextual dependency injection, interceptors, RESTful resource design, and lightweight JSON serialization.


Weekly Schedule

Day Topic Books Time Lab Focus
01 CDI 4.0 Scopes & Lifecycle EE8 AppDev Ch5 2.5h Multi-scoped bean hierarchy, CDI proxy analysis
02 Qualifiers, Producers, Interceptors & Events EE8 AppDev Ch5 + EE Patterns Ch5 2.5h @Monitored interceptor, decoupled event bus
03 JAX-RS 3.1 Fundamentals & REST Resources EE8 AppDev Ch10 + Web APIs Ch4 2.0h CRUD TelemetryResource with embedded Grizzly
04 JSON-B / JSON-P & Exception Mapping EE8 AppDev Ch6 + Ch10 2.5h RFC-7807 ExceptionMapper pipeline
05 JAX-RS Filters & Request/Response Pipelines EE8 AppDev Ch10 + Ch13 2.0h @PreMatching, @NameBinding, abortWith
06-07 Integration Milestone: JVM-Pulse Core All above 3.0h Full CDI + JAX-RS + JSON + Filters microservice

Week 1 Progression

flowchart LR
    D1["Day 01<br/>CDI Scopes<br/>@RequestScoped<br/>@ApplicationScoped<br/>@Dependent"]
    D2["Day 02<br/>@Qualifier<br/>@Produces<br/>@AroundInvoke<br/>@Observes"]
    D3["Day 03<br/>JAX-RS 3.1<br/>@Path / @GET<br/>@PathParam<br/>Response builder"]
    D4["Day 04<br/>JSON-B 3.0<br/>JSON-P 2.1<br/>ExceptionMapper<br/>RFC-7807"]
    D5["Day 05<br/>ContainerRequestFilter<br/>@PreMatching<br/>@NameBinding<br/>abortWith"]
    D6["Days 06-07<br/>JVM-Pulse Core<br/>Integration<br/>Milestone"]

    D1 --> D2 --> D3 --> D4 --> D5 --> D6

Days

  • Day 01 — CDI 4.0 Scopes, Contexts & Lifecycle


    Normal scopes vs pseudo-scopes, CDI client proxy internals, @PostConstruct/@PreDestroy, scope mismatch handling, beans.xml discovery.

    Book: EE8 AppDev, Chapter 5

    Day 01 Notes

  • Day 02 — Qualifiers, Producers, Interceptors & Events


    Custom @Qualifier annotations, @Produces factory methods, @Disposes cleanup, @AroundInvoke interceptor chains, synchronous @Observes vs async @ObservesAsync.

    Books: EE8 AppDev Ch5 + EE Patterns Ch5

    Day 02 Notes

  • Day 03 — JAX-RS 3.1 Fundamentals & REST Resource Architecture


    @Path templates, HTTP verb mapping, parameter extraction (@PathParam, @QueryParam, @HeaderParam), content negotiation, Response builder API, Richardson Maturity Model.

    Books: EE8 AppDev Ch10 + Web APIs Ch4

    Day 03 Notes

  • Day 04 — JSON-B / JSON-P & Unified Exception Handling


    @JsonbProperty, @JsonbTransient, @JsonbTypeAdapter, JSON-P DOM builder, ExceptionMapper<T>, RFC-7807 problem details standard.

    Book: EE8 AppDev Ch6 + Ch10

    Day 04 Notes

  • Day 05 — JAX-RS Filters & Request/Response Pipelines


    @PreMatching vs post-matching filters, @NameBinding selective filters, @Priority ordering, abortWith() short-circuit, ContainerResponseFilter header enrichment.

    Books: EE8 AppDev Ch10 + Ch13

    Day 05 Notes

  • Days 06-07 — Week 1 Integration Milestone


    Build the JVM-Pulse Core Microservice: production-grade CDI + JAX-RS + JSON-B + Filters service exposing live JVM telemetry via a secured REST API with RFC-7807 error responses.

    Lab Repo: 7amo10/JavaEE-Labs

    Integration Milestone


Week 1 Progress

  • Day 01: CDI 4.0 Scopes, Contexts & Lifecycle Management
  • Day 02: Qualifiers, Producers, Interceptors & Decoupled Events
  • Day 03: JAX-RS 3.1 Fundamentals & REST Resource Architecture
  • Day 04: JSON-B / JSON-P Processing & Unified Exception Handling
  • Day 05: JAX-RS Filters & Request/Response Pipelines
  • Days 06-07: JVM-Pulse Core Microservice Integration Milestone

Back to Phase 3