I'm not really sure how i start axis. I'm doing something like this in embedded 
tomcat.

Context context_axis2 = embedded.createContext("/axis2", getPath() + 
"/webapps/axis2");
host.addChild(context);

But this does not seem to be the right way (although axis is working).
How do i start it by using AxisServlet?

Thanks
Martin

-------- Original-Nachricht --------
> Datum: Wed, 30 Jan 2008 10:08:45 +0530
> Von: Deepal jayasinghe <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: Re: 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:/axis2-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");
> >   
> You can do the following  (But this depend on how you start Axis2 , if 
> you use AxisServlet then the following works)
> 
> ListenerManager.defaultConfigurationContext
> 
> Thanks
> Deepal
> > Regards,
> > Martin
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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

Reply via email to