> As was already mentioned, you don't have any requests on application > start, so you can't get the request URI. > > And request URI (the host part of it) may be different even on the same > application instance. > > You can try to get local host name like this: > > > InetAddress.getLocalHost().getHostName();
Unfortunately, on a system hosting maybe hundred virtual hosts, getHostName() is most likely something completely different than the host part of your URL. Markus --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
