Hello!
I'm playing around with P2P.
I want to use JAX-WS for communication inside a P2P network.
Some peers are "behind a firewall", so they can't listen on ports.
(They act as clients).
Other peers are allowed to listen on ports. (They act as servers
(and clients)).
Now I want to be able to abstract from the fact, which peers are server and which not. So, peers have to be able to execute web-service commands on each other, with equal "abilities" for server peers and client peers.
In a "world without web-services" I would open a socket, and after the socket is opened, servers could talk to clients in the same way clients talk to servers (in both directions equally, because the connection stays open).
But JAX-WS is based on (stateless) HTTP, and there is no such thing as
"HTTP connections".
So, servers couldn't make a client call, right?
What can be done to overcome this?