A modern, full-stack web application built with Jakarta EE 10 and running on Open Liberty. This project demonstrates a complete enterprise Java architecture for managing a movie collection, user reviews, and real-time communication.
- Movie Management: Browse, view details, and manage a collection of movies with rich metadata (posters, directors, genres).
- Review System: Users can rate and review movies. Includes optimistic locking protection and comprehensive validation.
- User Authentication & Authorization:
- Role-based access control (Admin/User).
- Custom form-based authentication.
- Secure password hashing (PBKDF2).
- Real-time Chat:
- WebSocket-powered chat interface.
- Global channel for all connected users.
- Private messaging between users.
- Live online/offline status indicators.
- Internationalization (i18n): Full support for English and Polish languages, switchable at runtime.
- Modern UI: Responsive design using MDB UI Kit (Bootstrap 5) and FontAwesome icons.
- Data Initialization: Automatic population of the database with sample movies, users, and reviews on startup.
- Backend: Java 17, Jakarta EE 10 (CDI, EJB, JPA, JAX-RS, JSF/Faces, WebSocket, Bean Validation, Security)
- Server: Open Liberty
- Database: H2 (In-memory)
- Frontend: Jakarta Faces (JSF), MDB UI Kit (Bootstrap 5), HTML5, CSS3
- Build Tool: Maven
- Utilities: Lombok
- Java JDK 17 or higher
- Maven 3.8+
git clone https://github.com/varrios/movie-library-jee.git
cd movie-library-jee/movie-libraryThis project is configured to run with the Liberty Maven Plugin.
# Start the server in dev mode (hot reload)
mvn liberty:devOnce started, the application will be available at: http://localhost:9080/movie-library/
Press Ctrl+C in the terminal where mvn liberty:dev is running, or run:
mvn liberty:stopThe application initializes with the following demo users:
| Role | Username | Password |
|---|---|---|
| Admin | admin |
admin_admin |
| User | john_doe |
123123 |
| User | alice |
alice_000 |
Note
The database is in-memory (H2). Data is reset every time the server restarts.
movie-library/
├── src/
│ ├── main/
│ │ ├── java/lg/movielibrary/ # Java Source Code (Controllers, Services, Entities)
│ │ ├── liberty/config/ # Server Configuration (server.xml)
│ │ ├── resources/ # i18n properties, JPA config
│ │ └── webapp/ # Web Resources (XHTML views, CSS, JS, Images)
│ └── test/ # JUnit Tests
├── pom.xml # Maven Project Configuration
└── README.md # Project Documentation
The application supports English (EN) and Polish (PL).
- Language selection is available on the Home Screen.
- The interface automatically adapts dates, numbers, and text messages.
To test the chat functionality:
- Open the application in two different browsers (or one in Incognito mode).
- Log in as
john_doein one andalicein the other. - Navigate to the Chat tab.
- Send messages to "Everyone" or select a user from the list for a private conversation.
Developed by Lucjan Gackowski