Course work from HKU COMP3358 Distributed and Parallel Computing
OS requirement: Ubuntu
Java version: 8
Recommended to use the Eclipse IDE
- Remote Method Invocation (RMI)
Run~$ rmiregistry & - MySQL JDBC connector
Add to the classpath:mysql-connecter-j-x.x.x.jar - Glassfish5 for Java Messaging Service
Add to the classpath:/glassfish/lib/gf-client.jar - Run
sql-script/tables-gen.sqlto generate the required MySQL tables
- Connection Factory:
jms/JPoker24ConnectionFactory - Queue:
jms/JPoker24GamePlayerQueue - Queue:
jms/JPoker24GameAnswerQueue - Topic:
jms/JPoker24GameTopic
Run the serverJPoker24GameServer.java, then run multiple clients JPoker24Game.java
Game screenshot:
