Skip to content

helix-cortex — Enterprise Jakarta EE Platform

Phase: Phase 3 — Enterprise Java (Jakarta EE 10)

Repo: 7amo10/helix-cortex

Docs: helix-jvm-engine.io/docs/helix-cortex

Stack: Jakarta EE 10 · WildFly 31 · PostgreSQL 16 · HikariCP · helix-jvm-engine · OW2 ASM · Docker Compose

Build: passing Jakarta EE 10 WildFly 31 PostgreSQL 16


The Problem

The helix-jvm-engine solved the problem of dynamic rule execution at near-native JVM speeds. But it remained a local, embedded library — powerful, but inaccessible to distributed teams, cloud clients, or any system that could not embed a JVM agent directly. The gap was clear:

Missing Capability Impact Without It
No REST API Clients must embed helix as a Maven dependency and manage class isolation themselves
No authentication layer Any process on the same host can invoke rule execution with zero identity enforcement
No persistence Every rule compilation is ephemeral — no audit trail, no opcode analytics, no session history
No async bytecode inspection JAR analysis blocks the calling thread, making it unusable for large archives over HTTP
No live telemetry JVM metrics are locked inside MXBeans — no streaming interface for remote observers
No multi-role access control A single developer identity for all operations — no separation between ENGINEER and ADMIN concerns

Beyond the integration gap, there was a second problem: how to validate that seven weeks of Jakarta EE 10 study actually translate into production-quality software. A comprehensive capstone project was needed — one that exercises every major Jakarta EE API across CDI, JAX-RS, JPA, JTA, Jakarta Security, SSE, and managed concurrency in a single coherent system.


The Solution — helix-cortex

helix-cortex is a cloud-native enterprise microservice that wraps helix-jvm-engine as a compiled Maven dependency and exposes its capabilities through a fully secured, persistence-backed, real-time REST API. It is simultaneously the capstone project for Phase 3 — a system where every class demonstrates a Jakarta EE 10 concept learned in the roadmap.

flowchart TD
    subgraph CLIENT["Client Layer"]
        PM["Postman / curl<br/>HTTP REST + JWT Bearer"]
        ES["EventSource<br/>SSE text/event-stream"]
    end

    subgraph CORTEX["helix-cortex (WildFly 31 / Jakarta EE 10)"]
        subgraph BOUNDARY["Boundary Layer — JAX-RS 3.1"]
            FILTER["@Secured JwtSecurityFilter<br/>HMAC-SHA256 verify<br/>401 / 403 enforcement"]
            AUTH["AuthResource<br/>POST /auth/login<br/>POST /auth/register"]
            RULE["RuleResource<br/>POST /rules/compile<br/>POST /rules/execute/{id}"]
            JAR["JarAnalysisResource<br/>POST /jars/analyze (multipart)<br/>GET /jars/sessions/{id}"]
            TEL["TelemetryResource<br/>GET /telemetry/stream (SSE)<br/>GET /telemetry/snapshot"]
        end

        subgraph CONTROL["Control Layer — CDI 4.0"]
            TOK["TokenService<br/>HMAC-SHA256 JWT<br/>javax.crypto.Mac"]
            RSC["RuleSessionControl<br/>helix RuleEngine bridge<br/>@Transactional(MANDATORY)"]
            JAC["JarAnalysisControl<br/>ManagedExecutorService<br/>ASM OpcodeCountingVisitor"]
            TEC["TelemetryControl<br/>JVM MXBeans sampler<br/>SseBroadcaster fan-out"]
            OBS["AntipatternObserver<br/>@ObservesAsync<br/>CDI event handler"]
        end

        subgraph ENTITY["Entity Layer — JPA 3.1 + JTA"]
            US["EngineerAccount<br/>PBKDF2 password hash<br/>@Version lock"]
            RS["RuleSession @Cacheable<br/>helix compiledRuleId<br/>@BatchSize metrics"]
            OM["OpcodeMetric<br/>executionTimeNanos<br/>antipatternFlag"]
            JA["JarAnalysis<br/>dependencyGraphJson<br/>classCount / totalOpcodes"]
            AL["AuditLog @Cacheable(false)<br/>engineerId / endpoint<br/>@Asynchronous write"]
        end
    end

    subgraph HELIX["helix-jvm-engine (local Maven dep)"]
        RE["RuleEngine<br/>compile() / execute()<br/>executeAsync()"]
        PR["Profiler<br/>addListener() / recordEvent()<br/>getRecordedEvents()"]
        MX["JVM MXBeans<br/>MemoryMXBean (heap)<br/>GarbageCollectorMXBeans<br/>ThreadMXBean"]
    end

    subgraph INFRA["Infrastructure"]
        PG[("PostgreSQL 16<br/>HikariCP pool<br/>maximumPoolSize=16")]
    end

    PM --> FILTER
    ES --> TEL

    FILTER --> AUTH
    FILTER --> RULE
    FILTER --> JAR
    FILTER --> TEL

    AUTH --> TOK
    RULE --> RSC
    JAR --> JAC
    TEL --> TEC

    RSC --> RE
    JAC --> RE
    JAC --> OBS
    TEC --> MX
    TEC --> PR

    RSC --> RS
    RSC --> OM
    JAC --> JA
    AUTH --> US
    FILTER --> AL

    RS --> PG
    OM --> PG
    JA --> PG
    US --> PG
    AL --> PG

The name helix-cortex reflects the relationship precisely: the cerebral cortex is the brain's outer intelligent processing layer — it wraps the inner core structures and makes their raw signals accessible to the outside world. helix-jvm-engine is the inner core; helix-cortex is the enterprise cortex that exposes it.


Internal Architecture

BCE Package Structure

helix-cortex applies the Boundary-Control-Entity pattern from Adam Bien's Real World Java EE Patterns. Every class belongs to exactly one layer with strict dependency rules:

flowchart LR
    BOUNDARY["Boundary<br/>com.pulse.boundary<br/>JAX-RS resources + filters<br/>Only public API entry points<br/>Owns HTTP protocol semantics"]
    CONTROL["Control<br/>com.pulse.control<br/>CDI application logic<br/>helix engine wiring<br/>Event firing and handling"]
    ENTITY["Entity<br/>com.pulse.entity<br/>JPA entities + enums<br/>No business logic<br/>Pure persistence model"]

    BOUNDARY --> CONTROL
    CONTROL --> ENTITY
    BOUNDARY -.->|"Never direct"| ENTITY

    style BOUNDARY fill:#3d59a1,color:#fff
    style CONTROL fill:#4a6fa5,color:#fff
    style ENTITY fill:#4caf7c,color:#fff

Dependency rule: Boundary calls Control. Control reads Entity. Boundary never accesses Entity directly. This enforces testability — every control bean is injected, not instantiated.

End-to-End Request Flow

flowchart TD
    HTTP["Incoming HTTP Request<br/>with Bearer JWT"]

    PREMATCH["@PreMatching Filter<br/>Correlation ID assignment"]
    FILTER["JwtSecurityFilter (@Secured)<br/>TokenService.verify()<br/>SecurityContext injection"]

    AUTH_CHOICE{{"Endpoint?"}}

    AUTH_PATH["AuthResource<br/>Public — no @Secured<br/>PBKDF2 credential check<br/>TokenService.issue()"]

    RULE_PATH["RuleResource<br/>@RolesAllowed ENGINEER/ADMIN<br/>RuleSessionControl.compileAndSave()"]

    JAR_PATH["JarAnalysisResource<br/>@RolesAllowed ENGINEER/ADMIN<br/>JarAnalysisControl.submitAsync()<br/>returns 202 immediately"]

    TEL_PATH["TelemetryResource<br/>@RolesAllowed ADMIN<br/>TelemetryControl.registerSink()<br/>SseBroadcaster.broadcast()"]

    HELIX_CALL["helix-jvm-engine<br/>RuleEngine.compile() / execute()<br/>ExecutionResult.getExecutionTimeNanos()"]

    JPA_WRITE["JPA 3.1 + JTA<br/>EntityManager.persist()<br/>@Version optimistic lock"]

    AUDIT["AuditLog<br/>@Asynchronous write<br/>own TX via REQUIRES_NEW"]

    RESP["HTTP Response<br/>application/json<br/>or text/event-stream"]

    HTTP --> PREMATCH --> FILTER

    FILTER --> AUTH_CHOICE
    AUTH_CHOICE -->|"/auth/**"| AUTH_PATH
    AUTH_CHOICE -->|"/rules/**"| RULE_PATH
    AUTH_CHOICE -->|"/jars/**"| JAR_PATH
    AUTH_CHOICE -->|"/telemetry/**"| TEL_PATH

    RULE_PATH --> HELIX_CALL --> JPA_WRITE
    JAR_PATH --> JPA_WRITE
    HELIX_CALL --> AUDIT

    JPA_WRITE --> RESP
    AUTH_PATH --> RESP
    TEL_PATH --> RESP

Core Subsystems Deep Dive

1. JWT Authentication — Manual HMAC-SHA256

Rather than adding a JWT library dependency, helix-cortex implements JWT issuance and verification using only the JDK's built-in javax.crypto.Mac — exactly the approach taught in Week 2 Day 12-14 labs:

flowchart LR
    subgraph ISSUE["Token Issuance"]
        H["Base64url(header)<br/>{alg: HS256, typ: JWT}"]
        P["Base64url(payload)<br/>{sub, role, iat, exp}"]
        SIG["HMAC-SHA256(H.P, secret)<br/>javax.crypto.Mac"]
        JWT_OUT["header.payload.signature"]

        H --> JWT_OUT
        P --> JWT_OUT
        SIG --> JWT_OUT
    end

    subgraph VERIFY["Token Verification"]
        SPLIT["Split on '.'<br/>3 parts required"]
        RECOMPUTE["Recompute HMAC<br/>parts[0] + '.' + parts[1]"]
        COMPARE["MessageDigest.isEqual()<br/>constant-time comparison"]
        DECODE["Decode claims<br/>check exp < Instant.now()"]

        SPLIT --> RECOMPUTE --> COMPARE --> DECODE
    end

    style ISSUE fill:#3d59a1,color:#fff
    style VERIFY fill:#4caf7c,color:#fff

MessageDigest.isEqual() is critical: a naive String.equals() comparison leaks timing information — an attacker can forge a valid signature bit by bit by measuring response time. isEqual() takes constant time regardless of how many bytes match.

2. helix-jvm-engine Integration via CDI Producer

The HelixProducer class bridges the SE-world helix API into the EE container lifecycle using @Produces:

flowchart TD
    HELIX_JAR["com.helix:engine-core:1.0.0-SNAPSHOT<br/>(local Maven repository)"]

    PRODUCER["HelixProducer @ApplicationScoped<br/>@Produces @ApplicationScoped<br/>RuleEngine produceRuleEngine()<br/>Profiler produceProfiler()"]

    RSC["RuleSessionControl<br/>@Inject RuleEngine ruleEngine"]
    JAC["JarAnalysisControl<br/>@Inject RuleEngine ruleEngine"]
    TEC["TelemetryControl<br/>@Inject Profiler profiler"]

    DISPOSE["@Disposes void disposeProfiler()<br/>profiler.stop()"]

    HELIX_JAR --> PRODUCER
    PRODUCER -->|CDI lifecycle| RSC
    PRODUCER -->|CDI lifecycle| JAC
    PRODUCER -->|CDI lifecycle| TEC
    PRODUCER -->|Application shutdown| DISPOSE

This means zero Spring-style XML wiring and zero reflection-based factory calls. The container manages the singleton lifecycle, and @Disposes guarantees the profiler's background thread is stopped cleanly on application undeploy.

helix API surface used by helix-cortex:

helix Class Used In Purpose
RuleEngine.compile(Rule) RuleSessionControl.compileAndSave() Compile JSON rule → bytecode via ByteBuddy/ASM
RuleEngine.execute(CompiledRule, ExecutionContext) RuleSessionControl.executeAndSave() Execute rule, get ExecutionResult
RuleEngine.executeAsync() JarAnalysisControl Parallel per-class analysis
ExecutionResult.getExecutionTimeNanos() OpcodeMetric.executionTimeNanos Store nanosecond execution cost
ExecutionContext.setVariable() Maps from ExecutionRequest.variables Feed runtime inputs to rule
Profiler.addListener(ProfileEventListener) TelemetryControl Subscribe to profiler events for SSE fan-out
ProfileEvent.timestamp() SSE event id: field Correlate SSE events to profiler timeline

3. JPA Entity Model with Optimistic Locking

erDiagram
    ENGINEER_ACCOUNT {
        bigint id PK
        varchar username UK
        varchar password_hash
        varchar role
        bigint version
        timestamp created_at
    }

    RULE_SESSION {
        bigint id PK
        varchar engineer_id FK
        text rule_json
        varchar compiled_rule_id
        varchar status
        bigint version
        timestamp created_at
    }

    OPCODE_METRIC {
        bigint id PK
        bigint session_id FK
        long total_opcode_count
        long execution_time_nanos
        boolean antipattern_flag
        timestamp evaluated_at
    }

    JAR_ANALYSIS {
        bigint id PK
        varchar engineer_id
        varchar filename
        int class_count
        long total_opcodes
        int antipattern_count
        text dependency_graph_json
        varchar status
        bigint version
        timestamp submitted_at
    }

    ANALYSIS_CLASS_METRIC {
        bigint id PK
        bigint jar_analysis_id FK
        varchar class_name
        int opcode_count
        boolean has_antipattern
    }

    AUDIT_LOG {
        bigint id PK
        varchar engineer_id
        varchar endpoint
        varchar http_method
        boolean success
        timestamp timestamp
    }

    ENGINEER_ACCOUNT ||--o{ RULE_SESSION : "creates"
    RULE_SESSION ||--o{ OPCODE_METRIC : "contains"
    JAR_ANALYSIS ||--o{ ANALYSIS_CLASS_METRIC : "contains"

Key JPA design decisions:

Decision Annotation Reason
Optimistic locking on RuleSession @Version Long version Prevents two concurrent executions from corrupting session status
L2 cache on RuleSession @Cacheable(true) Sessions are read-heavy for ADMIN dashboard analytics
No L2 cache on AuditLog @Cacheable(false) Write-heavy, must always reflect real state
N+1 prevention on session list JOIN FETCH s.metrics + EntityGraph Hibernate statistics verify single SQL per list call
@BatchSize(size=10) on metrics @BatchSize Fallback batching when EntityGraph is not applied

4. Async JAR Analysis — ManagedExecutorService + ASM

Uploading a JAR file triggers a non-blocking 202 Accepted immediately. The real work happens on a Jakarta EE managed thread:

flowchart TD
    HTTP_POST["POST /api/v1/jars/analyze<br/>multipart/form-data<br/>JAR file stream"]

    SUBMIT["JarAnalysisControl.submitAsync()<br/>persist JarAnalysis status=PENDING<br/>CompletableFuture.supplyAsync(executor)"]

    RESP_202["202 Accepted<br/>Location: /jars/sessions/{id}"]

    MANAGED["ManagedExecutorService<br/>Jakarta EE container-managed thread<br/>transaction-aware, security-propagated"]

    JAR_ITER["JarInputStream iteration<br/>skip non-.class entries<br/>readAllBytes() per class"]

    ASM["OpcodeCountingVisitor extends ClassVisitor<br/>ASM 9.5 ClassReader<br/>count instructions per method"]

    ANTIPATTERN{{"Antipattern<br/>detected?"}}

    CDI_FIRE["antipatternBus.fireAsync()<br/>RuleAntipatternEvent<br/>CDI async event bus"]

    OBSERVER["AntipatternObserver<br/>@ObservesAsync<br/>logs alert + writes AuditLog"]

    JPA_UPDATE["Update JarAnalysis<br/>status = COMPLETED<br/>persist AnalysisClassMetric children"]

    POLL["Client polls<br/>GET /jars/sessions/{id}<br/>until status = COMPLETED"]

    HTTP_POST --> SUBMIT --> RESP_202
    SUBMIT --> MANAGED
    MANAGED --> JAR_ITER --> ASM --> ANTIPATTERN
    ANTIPATTERN -->|"Yes"| CDI_FIRE --> OBSERVER
    ANTIPATTERN -->|"No"| JPA_UPDATE
    OBSERVER --> JPA_UPDATE
    JPA_UPDATE --> POLL

Three antipattern detectors (OW2 ASM):

Antipattern Detection Heuristic Performance Impact
STRING_CONCAT_LOOP > 20 INVOKEVIRTUAL StringBuilder.append per class Excessive heap allocation from implicit new StringBuilder() per iteration
EXCESSIVE_OBJECT_CREATION > 50 NEW opcodes per class GC pressure from short-lived object storms
REDUNDANT_INSTANCEOF > 10 consecutive INSTANCEOF opcodes Type-check overhead; pattern-matching or sealed types preferred

5. Live JVM Telemetry via Server-Sent Events

flowchart LR
    subgraph MX["JVM MXBeans (JDK built-in)"]
        MEM["MemoryMXBean<br/>heapUsedBytes<br/>heapMaxBytes"]
        GC["GarbageCollectorMXBeans<br/>gcCollectionCount<br/>gcCollectionTimeMs"]
        THR["ThreadMXBean<br/>threadCount<br/>daemonThreadCount"]
        RT["RuntimeMXBean<br/>uptimeMs"]
    end

    subgraph CONTROL["TelemetryControl @ApplicationScoped"]
        SCHED["ManagedExecutorService<br/>scheduleAtFixedRate(1s)"]
        SNAP["currentSnapshot()<br/>reads all 4 MXBeans<br/>builds JvmTelemetrySnapshot"]
        BROAD["SseBroadcaster.broadcast()<br/>OutboundSseEvent<br/>name=jvm-telemetry"]
    end

    subgraph CLIENTS["Connected ADMIN Clients"]
        C1["curl -N EventSource"]
        C2["Browser EventSource"]
        C3["Postman SSE monitor"]
    end

    MEM --> SNAP
    GC --> SNAP
    THR --> SNAP
    RT --> SNAP
    SCHED --> SNAP --> BROAD
    BROAD --> C1
    BROAD --> C2
    BROAD --> C3

SSE event format (delivered every ~1 second):

event: jvm-telemetry
id: 1727257183000
data: {
  "heapUsedBytes": 134217728,
  "heapMaxBytes": 536870912,
  "heapUsedPercent": 25.0,
  "gcCollectionCount": 14,
  "gcCollectionTimeMs": 87,
  "threadCount": 42,
  "daemonThreadCount": 38,
  "uptimeMs": 153600,
  "sampledAt": "2026-09-25T10:49:43Z"
}

The SseBroadcaster handles all clients simultaneously and automatically removes disconnected sinks via the onClose handler — no polling, no connection tracking needed.


REST API Reference

Method Path Auth Role Description
POST /api/v1/auth/login None Public Issue JWT (HMAC-SHA256)
POST /api/v1/auth/register None Public Register ENGINEER account (PBKDF2)
POST /api/v1/rules/compile JWT ENGINEER, ADMIN Compile JSON rule via helix ByteBuddy/ASM
POST /api/v1/rules/execute/{id} JWT ENGINEER, ADMIN Execute compiled rule with variable map
GET /api/v1/rules/sessions JWT ADMIN only All sessions (JOIN FETCH, 1 SQL)
GET /api/v1/rules/sessions/mine JWT ENGINEER, ADMIN Own sessions by engineer id
GET /api/v1/rules/sessions/high-density JWT ADMIN only Criteria API: sessions with totalOpcodeCount > ?threshold
POST /api/v1/jars/analyze JWT ENGINEER, ADMIN Upload JAR → async analysis (202 + Location)
GET /api/v1/jars/sessions/{id} JWT ENGINEER, ADMIN Poll analysis status (PENDING / COMPLETED / FAILED)
GET /api/v1/jars/sessions JWT ADMIN only All JAR analyses
GET /api/v1/telemetry/stream JWT ADMIN only Live SSE — JVM MXBeans every 1 second
GET /api/v1/telemetry/snapshot JWT ADMIN only One-shot JVM metrics snapshot
DELETE /api/v1/admin/cache/flush JWT ADMIN only Evict all L2 cache entries

Error format: All 4xx/5xx responses use application/problem+json (RFC 7807):

{
  "status": 403,
  "title": "Forbidden",
  "detail": "Role ENGINEER is not permitted to access GET /api/v1/rules/sessions"
}

Jakarta EE Concepts Applied

This project is the applied capstone for all three weeks of Phase 3 study:

Phase 3 Topic Applied in helix-cortex
CDI 4.0 Scopes & Lifecycle @ApplicationScoped for TelemetryControl, RuleSessionControl, HelixProducer; @Dependent for DTOs
CDI Qualifiers & Producers @Produces @ApplicationScoped RuleEngine in HelixProducer; @Disposes on Profiler shutdown
CDI Interceptors @Monitored interceptor on critical control methods for timing
CDI Events & @ObservesAsync antipatternBus.fireAsync(RuleAntipatternEvent) in JarAnalysisControl; @ObservesAsync in AntipatternObserver
JAX-RS 3.1 Resources All 4 resource classes; @PathParam, @QueryParam, @FormDataParam, @Context SecurityContext
JAX-RS Filters & @NameBinding @Secured custom @NameBinding; JwtSecurityFilter @Priority(AUTHENTICATION)
JAX-RS SSE @Produces(SERVER_SENT_EVENTS), SseEventSink, SseBroadcaster, OutboundSseEvent
JSON-B JvmTelemetrySnapshot record serialized to SSE data; LoginResponse, ProblemDetail
ExceptionMapper & RFC 7807 GlobalExceptionMapper maps RuleCompilationException, OptimisticLockException, EntityNotFoundException
JPA 3.1 Entity Mapping 6 entities; @OneToMany, @ManyToOne, @Enumerated, @Index, @Cacheable
JPA Optimistic Locking @Version Long version on RuleSession, JarAnalysis, EngineerAccount
JPA Criteria API findHighOpcodeDensitySessions(threshold) — type-safe join + predicate + order
JPA EntityGraph & N+1 jakarta.persistence.fetchgraph hint on findAll() — verified via Hibernate statistics
JPA L2 Cache shared-cache-mode=ENABLE_SELECTIVE; @Cacheable(true) on RuleSession
JTA Transactions @Transactional(TxType.MANDATORY) on RuleSessionControl; REQUIRES_NEW on audit writes
Jakarta Security 3.0 Pbkdf2PasswordHash for EngineerAccount.passwordHash; @RolesAllowed on resources
ManagedExecutorService JAR analysis offloaded via executor.supplyAsync(); SSE sampler via scheduleAtFixedRate
HikariCP Connection Pool maximumPoolSize=16; connectionTimeout=3000; poolName=CortexPool

Docker Compose — One-Command Stack

The full stack (WildFly 31 + PostgreSQL 16) starts with a single command:

cp .env.example .env    # Fill in JWT_SECRET and DB_PASSWORD
docker compose up --build
flowchart LR
    subgraph COMPOSE["docker-compose.yml"]
        PG["postgres:16-alpine<br/>port 5432<br/>healthcheck: pg_isready<br/>volume: postgres-data"]
        APP["wildfly:31.0.0.Final-jdk17<br/>port 8080<br/>depends_on: postgres (healthy)<br/>standalone.xml DataSource"]
    end

    CLIENT["curl / Postman<br/>localhost:8080"] --> APP
    APP -->|"JNDI: java:jboss/datasources/CortexDS"| PG

Multi-stage Dockerfile: - Stage 1 (maven:3.9-eclipse-temurin-17): mvn dependency:go-offline then mvn package -DskipTests - Stage 2 (wildfly:31.0.0.Final-jdk17): Copy helix-cortex.war to deployments/

The standalone.xml is patched to define the CortexDS PostgreSQL datasource using environment variables injected by Docker Compose.


Sprint Delivery Plan

helix-cortex was designed and built in a 4-sprint schedule:

Sprint Days Milestone Deliverable
Sprint 1 Days 1-2 M1: Security Foundation Maven WAR, helix mvn install, JWT auth, @Secured filter, login/register endpoints
Sprint 2 Days 3-4 M2: Rule Engine Pipeline HelixProducer CDI, rule compile/execute REST, JPA entities, Criteria API analytics
Sprint 3 Days 5-6 M3: Async Analysis & SSE JAR analysis with ASM opcode counting, @ObservesAsync events, live SSE MXBeans telemetry
Sprint 4 Day 7 M4: Production Readiness N+1 elimination verified, HikariCP load-tested, Docker Compose, Postman collection, README

References & Further Reading

Jakarta EE Specifications

Resource Why It Matters
Jakarta EE 10 Platform Spec The normative specification for every API used in helix-cortex — CDI 4.0, JAX-RS 3.1, JPA 3.1, Jakarta Security 3.0
JAX-RS 3.1 Spec — ServerSentEvents The normative definition of SseEventSink, SseBroadcaster, and OutboundSseEvent — the exact types used in TelemetryResource
RFC 7807 — Problem Details for HTTP APIs The IETF standard that defines application/problem+json — implemented by GlobalExceptionMapper

Security

Resource Why It Matters
HMAC — RFC 2104 The specification for HMAC construction — basis for TokenService's manual javax.crypto.Mac JWT implementation
JWT — RFC 7519 The standard that defines JWT structure (header.payload.signature), claim names (sub, exp, iat), and validation rules
PBKDF2 — NIST SP 800-132 Why PBKDF2 with 100,000 iterations is the recommended password hashing standard — what Pbkdf2PasswordHash implements
Timing Attacks on String Comparison Why MessageDigest.isEqual() is required instead of String.equals() for HMAC verification

JPA & Persistence

Resource Why It Matters
Hibernate ORM — Statistics Guide How to enable hibernate.generate_statistics=true and read getPrepareStatementCount() — the technique used to verify N+1 elimination
Pro Jakarta Persistence in Jakarta EE 10 — Chapters 4-9, 12, 14 The textbook that covers @OneToMany, @Version, Criteria API, EntityGraph, shared-cache-mode, and HikariCP deployment — directly applied in every entity
HikariCP Connection Pool Sizing The formula (CPU_cores × 2) + effective_spindle_count used to derive maximumPoolSize=16

Bytecode & ASM

Resource Why It Matters
OW2 ASM User Guide The reference for ClassVisitor, MethodVisitor, and opcode constants — the foundation of OpcodeCountingVisitor
JVM Instruction Set — Chapter 6 Official reference for NEW, INVOKEVIRTUAL, INSTANCEOF opcodes — the instructions detected by helix-cortex's three antipattern rules

Project Resources

Resource Link
helix-cortex Source Code github.com/7amo10/helix-cortex
helix-cortex Official Docs 7amo10.github.io/helix-jvm-engine/docs/helix-cortex/overview
helix-jvm-engine (Core Dep) github.com/7amo10/helix-jvm-engine · Project Write-Up
Phase 3 Notes — CDI & JAX-RS Week 1
Phase 3 Notes — JPA & Security Week 2
Phase 3 Notes — Async & SSE Week 3
Implementation Plan (4 Sprints) IMPLEMENTATION_PLAN.md

Project Start: 2026-09-25 | Target Completion: 2026-10-02 | Status: In Progress