Hi Jozsef,

I'm copying users@cxf.apache.org as that's a good place to discuss
these questions.

What you're asking should be possible as long as the container that
you're running in registers the OSGi HTTP Service. As you're already
in Equinox I suspect that this is happening already (you can easily
find this out by checking that a service is registered under the
org.osgi.service.http.HttpService interface).

You can configure CXF-DOSGi to use the OSGi HTTP Service instead of
the embedded Jetty server. Doing this should not start Jetty and you
should be using the one provided by your platform. You do this by
setting the org.apache.cxf.ws.httpservice.context property on your
to-be-exported service. See the reference page:
http://cxf.apache.org/distributed-osgi-reference.html or this blog
entry: 
http://coderthoughts.blogspot.com/2009/02/distributed-osgi-powered-ajax-webapp.html
for more info.

When doing this you should probably use the multi-bundle distribution.
The CXF-DOSGi binary distros come with their own OSGi HTTP Service
(provided through pax-web). You probably want to remove that bundle
from your installation as otherwise you'd end up with two HTTP
Services in your container.

Hope this helps,

David


2009/11/26 Malyik József <jozsef.mal...@contum.hu>:
> Hi David,
>
>
>
>   I'm sorry to bother you but I didn’t find up to now the right person to
> help us with CXF-DOSGi, but I readed your blog posts and I thought may you
> would like to help us a little bit.
>
>
>
>   So, we try to create a distributed war based application framework with
> dynamic module loading (we . The communication between modules is based on
> SOAP.
>
>
>
>   Because we don’t wanted to invent the wheel, I used google and searched
> for dynamic module loader frameworks, and I found the OSGi, the CXF and you,
> with the CXF-DOSGi.
>
>
>
>   I downloaded equinox’s servletbridge (bridge.war), sling (sling.war) and
> another web(war)-based OSGi container implementations and I tried to
> hammering with CXF-DOSGi (singlebundle) that finally succeeded in all case.
>
>
>
>   But: in all cases DOSGi started an embedded jetty and that is our problem.
> Would you be so nice and tell me that is it possible to configure CXF-DOSGi
> so that this embedded jetty don’t start (but of course the CXF service works
> continues)? I think not just for me weird thing that in a webserver an
> application starts an another webserver…
>
> If you are not the right person, would be so nice to forward this mail to
> the right person or mailing list, thanks.
>
> Best regards,
>
> Jozsef Malyik
>
>

Reply via email to