This repository has been archived by the owner on Jun 4, 2021. It is now read-only.
A message oriented middleware (MOM) with Two-Phase-Commit protocol (2PC)
felipegutierrez/ptp
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project is for the distributed platform subject at the UFPE. A middleware message oriented using 2-phase-commit protocol. Felipe Oliveira Gutierrez - felipe.o.gutierrez@gmail.com José Fernando Fish - gentio@gmail.com Steps to execute 1 - Start the server QueueServer. 2 - send messages using the Publisher. 3 - consume messages using the Subscriber. How to test Two-Phase-Commit 1 - create 3 files and for one of them remove the privileges RW. Thus it is possible to verify that one of the resources is unavailable and the 2PC trasaction will execute. # touch /home/felipe/Temp/2FC/teste00.txt /home/felipe/Temp/2FC/teste11.txt /home/felipe/Temp/2FC/teste22.txt # chmod 000 /home/felipe/Temp/2FC/teste11.txt 2 - Remove one of the files teste*txt. Thus it is possible to verify that one of the resources is unavailable and the 2PC trasaction will execute. # rm -Rf /home/felipe/Temp/2FC/teste11.txt 3 - Create again the file excluded. Thus it is possible to test the trasaction until it completes. # touch /home/felipe/Temp/2FC/teste11.txt Codacy Badge Codacy Badge
About
A message oriented middleware (MOM) with Two-Phase-Commit protocol (2PC)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published