>>>>> On Thu, 9 Jan 2014 14:16:10 -0800, Edward Burns <edward.burns_at_oracle.com> said:
>>>>> On Mon, 6 Jan 2014 16:03:52 +0100, Jakub Podlesak <jakub.podlesak_at_oracle.com> said:
JP> as pointed by Michal, if you register your feature, the application
JP> listener should work just fine. Please see the log attached bellow.
EB> I must have been doing something wrong in the bootstrapping process.
EB> I do see it working now.
Now I come upon another bootstrapping related question. I would like to
have access to the ServletContext instance within my code that handles
the Type.INITIALIZATION_APP_FINISHED event. I tried
@Inject
private Provider<Ref<ServletContext>> servletContextRef;
But I find that at the point in time when
Type.INITIALIZATION_APP_FINISHED is called, servletContextRef.get() is
null.
Is there some other way to obtain a reference to the ServletContext? I
need this because I need to bootstrap JSF, and JSF needs the ServletContext.
Thanks,
Ed
--
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage: | http://ridingthecrest.com/
| 26 Work Days Til DevNexus 2014
| 43 Work Days Til JavaLand 2014