This sample contains the DayTrader 3 benchmark, which is an application built around the paradigm of an online stock trading system. The application allows users to login, view their portfolio, lookup stock quotes, and buy or sell stock shares. With the aid of a Web-based load driver such as Apache JMeter, the real-world workload provided by DayTrader can be used to measure and compare the performance of Java Platform, Enterprise Edition (Java EE) application servers offered by a variety of vendors. In addition to the full workload, the application also contains a set of primitives used for functional and performance testing of various Java EE components and common design patterns.
DayTrader is built on a core set of Java EE technologies that includes Java Servlets and JavaServer Pages (JSPs) for the presentation layer and Java Persistence Architecture (JPA), Java database connectivity (JDBC), Java Message Service (JMS), Enterprise JavaBeans (EJBs) and Message-Driven Beans (MDBs) for the back-end business logic and persistence layer. Daytrader 3 also adds some simple Java Server Faces (JSF) and Java API for RESTful Web Services (JAX-RS) functionality.
This sample contains a server definition that includes ejbLite-3.1, jmsMdb-3.1, wasJmsServer-1.0, wasJmsClient-1.1, jpa-2.0, jaxrs-1.1, jsf-2.0 and other necessary features. It also contains a demo application daytrader3-ee6.ear, which demonstrates multiple features supported by the Liberty profile.
This sample can be installed onto runtime versions 126.96.36.199 and later.
Online installation (requires 188.8.131.52 or later):
installUtility install Daytrader3Sample
Any missing features required by the server will be installed for you.
Daytrader3Sample.jarusing the download button at the top of the page and place it in the root of your server installation.
java -jar Daytrader3Sample.jar
Any missing features required by the server will need to be installed separately.
To run the Daytrader3Sample application:
bindirectory in the Liberty profile installation:
server run DayTrader3Sample
CWWKZ0001I: Application daytrader3 started in XX.XX seconds.
This sample requires a Liberty Profile installation that includes the jmsMdb-3.1, wasJmsServer-1.0, and wasJmsClient-1.1 features. These features are available as part of the Liberty Profile extended content.
daytrader3-ee6.ear file contains the source and binaries for the application, and can be used to import it to Eclipse.