ChatApp
Java multi-user chat application.
- Java
- Hibernate
- JavaFX
- Java RMI
- MySQL
Overview
The Java Multi-User Chat Application is a real-time communication platform that enables multiple users to connect and exchange messages seamlessly. Built using distributed system principles, it ensures efficient communication, scalability, and maintainability.
What is the problem ?
Traditional chat systems often lack scalability, structured architecture, and persistent data handling.
Common issues include:
- Difficulty handling multiple users concurrently
- Lack of persistent chat history
- Poor separation of concerns in system design
- Limited scalability in client-server communication
- Weak role-based access control mechanisms
Solution for the Problem
This application provides a robust client-server chat system using Java RMI and TCP sockets for real-time communication.
It integrates persistent storage using Hibernate ORM and applies software design principles to ensure scalability, maintainability, and clean architecture.
Key Features
-
Real-Time Multi-User Chat
- Seamless communication using Java RMI and sockets
- Broadcast messaging support
-
Role-Based Authentication
- Admin and user roles
- Secure login and user management
-
Persistent Data Storage
- Hibernate ORM integration
- Stores user profiles and chat history
-
Multi-Threaded Architecture
- Handles multiple clients simultaneously
- Ensures smooth and responsive communication
-
Design Pattern Implementation
- Singleton Pattern
- Proxy Pattern (via Java RMI)
- Observer Pattern
- DTO (Message Envelope) Pattern
- Service Layer Pattern
- Template Method (structured inheritance)
-
Clean Architecture Principles
- Single Responsibility Principle (SRP)
- Open/Closed Principle (OCP)
- Dependency Inversion Principle (DIP)
-
User Interface
- Built using Java Swing
- Simple and interactive chat UI
Technology Stack
| Technology | Purpose |
|---|---|
| Java | Core application logic |
| Java RMI | Remote communication between clients |
| TCP Sockets | Low-level communication handling |
| MySQL | Data persistence |
| Hibernate ORM | Database abstraction |
| Java Swing | Desktop UI |
Our Team
- ๐จโ๐ป Asela (Team Leader) โ System design, backend, and architecture
- ๐ฅ Team Members โ Development and collaboration
Challenges & Learnings
This project strengthened understanding of distributed systems, multi-threading, and network programming.
Implementing design patterns and SOLID principles provided hands-on experience in building scalable and maintainable Java applications.