Back to Projects

ZStore.JEE

A full-featured e-commerce web application built with Jakarta EE, JSP, Hibernate ORM, and MySQL following the MVC architecture.

2024

Duration

Mar 2024

Contributors

1 contributor

Technologies

5+ tech

ZStore.JEE

ZStore.JEE is an e-commerce web application built on Jakarta EE — Servlets, JSP and Hibernate ORM over MySQL — following the MVC pattern without a framework like Spring to provide the structure.

Why build it this way#

Most Java web development today starts with Spring Boot, which decides a great deal for you: how requests are routed, how dependencies are wired, how transactions are opened. That is a strength in production and a blind spot when learning. Building a complete store on plain Jakarta EE meant making each of those decisions explicitly — and understanding what frameworks like Spring actually automate.

What it does#

  • Product catalogue — browse and search products with detailed descriptions and images
  • Shopping cart — add, remove and update items before checkout
  • Orders — place orders and follow their status
  • User accounts — registration, login and session-based authentication
  • Admin panel — manage products, orders and user accounts from a secured back office
  • Simple navigation — a clear interface built to find products quickly

Architecture#

Browser
  │  HTTP
  ▼
Servlets (controllers)     route requests, read parameters, choose a view
  │
  ├── DAO / service layer  business logic, Hibernate sessions
  │       │
  │       ▼
  │    Hibernate ORM ──► MySQL
  │
  ▼
JSP views                  render the model

The application runs on Apache Tomcat and is built with Maven.

Key challenges#

MVC by hand#

Without a framework, MVC is a convention you enforce yourself. Each Servlet acts as a controller: it reads the request, calls the business layer, puts the result in request attributes and forwards to a JSP view. JSPs only render — no queries, no business rules. Keeping that line strict is what keeps the project readable as pages are added.

Hibernate in a Jakarta EE context#

Hibernate maps Java entities — products, categories, users, orders — to MySQL tables, so the code never builds SQL strings by hand. The hard part is the session lifecycle: opening a session per request, wrapping writes in transactions, and closing everything reliably even when something fails. Getting that right without Spring's @Transactional made it very clear what that annotation does behind the scenes.

State across pages#

HTTP is stateless, but a cart is not. The cart and the signed-in user are stored in the HTTP session, so they survive navigation between pages — and the admin back office checks that user before letting anyone in.

Stack#

LayerTechnologies
ViewsJSP, HTML, CSS, Bootstrap
ControllersJakarta EE Servlets
PersistenceHibernate ORM, MySQL
Build & runtimeMaven, Apache Tomcat

Results#

  • A working store covering the full product and order lifecycle
  • A clean MVC separation that makes new features straightforward to add
  • Hibernate ORM removes raw SQL and simplifies schema management

What I learned#

Every piece of plumbing I wrote by hand here — session handling, transaction boundaries, wiring services into controllers — is something I now recognize instantly in Spring and ASP.NET Core. I rebuilt the same store later on .NET as ZStore.Net, and the comparison made the value of each framework feature concrete rather than theoretical.

Share:Share on Twitter / XShare on LinkedInShare on Facebook

ZStore

ZStore is a web ecommerce application developed using JEE technologies, MVC architecture to separate the business logic from the presentation logic and MySQL database to store the products and user information.

More Projects

Dr Maroc
2024Current
A healthcare SaaS live at drmaroc.com, grown from a single app into a platform: four Angular portals in one Nx monorepo, a modular Spring Boot backend, self-hosted Keycloak, shared contracts, and a delivery pipeline where GitHub is the source of truth.
AngularNxNext.js+8
ngx-auth-client
2026Current
A published npm package that exposes Angular authentication as signals instead of getters, ships Keycloak and HTTP adapters behind a provider-agnostic port, and keeps tokens out of localStorage entirely.
AngularTypeScriptKeycloak+7