Reputation: 61
I have currently two wars files in which one war has to send notification to other war file using spring.Both of the wars are implemented using spring and web service. My requirement is first war has to send notifications to other war file. Could you please provide some pointers to implement the same using spring ?
Upvotes: 1
Views: 823
Reputation: 10273
You can use RMI to export your beans and make them visible from other modules, better than other alternatives in this case because:
Take a look here on how to do it:
But I would first of all review the architecture you are using, in case you can refactor it for a better integration of business logic.
Upvotes: 0
Reputation: 115408
I do not know exactly your requirements but I'd suggest you to use RestFull web service for this notification. Spring has a perfect support of this kind of services.
Internally the first application will send HTTP POST (or GET) request like http://thehost/webapp2/mynotification
Other way is to communicate using JMS. This way is good if you have to make the communication asynchronous. Spring supports JMS using JMS templates.
Upvotes: 1
Reputation: 597422
You can use:
Upvotes: 0