[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Load servlet on startup equinox server

Hi Rafael,

I'm not familiar with what Muse produces to do the integration.
>From your description of the problem I'm guessing it writes a plugin.xml
with a "servlets" extension.

Eagerly starting of a servlet is supported with the "load-on-startup"
attribute. [load-on-startup="true"]

For example:
 <extension
       id="helloServlet"
       point="org.eclipse.equinox.http.registry.servlets">
    <servlet
          alias="/ext/helloworld"
          class="sample.http.registry.HelloWorldServlet"
          load-on-startup="true">
       <init-param
             name="servlet-name"
             value="Test Servlet">
       </init-param>
       <init-param
             name="testParam"
             value="test param value">
       </init-param>
    </servlet>
 </extension>

HTH
-Simon

equinox-dev-bounces@xxxxxxxxxxx wrote on 01/08/2008 02:39:10 AM:

> Hello,
>  I have an application developed with Apache Muse WSDM Framework. These
>   application run perfect, but my problem is load my
> application when run the equinox server. When I test my application I
> need to run an external application for instantiating my application.
>
> Exists some method (Apache Tomcat <load-on-startup>) for run my
> application without run another application ?
>
>
> I generate my application using the "OSGI Framework" with the tools
> provided by Apache Muse.
>
> wsdl2java -wsdl mywsdl.wsdl -proxy -osgi
>
> this tool generated all the structure for run my osgi-application.
>
> thank you very much
> --
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev