[1685874 views]

[]

Odi's astoundingly incomplete notes

New entries | Code

JAX-WS wildcard address

If you have wondered how to make a JAX-WS endpoint listen on the wildcard address:
Endpoint.publish("http://0:8080/MyService", new MyService());
Just use 0 as the IP. If you wonder why that works, look at the implementation of Inet4Address.isAnyLocalAddress() which basically checks for zero.

posted on 2012-03-15 15:03 UTC in Code | 0 comments | permalink