This project is designed to maintain a proper layered architecture for a web application using Jakarta EE, MySQL, and AJAX. The goal is to ensure a clean separation of concerns, enhancing maintainability, scalability, and testability.
-
Backend Framework: Jakarta EE
-
Database: MySQL
-
Client-side Communication: AJAX
-
Database Configuration: JNDI
-
Logging: slf4j,logback
The application follows a layered architecture comprising the following layers:
1. Presentation Layer: Manages the user interface and client-side interactions.
2. Business Logic Layer: Contains the core functionality and business rules.
3. Data Access Layer: Handles direct interactions with the database.
- JDK 21
- Jakarta EE compatible application server (e.g., Tomcat,WildFly, GlassFish)
- MySQL server
- Maven
git clone https://github.com/sasmithx/JavaEE-POS.git
1.Create a MySQL database.
2.Configure JNDI for database connectivity:
-
Define a JNDI resource in your application server's configuration.
-
Example configuration for Tomcat:
- DEBUG: Fine-grained information for debugging.
- INFO: General information about application progress.
- WARN: Potentially harmful situations.
- ERROR: Error events that might still allow the application to continue running.
To view this project API Documentation
https://documenter.getpostman.com/view/35385442/2sA3s1nX8W
Refer to the Postman API Documentation for detailed API endpoints and usage instructions.
This project is licensed under the MIT License - see the MIT License file for details.
© 2024 Sasmith Manawadu