users@javaee-spec.java.net

[javaee-spec users] Eagerly getting host/port of a JAX-RS endpoint

From: Arun Gupta <arun.gupta_at_gmail.com>
Date: Thu, 18 Jun 2015 23:51:34 +0100

If multiple WARs with JAX-RS REST endpoints are deployed, how are URIs
of these endpoints advertised?

Tried using @Startup @Singleton but there is no standard/non-standard
way to access host/port there.

@PostConstruct for JAX-RS endpoint is not called until the endpoint is
invoked once.

@Context UriInfo is only available after the endpoint has been invoked.

There is a bit of discussion at:

https://twitter.com/arungupta/status/611493850092322816

Any suggestions?

Cheers
Arun

-- 
http://blog.arungupta.me
http://twitter.com/arungupta