Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/WASdev/sample.daytrader7/llms.txt

Use this file to discover all available pages before exploring further.

DayTrader 7 is an open-source benchmark and performance sample application built on Java EE 7. Modeled after an online stock brokerage, it provides a real-world workload for measuring and comparing the throughput and scalability of Java EE application servers. Deploy it on Open Liberty — with embedded Derby or external DB2 — and drive load with Apache JMeter to produce repeatable performance measurements.

Introduction

Learn what DayTrader 7 is, what it tests, and how it fits into your benchmarking workflow.

Quickstart

Build and run DayTrader 7 locally with Open Liberty and Derby in under five minutes.

Deployment

Deploy on bare metal, Docker, or Kubernetes with the OpenLiberty Operator.

Configuration

Configure the server, database connections, and runtime mode for your environment.

Architecture

Explore the application architecture, data model, and Java EE 7 features exercised.

Load Testing

Drive benchmark load with JMeter scripts and the built-in Web Primitives suite.

Get running in four steps

1

Clone and build

Clone the repository and build the EAR with Maven:
git clone https://github.com/WASdev/sample.daytrader7.git
cd sample.daytrader7
mvn install
2

Start Open Liberty

Start the embedded Open Liberty server:
cd daytrader-ee7
mvn liberty:run
3

Initialize the database

Open http://localhost:9082/daytrader/configure.html and click Re-create DayTrader Database Tables and Indexes, then Re-populate DayTrader Database.
4

Run the application

Navigate to http://localhost:9082/daytrader to interact with the trading application, or point Apache JMeter at /daytrader/scenario to begin benchmarking.

What DayTrader 7 covers

DayTrader 7 exercises a broad set of Java EE 7 technologies in a single, coherent workload. The application spans EJB 3.2, JPA 2.1, JMS/MDB, WebSockets 1.1, JSF 2.2, CDI 1.2, Bean Validation, JSONP, and Concurrency Utilities — making it a comprehensive stress test for any compliant application server.

EJB3 & JPA

Stateless session beans with JPA entities and transactional JDBC operations covering all CRUD patterns.

JMS & MDBs

Asynchronous order processing via JMS queues and topics with message-driven beans.

WebSockets

Real-time market summary push to connected clients via the Java WebSocket 1.1 API.

JSF & CDI

Full JSF 2.2 front-end with CDI-managed beans and bean validation.

Web Primitives

Isolated micro-benchmarks for servlets, JSPs, EJBs, JDBC, JMS, and more.

JMeter Integration

Pre-built JMeter test plans with configurable users, duration, and WebSocket support.

Build docs developers (and LLMs) love