Hi,
On 19/06/10 15:34, Thierry Boileau wrote:
> Hello Kevin,
>
> at this time, the application is instantiated and attached, when handling the
> first request. The main reason is that the context path of the app is not
> known by advance.
> You can still get this value as follow:
> ServletContex
Hello Kevin,
at this time, the application is instantiated and attached, when handling the
first request. The main reason is that the context path of the app is not known
by advance.
You can still get this value as follow:
ServletContext context = (ServletContext) getContext().getAttributes()
.getRootRef(). But by then it is too late, I need it earlier so that
I can wire everything up.
So is there a nice way to get the rootRef just from the application at
startup, before a request comes in?
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/How-to-obtain-roo
3 matches
Mail list logo