You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Michael Illgner <mi...@googlemail.com> on 2010/11/22 11:18:48 UTC

jetty configuration in DOSGi

Hi folks
I am using the version 1.2 single-bundle-distribution for exposing an
OSGi service as a webservice and it is working like a charm. But I
have some difficulties configuring the embedded jetty server, e.g. for
increasing the number of worker threads, possible incoming
connections, using HTTPS etc. I have found this documentation
http://cxf.apache.org/docs/jetty-configuration.html but I do not
understand how to apply this information for the single bundle
distribution.
Do I have to unpack the distribution files and change some of the
"internal" files (default-web.xml) ?
Is there any simple example for jetty configuration available ?

Thanks in advance
Michael

Re: jetty configuration in DOSGi

Posted by Michael Illgner <mi...@googlemail.com>.
>> I'd probably go for patching the single bundle distro. If you can afford
> working with the trunk (1.3-SNAPSHOT) then it would be even better :-).
>
We will try this way, these might be not a clean solution but it will work .

> The idea was that if a user specifies an 'org.apache.cxf.ws.config.external'
> or 'org.apache.cxf.rs.config.external' property pointing to a classpath
> resource, then DSW handlers  would use BusFactory to create a Bus from this
> external config and then may be set it as a default one, before creating a
> service endpoint or proxy.

At the moment we are using the single bundle distribution as a kind of
black box for publishing existing OSGi services as web service 8-) and
we haven't got in contactwith the CXF internals :-(, so is there an
example or starting point in the web ?

Re: jetty configuration in DOSGi

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi

On Tue, Nov 23, 2010 at 3:32 PM, Michael Illgner <
michael.illgner@googlemail.com> wrote:

> Hi Sergey
> Thanks for the answer
>
> So for a "quick" solution with the existing version we have to unpack
> the single bundle distribution and patch the required files or build
> our own version from the maven repository ?
>
> I'd probably go for patching the single bundle distro. If you can afford
working with the trunk (1.3-SNAPSHOT) then it would be even better :-).

The idea was that if a user specifies an 'org.apache.cxf.ws.config.external'
or 'org.apache.cxf.rs.config.external' property pointing to a classpath
resource, then DSW handlers  would use BusFactory to create a Bus from this
external config and then may be set it as a default one, before creating a
service endpoint or proxy.

cheers, Sergey

2010/11/23 Sergey Beryozkin <sb...@gmail.com>:
> > Hi Michael, David
> >
> > sorry for a delay. At the moment it is basically impossible to reuse the
> > low-level CXF Jetty configuration; perhaps some configuration can be done
> at
> > the pax level.
> > We;ve been talking about the possibility of enhancing the DSW so that it
> > could also load existing CXF configuration resources where some bits
> which
> > are not easily expressible via intents can be configured.
> > I might give it a go - but I'll need to find some time for working on
> it...
> > cheers, Sergey
> >
> > On Tue, Nov 23, 2010 at 3:15 PM, Michael Illgner <
> > michael.illgner@googlemail.com> wrote:
> >
> >> No one with an idea ?
> >> How can I increase the number of worker threads in the embedded server ?
> >>
> >> 2010/11/22 David Bosschaert <da...@gmail.com>:
> >> > Hi Michael,
> >> >
> >> > I have never tried this at all and this might very well fall into the
> >> > area where Sergey suggested to provide external configuration to
> >> > DOSGi.
> >> > Sergey would you have any thoughts here?
> >> >
> >> > Cheers,
> >> >
> >> > David
> >> >
> >> > On 22 November 2010 10:18, Michael Illgner
> >> > <mi...@googlemail.com> wrote:
> >> >> Hi folks
> >> >> I am using the version 1.2 single-bundle-distribution for exposing an
> >> >> OSGi service as a webservice and it is working like a charm. But I
> >> >> have some difficulties configuring the embedded jetty server, e.g.
> for
> >> >> increasing the number of worker threads, possible incoming
> >> >> connections, using HTTPS etc. I have found this documentation
> >> >> http://cxf.apache.org/docs/jetty-configuration.html but I do not
> >> >> understand how to apply this information for the single bundle
> >> >> distribution.
> >> >> Do I have to unpack the distribution files and change some of the
> >> >> "internal" files (default-web.xml) ?
> >> >> Is there any simple example for jetty configuration available ?
> >> >>
> >> >> Thanks in advance
> >> >> Michael
> >> >>
> >> >
> >>
> >
>

Re: jetty configuration in DOSGi

Posted by Michael Illgner <mi...@googlemail.com>.
Hi Sergey
Thanks for the answer

So for a "quick" solution with the existing version we have to unpack
the single bundle distribution and patch the required files or build
our own version from the maven repository ?

2010/11/23 Sergey Beryozkin <sb...@gmail.com>:
> Hi Michael, David
>
> sorry for a delay. At the moment it is basically impossible to reuse the
> low-level CXF Jetty configuration; perhaps some configuration can be done at
> the pax level.
> We;ve been talking about the possibility of enhancing the DSW so that it
> could also load existing CXF configuration resources where some bits which
> are not easily expressible via intents can be configured.
> I might give it a go - but I'll need to find some time for working on it...
> cheers, Sergey
>
> On Tue, Nov 23, 2010 at 3:15 PM, Michael Illgner <
> michael.illgner@googlemail.com> wrote:
>
>> No one with an idea ?
>> How can I increase the number of worker threads in the embedded server ?
>>
>> 2010/11/22 David Bosschaert <da...@gmail.com>:
>> > Hi Michael,
>> >
>> > I have never tried this at all and this might very well fall into the
>> > area where Sergey suggested to provide external configuration to
>> > DOSGi.
>> > Sergey would you have any thoughts here?
>> >
>> > Cheers,
>> >
>> > David
>> >
>> > On 22 November 2010 10:18, Michael Illgner
>> > <mi...@googlemail.com> wrote:
>> >> Hi folks
>> >> I am using the version 1.2 single-bundle-distribution for exposing an
>> >> OSGi service as a webservice and it is working like a charm. But I
>> >> have some difficulties configuring the embedded jetty server, e.g. for
>> >> increasing the number of worker threads, possible incoming
>> >> connections, using HTTPS etc. I have found this documentation
>> >> http://cxf.apache.org/docs/jetty-configuration.html but I do not
>> >> understand how to apply this information for the single bundle
>> >> distribution.
>> >> Do I have to unpack the distribution files and change some of the
>> >> "internal" files (default-web.xml) ?
>> >> Is there any simple example for jetty configuration available ?
>> >>
>> >> Thanks in advance
>> >> Michael
>> >>
>> >
>>
>

Re: jetty configuration in DOSGi

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi Michael, David

sorry for a delay. At the moment it is basically impossible to reuse the
low-level CXF Jetty configuration; perhaps some configuration can be done at
the pax level.
We;ve been talking about the possibility of enhancing the DSW so that it
could also load existing CXF configuration resources where some bits which
are not easily expressible via intents can be configured.
I might give it a go - but I'll need to find some time for working on it...
cheers, Sergey

On Tue, Nov 23, 2010 at 3:15 PM, Michael Illgner <
michael.illgner@googlemail.com> wrote:

> No one with an idea ?
> How can I increase the number of worker threads in the embedded server ?
>
> 2010/11/22 David Bosschaert <da...@gmail.com>:
> > Hi Michael,
> >
> > I have never tried this at all and this might very well fall into the
> > area where Sergey suggested to provide external configuration to
> > DOSGi.
> > Sergey would you have any thoughts here?
> >
> > Cheers,
> >
> > David
> >
> > On 22 November 2010 10:18, Michael Illgner
> > <mi...@googlemail.com> wrote:
> >> Hi folks
> >> I am using the version 1.2 single-bundle-distribution for exposing an
> >> OSGi service as a webservice and it is working like a charm. But I
> >> have some difficulties configuring the embedded jetty server, e.g. for
> >> increasing the number of worker threads, possible incoming
> >> connections, using HTTPS etc. I have found this documentation
> >> http://cxf.apache.org/docs/jetty-configuration.html but I do not
> >> understand how to apply this information for the single bundle
> >> distribution.
> >> Do I have to unpack the distribution files and change some of the
> >> "internal" files (default-web.xml) ?
> >> Is there any simple example for jetty configuration available ?
> >>
> >> Thanks in advance
> >> Michael
> >>
> >
>

Re: jetty configuration in DOSGi

Posted by Michael Illgner <mi...@googlemail.com>.
No one with an idea ?
How can I increase the number of worker threads in the embedded server ?

2010/11/22 David Bosschaert <da...@gmail.com>:
> Hi Michael,
>
> I have never tried this at all and this might very well fall into the
> area where Sergey suggested to provide external configuration to
> DOSGi.
> Sergey would you have any thoughts here?
>
> Cheers,
>
> David
>
> On 22 November 2010 10:18, Michael Illgner
> <mi...@googlemail.com> wrote:
>> Hi folks
>> I am using the version 1.2 single-bundle-distribution for exposing an
>> OSGi service as a webservice and it is working like a charm. But I
>> have some difficulties configuring the embedded jetty server, e.g. for
>> increasing the number of worker threads, possible incoming
>> connections, using HTTPS etc. I have found this documentation
>> http://cxf.apache.org/docs/jetty-configuration.html but I do not
>> understand how to apply this information for the single bundle
>> distribution.
>> Do I have to unpack the distribution files and change some of the
>> "internal" files (default-web.xml) ?
>> Is there any simple example for jetty configuration available ?
>>
>> Thanks in advance
>> Michael
>>
>

Re: jetty configuration in DOSGi

Posted by David Bosschaert <da...@gmail.com>.
Hi Michael,

I have never tried this at all and this might very well fall into the
area where Sergey suggested to provide external configuration to
DOSGi.
Sergey would you have any thoughts here?

Cheers,

David

On 22 November 2010 10:18, Michael Illgner
<mi...@googlemail.com> wrote:
> Hi folks
> I am using the version 1.2 single-bundle-distribution for exposing an
> OSGi service as a webservice and it is working like a charm. But I
> have some difficulties configuring the embedded jetty server, e.g. for
> increasing the number of worker threads, possible incoming
> connections, using HTTPS etc. I have found this documentation
> http://cxf.apache.org/docs/jetty-configuration.html but I do not
> understand how to apply this information for the single bundle
> distribution.
> Do I have to unpack the distribution files and change some of the
> "internal" files (default-web.xml) ?
> Is there any simple example for jetty configuration available ?
>
> Thanks in advance
> Michael
>