Synchronize client data by java message service

I am creating a Bookmanager java project,there are one more clients running at the same time, then all changes made by one client(s) are synchronized to other clients too. E.g: there are 3 clients (A, B and C) running at the same time, if client A adds a new book, then the new book is automatically added to the book list on the GUI of 2 other clients (B and C). How do I do it using Java Message Service.