Hari Venkatesh
Hari Venkatesh

Reputation: 1

sharing a queue between two java projects running on two different machines

Currently I have a project which uses a queue to store and retrieve . Now I have to split into two projects in which one stores details into the queue and other project retrieves from the queue to execute. How can I do that ? should the queue be global to both the projets? How to make queue available to both the projects ? two projects should run on two different machines . and how to invoke second project from the first .

thanks in advance

Upvotes: 0

Views: 116

Answers (1)

npinti
npinti

Reputation: 52185

What you could do would be to introduce your queue as a third project. Essentially, this would be a queue behind a Web Service or Server (think sockets).

The wrapper will make your queue available across different domains, which can be then consumed by your current two projects.

Upvotes: 1

Related Questions