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 modelThe 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#
| Layer | Technologies |
|---|---|
| Views | JSP, HTML, CSS, Bootstrap |
| Controllers | Jakarta EE Servlets |
| Persistence | Hibernate ORM, MySQL |
| Build & runtime | Maven, 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.
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.
