Java EE demo project and interaction with the Ebay REST API
The development of this web application demo was part of the Software Engineering course. It's an introduction to Java EE development and to the integration of different technologies (Docker, MySQL database and Kafka cluster) in the same project.
This project uses the Ebay Finding API to obtain search results and display them to the users. It has a database that serves as cache, which reduces the number of API calls and decreases the response time. The database stores and updates the product searches made by users and returns them when the same searches are made.
Kafka is used to store message updates of the products in the database. This messages are consumed by the kafka client program.
For further details check the wiki.
-
OS: Ubuntu 16.04
-
IDE: NetBeans v8.2
-
Web application server: Glassfish v4.1.1
-
JDK: OpenJDK v1.8.0_191
-
JavaEE: 7
-
Kafka docker image: spotify/kafka
-
MySQL docker image: mysql/mysql-server:5.7
- Run Kafka in Docker
- Docker configuration
- MySQL database connection
- JPA
- JPQL
In order to test this web application you need to follow the various steps mentioned in the wiki and add to the files:
- TimerSessionBean.java, line 85
- GetEbaySearchResultsCtrl.java, line 117
– the Ebay Production or Sandbox Environment appID to the variable "appName".
Diogo Guedes
