I can't, because MessageContext.getCurrentMessageContext() is null.

-------- Original-Nachricht --------
> Datum: Tue, 29 Jan 2008 09:13:32 -0500
> Von: "Martin Gainty" <[EMAIL PROTECTED]>
> An: [EMAIL PROTECTED]
> Betreff: Re: get current ConfigurationContext with embedded tomcat

> Martin
> 
> did you try obtaining the CONTEXT property from MessageContext?
> MessageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT)
> 
> Does this help?
> Martin--
> ----- Original Message -----
> From: "Martin Philippi" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, January 29, 2008 8:40 AM
> Subject: get current ConfigurationContext with embedded tomcat
> 
> 
> > Hi!
> > I'm developing an application with an embedded tomcat.
> > I want to deploy a Axis2-Webservice at runtime.
> > My problem is: How do i get the current ConfigurationContext to add the
> service to it?
> > I can create a new ConfigurationContext and add the service, but that
> does
> not have any effect.
> >
> > ConfigurationContext configContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem("c:/axi
> s2-1.3/conf/axis2.xml");
> > InputStream in = new
> FileInputStream("c:/workspace/mywebservice/services.xml");
> AxisService service = DeploymentEngine.buildService(in, configContext);
> > configContext.getAxisConfiguration().addService(service);
> > configContext.getAxisConfiguration().startService("SMARTService");
> >
> > Regards,
> > Martin
> > --
> > Psssst! Schon vom neuen GMX MultiMessenger gehört?
> > Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to