Quantcast
Viewing all articles
Browse latest Browse all 9364

Ortwin Glück: [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.

Viewing all articles
Browse latest Browse all 9364

Trending Articles