[snip]
Robert Young wrote:
On a slightly different tack, if I implement my own servlet which
loads the servlet from WebAppServletHost would I be able to inject the
servlet context into the service via the generated servlet?
On 7/13/07, Robert Young <[EMAIL PROTECTED]> wrote:
Strangely I don't need anything from it, I just need it. The service
is for interacting with Nutch, which requires the servlet context to
load the configuration instance.The NutchConfiguration class grabs all
it's parameters from the servlet context but I don't really want to
have to do that myself.
On 7/13/07, ant elder <[EMAIL PROTECTED]> wrote:
> I think there isn't any way with the current code as-is. We could
look at
> providing something, I'm not sure we should what support injecting the
> entire ServletContext into a component though, what is it exactly
that you
> need from it in the service impl?
>
> ...ant
>
> On 7/12/07, Robert Young <[EMAIL PROTECTED]> wrote:
> >
> > I am running Tuscany with Tomcat and I need the servlet context
to be
> > available to one of my service implementations (used to load a
> > particular configuration). I understand I can inject properties with
> > default values but I can't seem to figure out how I can inject the
> > servlet context.
> >
> > Thanks
> > Rob
> >
There is no facility to inject a ServletContext into an SCA component at
the moment but we should be able to work something out if we understand
your scenario. Who invokes your SCA component? a JSP or a Servlet? or is
the component accessed through an SCA binding (WS, JSONRPC or Ajax for
example)?
Thanks
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]