Duplex web service in Java

The client connects to the server, and then can request it. And the server can also invoke some commands on clients. Is there something similar in Java?

+4
source share
1 answer

In my opinion, there is no such thing as duplex webservices. To reach the Client-Server relationship in both directions (duplex, as you called it), you can open the webservice interface at both ends for consumption.

Both components of webservices act simultaneously as Client and Server, exposing each other an accessible web services interface.

See image below for better clarity.

enter image description here

0
source

Source: https://habr.com/ru/post/1402504/


All Articles