3

The client connects to a server and then can request it AND the server can invoke some commands on the clients as well. Is there anything like this in Java?

benji
  • 2,331
  • 6
  • 33
  • 62
  • What do you mean by duplex web service, care to provide some examples? – Devin M Mar 20 '12 at 18:03
  • It's really a way to have the server make requests to the clients once they are connected to it. for example, silverlight has that: http://tomasz.janczuk.org/2009/09/scale-out-of-silverlight-http-polling.html – benji Mar 20 '12 at 23:14

1 Answers1

0

In my opinion there is no such thing called duplex webservices, To achieve Client-Server relationship in both direction (duplex as you termed it), You can expose webservice interface at both the ends for consuming.

Both webservices component acts as Client and Server simultaneously, by exposing consumable web service interface for each other.

See below image for better clarity.

enter image description here

Alpesh Gediya
  • 3,706
  • 1
  • 25
  • 38
  • Good luck implementing all the little details that go with it though, like threading/concurrency/synchronisation issues. – Basic Mar 09 '15 at 11:11