You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Daniel Kulp <dk...@apache.org> on 2010/02/01 21:35:09 UTC
Re: Minimum set of CXF OSGi bundles required for JAX-WS
I don't think we have a minimum list for OSGi yet. You could probably start
with the information in:
http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/lib/WHICH_JARS
and go from there. Any updates to that file to support OSGi use cases would
be a great help or even updates for the wiki.
Dan
On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
> Hi list,
>
> I have an OSGi based application that now has to provide web services,
> preferably using JAX-WS annotations. Unfortunately the JVM-included RI is
> not OSGi-aware and therefore I need to use 3rd party libs.
>
> I've already worked with DOSGi, namely the single bundle distribution, in
> another project, which worked fine. Now, in my current project I already
> have a set of bundles that implement services also provided by the DOSGi
> single bundle distribution. Because of that it comes to "collisions", e.g.
> of two servlet containers starting in the same VM and ports. Furthermore
> it uses more memory which is an issue for me.
>
> Now, my question is: Which is the minimal set of (CXF) OSGi bundles (e.g.
> from the DOSGi multi-bundle distribution) that need to be deployed into an
> OSGi runtime environment in order to run JAX-WS based web services?
>
>
> Thanks and kind regards,
> Daniel
>
>
> P.S.: I can imagine that this is a question many developers ask themselves.
> Therefore, I think that adding such information to the documentation would
> be great. Also questions like "which bundles do I need for JAX-RS,
> JAX-XXX, ..." would be interesting. I searched but I couldn't find. If
> there is I would be happy to be pointed to!
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog
RE: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Sergey Beryozkin <sb...@progress.com>.
Hi
>
> What is your opinion ? Do you think there's a possibility out there to extend the CXF itself too, without duplicating what DOSGI RI does ?
I have a more general problem. I think that, generally speaking, there are so many libs out there that are not OSGi-aware for various reasons. Surely, as I'm using OSGi I would love to have that changed to as many libs as possible. I see the inherent problem that the people working on these projects might have nothing to do with OSGi at all. Because of that, there are many projects (such as DOSGi) bundling those APIs for some specific use case but often also not contributing OSGi-fication to the libs they use.
> S.B : some jars do become bundles such as jettison 1.2 for ex, some, such as jaxws or jaxrs api libs require (OSGI) service locators. Perhaps, future (api) libs will be easy to deploy in OSGI without having to create the OSGI related libs too.
For example, DOSGI does a lot more than simply providing a JAX-WS implementation,
> S.B : I'm actually thinking it does not do that much (service publication, optional discovery, service consumption, again optional if you have some other 3rd party consumer) but perhaps we can manage to create leaner DOSGI distributions once individual CXF modules get osgi-fied.
while I currently only need a plain JAX-WS implementation that is OSGi-capable. Therefore I ideally wouldn't want to use the shotgun approach and use DOSGI just to provide one or two web service endpoints. It would be nicer to be using only the minimal set of functionality that is really required. When I started using OSGI I thought that this is exactly what OSGI besides other things stands for. Custom tailored lean software.
> S.B. DOSGI does not get in the way of the developers preferring the OSGI-focused approach toward registering services. AFAIK, the idea was to make this approach even more popular...
So, regarding your question if CXF itself could be extended I would say that making the CXF bundles themselves OSGi-aware and providing e.g. service listeners would help. But... maybe I'm totally wrong in my understanding and that's already possible, e.g. by using a specific set of bundles of DOSGI?!
> S.B May be you can do a simple activator in your own bundle and use JAXWS API to publish an endpoint ? This is what CXF DSW in DOSGI does too (but using CXF-specific api) - it does exactly what you're suggesting.
Cheers, Sergey
Regards,
Daniel
>
> Cheers, Sergey
>
> -----Original Message-----
> From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
> Sent: 01 February 2010 23:35
> To: users@cxf.apache.org
> Cc: Daniel Kulp
> Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
>
> Sergey,
>
> I asked that question regarding the JARs listed in the WHICH_JARS file. If I were to use these there surely must be one bundle listening for service registrations that e.g. contains JAX-WS annotations to register them with the servlet container and so on.
>
>
> For DOSGi itself I know of the ways making it work.
>
> Regards,
> Daniel
>
> Am 02.02.2010 um 00:29 schrieb Sergey Beryozkin:
>
>> Can you clarify please ?
>>
>> With DOSGI you just register an OSGI service and it will be exposed as needed...
>>
>> Cheers, Sergey
>>
>> -----Original Message-----
>> From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
>> Sent: 01 February 2010 22:40
>> To: Daniel Kulp
>> Cc: users@cxf.apache.org
>> Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
>>
>> Hmm. Do you know how I would register my service instance with the JAX-WS implementation? Could I do that over the service registry or by calling some API methods of one of these bundles?
>>
>> Daniel
>>
>> Am 01.02.2010 um 23:36 schrieb Daniel Kulp:
>>
>>> On Mon February 1 2010 5:33:33 pm Daniel Bimschas wrote:
>>>> Dan,
>>>>
>>>> thank you. Do I correctly understand that the jars listed in that file are
>>>> not yet necessarily OSGi compliant bundles? Or are they?
>>>
>>> Not all of them are, no. You would need to check the equivalent bundle for
>>> which each of those jars should have one.
>>>
>>> Dan
>>>
>>>
>>>
>>>> Regards,
>>>> Daniel
>>>>
>>>> Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
>>>>> I don't think we have a minimum list for OSGi yet. You could probably
>>>>> start with the information in:
>>>>>
>>>>> http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/l
>>>>> ib/WHICH_JARS
>>>>>
>>>>> and go from there. Any updates to that file to support OSGi use cases
>>>>> would be a great help or even updates for the wiki.
>>>>>
>>>>> Dan
>>>>>
>>>>> On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
>>>>>> Hi list,
>>>>>>
>>>>>> I have an OSGi based application that now has to provide web services,
>>>>>> preferably using JAX-WS annotations. Unfortunately the JVM-included RI
>>>>>> is not OSGi-aware and therefore I need to use 3rd party libs.
>>>>>>
>>>>>> I've already worked with DOSGi, namely the single bundle distribution,
>>>>>> in another project, which worked fine. Now, in my current project I
>>>>>> already have a set of bundles that implement services also provided by
>>>>>> the DOSGi single bundle distribution. Because of that it comes to
>>>>>> "collisions", e.g. of two servlet containers starting in the same VM and
>>>>>> ports. Furthermore it uses more memory which is an issue for me.
>>>>>>
>>>>>> Now, my question is: Which is the minimal set of (CXF) OSGi bundles
>>>>>> (e.g. from the DOSGi multi-bundle distribution) that need to be deployed
>>>>>> into an OSGi runtime environment in order to run JAX-WS based web
>>>>>> services?
>>>>>>
>>>>>>
>>>>>> Thanks and kind regards,
>>>>>> Daniel
>>>>>>
>>>>>>
>>>>>> P.S.: I can imagine that this is a question many developers ask
>>>>>> themselves. Therefore, I think that adding such information to the
>>>>>> documentation would be great. Also questions like "which bundles do I
>>>>>> need for JAX-RS, JAX-XXX, ..." would be interesting. I searched but I
>>>>>> couldn't find. If there is I would be happy to be pointed to!
>>>>
>>>
>>> --
>>> Daniel Kulp
>>> dkulp@apache.org
>>> http://www.dankulp.com/blog
>>
>> --
>> M.Sc. Daniel Bimschas
>> Institute of Telematics, University of Lübeck
>> http://www.itm.uni-luebeck.de/users/bimschas
>> Ratzeburger Allee 160, 23538 Lübeck, Germany
>> Phone: +49 451 500 5389
>>
>
> --
> M.Sc. Daniel Bimschas
> Institute of Telematics, University of Lübeck
> http://www.itm.uni-luebeck.de/users/bimschas
> Ratzeburger Allee 160, 23538 Lübeck, Germany
> Phone: +49 451 500 5389
>
--
M.Sc. Daniel Bimschas
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/bimschas
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5389
Re: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Daniel Bimschas <bi...@itm.uni-luebeck.de>.
Am 02.02.2010 um 10:15 schrieb Sergey Beryozkin:
> Hi
>
> I've been thinking for a while about adding an activator and doing something similar to what you suggested, but every time I realize it is exactly what DOSGI RI does.
>
> After all, DOSGI is an osgi-fied set of jars listed in the WHICH_JARS file (possibly with few exceptions). If you look at the CXF DSW source then you can see it uses a ServiceListener (or ServiceTracker ?) to react to the OSGI service registrations. It requires that a service which is being registered has (dosgi-related) properties set to give it a hint how to expose the service...
Well, that was exactly my guess... that DOSGi does that thing ;-)
>
> What is your opinion ? Do you think there's a possibility out there to extend the CXF itself too, without duplicating what DOSGI RI does ?
I have a more general problem. I think that, generally speaking, there are so many libs out there that are not OSGi-aware for various reasons. Surely, as I'm using OSGi I would love to have that changed to as many libs as possible. I see the inherent problem that the people working on these projects might have nothing to do with OSGi at all. Because of that, there are many projects (such as DOSGi) bundling those APIs for some specific use case but often also not contributing OSGi-fication to the libs they use.
For example, DOSGI does a lot more than simply providing a JAX-WS implementation, while I currently only need a plain JAX-WS implementation that is OSGi-capable. Therefore I ideally wouldn't want to use the shotgun approach and use DOSGI just to provide one or two web service endpoints. It would be nicer to be using only the minimal set of functionality that is really required. When I started using OSGI I thought that this is exactly what OSGI besides other things stands for. Custom tailored lean software.
So, regarding your question if CXF itself could be extended I would say that making the CXF bundles themselves OSGi-aware and providing e.g. service listeners would help. But... maybe I'm totally wrong in my understanding and that's already possible, e.g. by using a specific set of bundles of DOSGI?!
Regards,
Daniel
>
> Cheers, Sergey
>
> -----Original Message-----
> From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
> Sent: 01 February 2010 23:35
> To: users@cxf.apache.org
> Cc: Daniel Kulp
> Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
>
> Sergey,
>
> I asked that question regarding the JARs listed in the WHICH_JARS file. If I were to use these there surely must be one bundle listening for service registrations that e.g. contains JAX-WS annotations to register them with the servlet container and so on.
>
>
> For DOSGi itself I know of the ways making it work.
>
> Regards,
> Daniel
>
> Am 02.02.2010 um 00:29 schrieb Sergey Beryozkin:
>
>> Can you clarify please ?
>>
>> With DOSGI you just register an OSGI service and it will be exposed as needed...
>>
>> Cheers, Sergey
>>
>> -----Original Message-----
>> From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
>> Sent: 01 February 2010 22:40
>> To: Daniel Kulp
>> Cc: users@cxf.apache.org
>> Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
>>
>> Hmm. Do you know how I would register my service instance with the JAX-WS implementation? Could I do that over the service registry or by calling some API methods of one of these bundles?
>>
>> Daniel
>>
>> Am 01.02.2010 um 23:36 schrieb Daniel Kulp:
>>
>>> On Mon February 1 2010 5:33:33 pm Daniel Bimschas wrote:
>>>> Dan,
>>>>
>>>> thank you. Do I correctly understand that the jars listed in that file are
>>>> not yet necessarily OSGi compliant bundles? Or are they?
>>>
>>> Not all of them are, no. You would need to check the equivalent bundle for
>>> which each of those jars should have one.
>>>
>>> Dan
>>>
>>>
>>>
>>>> Regards,
>>>> Daniel
>>>>
>>>> Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
>>>>> I don't think we have a minimum list for OSGi yet. You could probably
>>>>> start with the information in:
>>>>>
>>>>> http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/l
>>>>> ib/WHICH_JARS
>>>>>
>>>>> and go from there. Any updates to that file to support OSGi use cases
>>>>> would be a great help or even updates for the wiki.
>>>>>
>>>>> Dan
>>>>>
>>>>> On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
>>>>>> Hi list,
>>>>>>
>>>>>> I have an OSGi based application that now has to provide web services,
>>>>>> preferably using JAX-WS annotations. Unfortunately the JVM-included RI
>>>>>> is not OSGi-aware and therefore I need to use 3rd party libs.
>>>>>>
>>>>>> I've already worked with DOSGi, namely the single bundle distribution,
>>>>>> in another project, which worked fine. Now, in my current project I
>>>>>> already have a set of bundles that implement services also provided by
>>>>>> the DOSGi single bundle distribution. Because of that it comes to
>>>>>> "collisions", e.g. of two servlet containers starting in the same VM and
>>>>>> ports. Furthermore it uses more memory which is an issue for me.
>>>>>>
>>>>>> Now, my question is: Which is the minimal set of (CXF) OSGi bundles
>>>>>> (e.g. from the DOSGi multi-bundle distribution) that need to be deployed
>>>>>> into an OSGi runtime environment in order to run JAX-WS based web
>>>>>> services?
>>>>>>
>>>>>>
>>>>>> Thanks and kind regards,
>>>>>> Daniel
>>>>>>
>>>>>>
>>>>>> P.S.: I can imagine that this is a question many developers ask
>>>>>> themselves. Therefore, I think that adding such information to the
>>>>>> documentation would be great. Also questions like "which bundles do I
>>>>>> need for JAX-RS, JAX-XXX, ..." would be interesting. I searched but I
>>>>>> couldn't find. If there is I would be happy to be pointed to!
>>>>
>>>
>>> --
>>> Daniel Kulp
>>> dkulp@apache.org
>>> http://www.dankulp.com/blog
>>
>> --
>> M.Sc. Daniel Bimschas
>> Institute of Telematics, University of Lübeck
>> http://www.itm.uni-luebeck.de/users/bimschas
>> Ratzeburger Allee 160, 23538 Lübeck, Germany
>> Phone: +49 451 500 5389
>>
>
> --
> M.Sc. Daniel Bimschas
> Institute of Telematics, University of Lübeck
> http://www.itm.uni-luebeck.de/users/bimschas
> Ratzeburger Allee 160, 23538 Lübeck, Germany
> Phone: +49 451 500 5389
>
--
M.Sc. Daniel Bimschas
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/bimschas
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5389
RE: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Sergey Beryozkin <sb...@progress.com>.
Hi
I've been thinking for a while about adding an activator and doing something similar to what you suggested, but every time I realize it is exactly what DOSGI RI does.
After all, DOSGI is an osgi-fied set of jars listed in the WHICH_JARS file (possibly with few exceptions). If you look at the CXF DSW source then you can see it uses a ServiceListener (or ServiceTracker ?) to react to the OSGI service registrations. It requires that a service which is being registered has (dosgi-related) properties set to give it a hint how to expose the service...
What is your opinion ? Do you think there's a possibility out there to extend the CXF itself too, without duplicating what DOSGI RI does ?
Cheers, Sergey
-----Original Message-----
From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
Sent: 01 February 2010 23:35
To: users@cxf.apache.org
Cc: Daniel Kulp
Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
Sergey,
I asked that question regarding the JARs listed in the WHICH_JARS file. If I were to use these there surely must be one bundle listening for service registrations that e.g. contains JAX-WS annotations to register them with the servlet container and so on.
For DOSGi itself I know of the ways making it work.
Regards,
Daniel
Am 02.02.2010 um 00:29 schrieb Sergey Beryozkin:
> Can you clarify please ?
>
> With DOSGI you just register an OSGI service and it will be exposed as needed...
>
> Cheers, Sergey
>
> -----Original Message-----
> From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
> Sent: 01 February 2010 22:40
> To: Daniel Kulp
> Cc: users@cxf.apache.org
> Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
>
> Hmm. Do you know how I would register my service instance with the JAX-WS implementation? Could I do that over the service registry or by calling some API methods of one of these bundles?
>
> Daniel
>
> Am 01.02.2010 um 23:36 schrieb Daniel Kulp:
>
>> On Mon February 1 2010 5:33:33 pm Daniel Bimschas wrote:
>>> Dan,
>>>
>>> thank you. Do I correctly understand that the jars listed in that file are
>>> not yet necessarily OSGi compliant bundles? Or are they?
>>
>> Not all of them are, no. You would need to check the equivalent bundle for
>> which each of those jars should have one.
>>
>> Dan
>>
>>
>>
>>> Regards,
>>> Daniel
>>>
>>> Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
>>>> I don't think we have a minimum list for OSGi yet. You could probably
>>>> start with the information in:
>>>>
>>>> http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/l
>>>> ib/WHICH_JARS
>>>>
>>>> and go from there. Any updates to that file to support OSGi use cases
>>>> would be a great help or even updates for the wiki.
>>>>
>>>> Dan
>>>>
>>>> On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
>>>>> Hi list,
>>>>>
>>>>> I have an OSGi based application that now has to provide web services,
>>>>> preferably using JAX-WS annotations. Unfortunately the JVM-included RI
>>>>> is not OSGi-aware and therefore I need to use 3rd party libs.
>>>>>
>>>>> I've already worked with DOSGi, namely the single bundle distribution,
>>>>> in another project, which worked fine. Now, in my current project I
>>>>> already have a set of bundles that implement services also provided by
>>>>> the DOSGi single bundle distribution. Because of that it comes to
>>>>> "collisions", e.g. of two servlet containers starting in the same VM and
>>>>> ports. Furthermore it uses more memory which is an issue for me.
>>>>>
>>>>> Now, my question is: Which is the minimal set of (CXF) OSGi bundles
>>>>> (e.g. from the DOSGi multi-bundle distribution) that need to be deployed
>>>>> into an OSGi runtime environment in order to run JAX-WS based web
>>>>> services?
>>>>>
>>>>>
>>>>> Thanks and kind regards,
>>>>> Daniel
>>>>>
>>>>>
>>>>> P.S.: I can imagine that this is a question many developers ask
>>>>> themselves. Therefore, I think that adding such information to the
>>>>> documentation would be great. Also questions like "which bundles do I
>>>>> need for JAX-RS, JAX-XXX, ..." would be interesting. I searched but I
>>>>> couldn't find. If there is I would be happy to be pointed to!
>>>
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org
>> http://www.dankulp.com/blog
>
> --
> M.Sc. Daniel Bimschas
> Institute of Telematics, University of Lübeck
> http://www.itm.uni-luebeck.de/users/bimschas
> Ratzeburger Allee 160, 23538 Lübeck, Germany
> Phone: +49 451 500 5389
>
--
M.Sc. Daniel Bimschas
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/bimschas
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5389
Re: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Daniel Bimschas <bi...@itm.uni-luebeck.de>.
Sergey,
I asked that question regarding the JARs listed in the WHICH_JARS file. If I were to use these there surely must be one bundle listening for service registrations that e.g. contains JAX-WS annotations to register them with the servlet container and so on.
For DOSGi itself I know of the ways making it work.
Regards,
Daniel
Am 02.02.2010 um 00:29 schrieb Sergey Beryozkin:
> Can you clarify please ?
>
> With DOSGI you just register an OSGI service and it will be exposed as needed...
>
> Cheers, Sergey
>
> -----Original Message-----
> From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
> Sent: 01 February 2010 22:40
> To: Daniel Kulp
> Cc: users@cxf.apache.org
> Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
>
> Hmm. Do you know how I would register my service instance with the JAX-WS implementation? Could I do that over the service registry or by calling some API methods of one of these bundles?
>
> Daniel
>
> Am 01.02.2010 um 23:36 schrieb Daniel Kulp:
>
>> On Mon February 1 2010 5:33:33 pm Daniel Bimschas wrote:
>>> Dan,
>>>
>>> thank you. Do I correctly understand that the jars listed in that file are
>>> not yet necessarily OSGi compliant bundles? Or are they?
>>
>> Not all of them are, no. You would need to check the equivalent bundle for
>> which each of those jars should have one.
>>
>> Dan
>>
>>
>>
>>> Regards,
>>> Daniel
>>>
>>> Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
>>>> I don't think we have a minimum list for OSGi yet. You could probably
>>>> start with the information in:
>>>>
>>>> http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/l
>>>> ib/WHICH_JARS
>>>>
>>>> and go from there. Any updates to that file to support OSGi use cases
>>>> would be a great help or even updates for the wiki.
>>>>
>>>> Dan
>>>>
>>>> On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
>>>>> Hi list,
>>>>>
>>>>> I have an OSGi based application that now has to provide web services,
>>>>> preferably using JAX-WS annotations. Unfortunately the JVM-included RI
>>>>> is not OSGi-aware and therefore I need to use 3rd party libs.
>>>>>
>>>>> I've already worked with DOSGi, namely the single bundle distribution,
>>>>> in another project, which worked fine. Now, in my current project I
>>>>> already have a set of bundles that implement services also provided by
>>>>> the DOSGi single bundle distribution. Because of that it comes to
>>>>> "collisions", e.g. of two servlet containers starting in the same VM and
>>>>> ports. Furthermore it uses more memory which is an issue for me.
>>>>>
>>>>> Now, my question is: Which is the minimal set of (CXF) OSGi bundles
>>>>> (e.g. from the DOSGi multi-bundle distribution) that need to be deployed
>>>>> into an OSGi runtime environment in order to run JAX-WS based web
>>>>> services?
>>>>>
>>>>>
>>>>> Thanks and kind regards,
>>>>> Daniel
>>>>>
>>>>>
>>>>> P.S.: I can imagine that this is a question many developers ask
>>>>> themselves. Therefore, I think that adding such information to the
>>>>> documentation would be great. Also questions like "which bundles do I
>>>>> need for JAX-RS, JAX-XXX, ..." would be interesting. I searched but I
>>>>> couldn't find. If there is I would be happy to be pointed to!
>>>
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org
>> http://www.dankulp.com/blog
>
> --
> M.Sc. Daniel Bimschas
> Institute of Telematics, University of Lübeck
> http://www.itm.uni-luebeck.de/users/bimschas
> Ratzeburger Allee 160, 23538 Lübeck, Germany
> Phone: +49 451 500 5389
>
--
M.Sc. Daniel Bimschas
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/bimschas
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5389
RE: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Sergey Beryozkin <sb...@progress.com>.
Can you clarify please ?
With DOSGI you just register an OSGI service and it will be exposed as needed...
Cheers, Sergey
-----Original Message-----
From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
Sent: 01 February 2010 22:40
To: Daniel Kulp
Cc: users@cxf.apache.org
Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
Hmm. Do you know how I would register my service instance with the JAX-WS implementation? Could I do that over the service registry or by calling some API methods of one of these bundles?
Daniel
Am 01.02.2010 um 23:36 schrieb Daniel Kulp:
> On Mon February 1 2010 5:33:33 pm Daniel Bimschas wrote:
>> Dan,
>>
>> thank you. Do I correctly understand that the jars listed in that file are
>> not yet necessarily OSGi compliant bundles? Or are they?
>
> Not all of them are, no. You would need to check the equivalent bundle for
> which each of those jars should have one.
>
> Dan
>
>
>
>> Regards,
>> Daniel
>>
>> Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
>>> I don't think we have a minimum list for OSGi yet. You could probably
>>> start with the information in:
>>>
>>> http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/l
>>> ib/WHICH_JARS
>>>
>>> and go from there. Any updates to that file to support OSGi use cases
>>> would be a great help or even updates for the wiki.
>>>
>>> Dan
>>>
>>> On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
>>>> Hi list,
>>>>
>>>> I have an OSGi based application that now has to provide web services,
>>>> preferably using JAX-WS annotations. Unfortunately the JVM-included RI
>>>> is not OSGi-aware and therefore I need to use 3rd party libs.
>>>>
>>>> I've already worked with DOSGi, namely the single bundle distribution,
>>>> in another project, which worked fine. Now, in my current project I
>>>> already have a set of bundles that implement services also provided by
>>>> the DOSGi single bundle distribution. Because of that it comes to
>>>> "collisions", e.g. of two servlet containers starting in the same VM and
>>>> ports. Furthermore it uses more memory which is an issue for me.
>>>>
>>>> Now, my question is: Which is the minimal set of (CXF) OSGi bundles
>>>> (e.g. from the DOSGi multi-bundle distribution) that need to be deployed
>>>> into an OSGi runtime environment in order to run JAX-WS based web
>>>> services?
>>>>
>>>>
>>>> Thanks and kind regards,
>>>> Daniel
>>>>
>>>>
>>>> P.S.: I can imagine that this is a question many developers ask
>>>> themselves. Therefore, I think that adding such information to the
>>>> documentation would be great. Also questions like "which bundles do I
>>>> need for JAX-RS, JAX-XXX, ..." would be interesting. I searched but I
>>>> couldn't find. If there is I would be happy to be pointed to!
>>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
--
M.Sc. Daniel Bimschas
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/bimschas
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5389
Re: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Daniel Bimschas <bi...@itm.uni-luebeck.de>.
Hmm. Do you know how I would register my service instance with the JAX-WS implementation? Could I do that over the service registry or by calling some API methods of one of these bundles?
Daniel
Am 01.02.2010 um 23:36 schrieb Daniel Kulp:
> On Mon February 1 2010 5:33:33 pm Daniel Bimschas wrote:
>> Dan,
>>
>> thank you. Do I correctly understand that the jars listed in that file are
>> not yet necessarily OSGi compliant bundles? Or are they?
>
> Not all of them are, no. You would need to check the equivalent bundle for
> which each of those jars should have one.
>
> Dan
>
>
>
>> Regards,
>> Daniel
>>
>> Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
>>> I don't think we have a minimum list for OSGi yet. You could probably
>>> start with the information in:
>>>
>>> http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/l
>>> ib/WHICH_JARS
>>>
>>> and go from there. Any updates to that file to support OSGi use cases
>>> would be a great help or even updates for the wiki.
>>>
>>> Dan
>>>
>>> On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
>>>> Hi list,
>>>>
>>>> I have an OSGi based application that now has to provide web services,
>>>> preferably using JAX-WS annotations. Unfortunately the JVM-included RI
>>>> is not OSGi-aware and therefore I need to use 3rd party libs.
>>>>
>>>> I've already worked with DOSGi, namely the single bundle distribution,
>>>> in another project, which worked fine. Now, in my current project I
>>>> already have a set of bundles that implement services also provided by
>>>> the DOSGi single bundle distribution. Because of that it comes to
>>>> "collisions", e.g. of two servlet containers starting in the same VM and
>>>> ports. Furthermore it uses more memory which is an issue for me.
>>>>
>>>> Now, my question is: Which is the minimal set of (CXF) OSGi bundles
>>>> (e.g. from the DOSGi multi-bundle distribution) that need to be deployed
>>>> into an OSGi runtime environment in order to run JAX-WS based web
>>>> services?
>>>>
>>>>
>>>> Thanks and kind regards,
>>>> Daniel
>>>>
>>>>
>>>> P.S.: I can imagine that this is a question many developers ask
>>>> themselves. Therefore, I think that adding such information to the
>>>> documentation would be great. Also questions like "which bundles do I
>>>> need for JAX-RS, JAX-XXX, ..." would be interesting. I searched but I
>>>> couldn't find. If there is I would be happy to be pointed to!
>>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
--
M.Sc. Daniel Bimschas
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/bimschas
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5389
Re: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Daniel Kulp <dk...@apache.org>.
On Mon February 1 2010 5:33:33 pm Daniel Bimschas wrote:
> Dan,
>
> thank you. Do I correctly understand that the jars listed in that file are
> not yet necessarily OSGi compliant bundles? Or are they?
Not all of them are, no. You would need to check the equivalent bundle for
which each of those jars should have one.
Dan
> Regards,
> Daniel
>
> Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
> > I don't think we have a minimum list for OSGi yet. You could probably
> > start with the information in:
> >
> > http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/l
> >ib/WHICH_JARS
> >
> > and go from there. Any updates to that file to support OSGi use cases
> > would be a great help or even updates for the wiki.
> >
> > Dan
> >
> > On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
> >> Hi list,
> >>
> >> I have an OSGi based application that now has to provide web services,
> >> preferably using JAX-WS annotations. Unfortunately the JVM-included RI
> >> is not OSGi-aware and therefore I need to use 3rd party libs.
> >>
> >> I've already worked with DOSGi, namely the single bundle distribution,
> >> in another project, which worked fine. Now, in my current project I
> >> already have a set of bundles that implement services also provided by
> >> the DOSGi single bundle distribution. Because of that it comes to
> >> "collisions", e.g. of two servlet containers starting in the same VM and
> >> ports. Furthermore it uses more memory which is an issue for me.
> >>
> >> Now, my question is: Which is the minimal set of (CXF) OSGi bundles
> >> (e.g. from the DOSGi multi-bundle distribution) that need to be deployed
> >> into an OSGi runtime environment in order to run JAX-WS based web
> >> services?
> >>
> >>
> >> Thanks and kind regards,
> >> Daniel
> >>
> >>
> >> P.S.: I can imagine that this is a question many developers ask
> >> themselves. Therefore, I think that adding such information to the
> >> documentation would be great. Also questions like "which bundles do I
> >> need for JAX-RS, JAX-XXX, ..." would be interesting. I searched but I
> >> couldn't find. If there is I would be happy to be pointed to!
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog
Re: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Daniel Bimschas <bi...@itm.uni-luebeck.de>.
Sergey,
that's the information I needed, even if I hoped there would be even a "leaner" set of bundles being sufficient ;-)
Thanks and regards,
Daniel
Am 02.02.2010 um 00:26 schrieb Sergey Beryozkin:
> Hi
>
> You probably just need to take the bundles listed with the multibundle distribution, all of those bundles are likely needed except for discovery-related ones (discovery is an optional component of dosgi)...
>
> Cheers, Sergey
>
> -----Original Message-----
> From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
> Sent: 01 February 2010 22:34
> To: Daniel Kulp
> Cc: users@cxf.apache.org
> Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
>
> Dan,
>
> thank you. Do I correctly understand that the jars listed in that file are not yet necessarily OSGi compliant bundles? Or are they?
>
> Regards,
> Daniel
>
> Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
>
>>
>> I don't think we have a minimum list for OSGi yet. You could probably start
>> with the information in:
>>
>> http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/lib/WHICH_JARS
>>
>> and go from there. Any updates to that file to support OSGi use cases would
>> be a great help or even updates for the wiki.
>>
>> Dan
>>
>>
>>
>> On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
>>> Hi list,
>>>
>>> I have an OSGi based application that now has to provide web services,
>>> preferably using JAX-WS annotations. Unfortunately the JVM-included RI is
>>> not OSGi-aware and therefore I need to use 3rd party libs.
>>>
>>> I've already worked with DOSGi, namely the single bundle distribution, in
>>> another project, which worked fine. Now, in my current project I already
>>> have a set of bundles that implement services also provided by the DOSGi
>>> single bundle distribution. Because of that it comes to "collisions", e.g.
>>> of two servlet containers starting in the same VM and ports. Furthermore
>>> it uses more memory which is an issue for me.
>>>
>>> Now, my question is: Which is the minimal set of (CXF) OSGi bundles (e.g.
>>> from the DOSGi multi-bundle distribution) that need to be deployed into an
>>> OSGi runtime environment in order to run JAX-WS based web services?
>>>
>>>
>>> Thanks and kind regards,
>>> Daniel
>>>
>>>
>>> P.S.: I can imagine that this is a question many developers ask themselves.
>>> Therefore, I think that adding such information to the documentation would
>>> be great. Also questions like "which bundles do I need for JAX-RS,
>>> JAX-XXX, ..." would be interesting. I searched but I couldn't find. If
>>> there is I would be happy to be pointed to!
>>>
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org
>> http://www.dankulp.com/blog
>
> --
> M.Sc. Daniel Bimschas
> Institute of Telematics, University of Lübeck
> http://www.itm.uni-luebeck.de/users/bimschas
> Ratzeburger Allee 160, 23538 Lübeck, Germany
> Phone: +49 451 500 5389
>
--
M.Sc. Daniel Bimschas
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/bimschas
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5389
RE: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Sergey Beryozkin <sb...@progress.com>.
Hi
You probably just need to take the bundles listed with the multibundle distribution, all of those bundles are likely needed except for discovery-related ones (discovery is an optional component of dosgi)...
Cheers, Sergey
-----Original Message-----
From: Daniel Bimschas [mailto:bimschas@itm.uni-luebeck.de]
Sent: 01 February 2010 22:34
To: Daniel Kulp
Cc: users@cxf.apache.org
Subject: Re: Minimum set of CXF OSGi bundles required for JAX-WS
Dan,
thank you. Do I correctly understand that the jars listed in that file are not yet necessarily OSGi compliant bundles? Or are they?
Regards,
Daniel
Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
>
> I don't think we have a minimum list for OSGi yet. You could probably start
> with the information in:
>
> http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/lib/WHICH_JARS
>
> and go from there. Any updates to that file to support OSGi use cases would
> be a great help or even updates for the wiki.
>
> Dan
>
>
>
> On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
>> Hi list,
>>
>> I have an OSGi based application that now has to provide web services,
>> preferably using JAX-WS annotations. Unfortunately the JVM-included RI is
>> not OSGi-aware and therefore I need to use 3rd party libs.
>>
>> I've already worked with DOSGi, namely the single bundle distribution, in
>> another project, which worked fine. Now, in my current project I already
>> have a set of bundles that implement services also provided by the DOSGi
>> single bundle distribution. Because of that it comes to "collisions", e.g.
>> of two servlet containers starting in the same VM and ports. Furthermore
>> it uses more memory which is an issue for me.
>>
>> Now, my question is: Which is the minimal set of (CXF) OSGi bundles (e.g.
>> from the DOSGi multi-bundle distribution) that need to be deployed into an
>> OSGi runtime environment in order to run JAX-WS based web services?
>>
>>
>> Thanks and kind regards,
>> Daniel
>>
>>
>> P.S.: I can imagine that this is a question many developers ask themselves.
>> Therefore, I think that adding such information to the documentation would
>> be great. Also questions like "which bundles do I need for JAX-RS,
>> JAX-XXX, ..." would be interesting. I searched but I couldn't find. If
>> there is I would be happy to be pointed to!
>>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
--
M.Sc. Daniel Bimschas
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/bimschas
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5389
Re: Minimum set of CXF OSGi bundles required for JAX-WS
Posted by Daniel Bimschas <bi...@itm.uni-luebeck.de>.
Dan,
thank you. Do I correctly understand that the jars listed in that file are not yet necessarily OSGi compliant bundles? Or are they?
Regards,
Daniel
Am 01.02.2010 um 21:35 schrieb Daniel Kulp:
>
> I don't think we have a minimum list for OSGi yet. You could probably start
> with the information in:
>
> http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/lib/WHICH_JARS
>
> and go from there. Any updates to that file to support OSGi use cases would
> be a great help or even updates for the wiki.
>
> Dan
>
>
>
> On Sat January 30 2010 1:58:32 pm Daniel Bimschas wrote:
>> Hi list,
>>
>> I have an OSGi based application that now has to provide web services,
>> preferably using JAX-WS annotations. Unfortunately the JVM-included RI is
>> not OSGi-aware and therefore I need to use 3rd party libs.
>>
>> I've already worked with DOSGi, namely the single bundle distribution, in
>> another project, which worked fine. Now, in my current project I already
>> have a set of bundles that implement services also provided by the DOSGi
>> single bundle distribution. Because of that it comes to "collisions", e.g.
>> of two servlet containers starting in the same VM and ports. Furthermore
>> it uses more memory which is an issue for me.
>>
>> Now, my question is: Which is the minimal set of (CXF) OSGi bundles (e.g.
>> from the DOSGi multi-bundle distribution) that need to be deployed into an
>> OSGi runtime environment in order to run JAX-WS based web services?
>>
>>
>> Thanks and kind regards,
>> Daniel
>>
>>
>> P.S.: I can imagine that this is a question many developers ask themselves.
>> Therefore, I think that adding such information to the documentation would
>> be great. Also questions like "which bundles do I need for JAX-RS,
>> JAX-XXX, ..." would be interesting. I searched but I couldn't find. If
>> there is I would be happy to be pointed to!
>>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
--
M.Sc. Daniel Bimschas
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/bimschas
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5389