You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Saghar, Yusuf M." <na...@emory.edu> on 2013/04/22 19:22:25 UTC

CXF DOSGI - Minimal Bundles required to provide JAX-RS feature

Hi,
Can anyone tell me what are the minimum bundles required to provide JAX-RS feature in DOSGi ? I don't really care for "OSGi Remote Services Specification" implementation. The 1.4.0 multi-bundle distribution<http://repository.apache.org/service/local/repositories/releases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-multibundle-distribution/1.4.0/cxf-dosgi-ri-multibundle-distribution-1.4.0-dir.tar.gz> seem to have a lot of bundles most of which I may not be needing if I wanted to implement a REST service using JAX-RS. Are the other bundles such as ZooKeeper absolutely necessary ?

As a  side note , is there an OSGified version of Apache CXF independent from DOSGi project ?

Thanks,
Nadir
____________________________________________
Nadir Saghar
System Software Engineer
Center for Comprehensive Informatics, Emory University
36 Eagle Row, #567, Atlanta, GA 30322
Phone: 404-727-0046
nadirsaghar@emory.edu


________________________________

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Re: CXF DOSGI - Minimal Bundles required to provide JAX-RS feature

Posted by Sergey Beryozkin <sb...@gmail.com>.
On 22/04/13 18:22, Saghar, Yusuf M. wrote:
> Hi,
> Can anyone tell me what are the minimum bundles required to provide JAX-RS feature in DOSGi ? I don't really care for "OSGi Remote Services Specification" implementation. The 1.4.0 multi-bundle distribution<http://repository.apache.org/service/local/repositories/releases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-multibundle-distribution/1.4.0/cxf-dosgi-ri-multibundle-distribution-1.4.0-dir.tar.gz>  seem to have a lot of bundles most of which I may not be needing if I wanted to implement a REST service using JAX-RS. Are the other bundles such as ZooKeeper absolutely necessary ?
I think with DOSGi CXF 1.4  you can simply remove CXF JAX-RS module if 
you do not need it.
>
> As a  side note , is there an OSGified version of Apache CXF independent from DOSGi project ?
>
Yes, starting from CXF 2.6.0 all the modules are bundles

Sergey
> Thanks,
> Nadir
> ____________________________________________
> Nadir Saghar
> System Software Engineer
> Center for Comprehensive Informatics, Emory University
> 36 Eagle Row, #567, Atlanta, GA 30322
> Phone: 404-727-0046
> nadirsaghar@emory.edu
>
>
> ________________________________
>
> This e-mail message (including any attachments) is for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination, distribution
> or copying of this message (including any attachments) is strictly
> prohibited.
>
> If you have received this message in error, please contact
> the sender by reply e-mail message and destroy all copies of the
> original message (including attachments).
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

RE: CXF DOSGI - Minimal Bundles required to provide JAX-RS feature

Posted by Andrei Shakirin <as...@talend.com>.
Hi,

> I am using Equinox. I was using 1.3.1 Single-bundle Distribution JAR in my
> project previously. Recently I upgraded to 1.4.0. I noticed it was registering
> some services and exporting some packages that were conflicting with other
> bundles in my application. So I decided to use the Multi-bundle distribution.
> However there are just so many bundles in the dist , most of which I don't
> even need and perhaps conflicts with other bundles.

It is quite typical problem by playing with manual bundle configuration in Equinox. 
Other important aspects are:
1) org.osgi.framework.system.packages setting shows that packages are imported from JRE
2) bundle start level: default start level should be updated to "1" for some equinox bundles (common and ds) and cxf bundles should be started before application once.

> Anyhow , I have decided to create my own bundle using JAX-RS libraries from
> CXF 2.7.4 and implement a whiteboard pattern similar to DOSGi project.

DOSGi contains the most consistent bundles set to be deployed in Equinox.
If community has enough interest, it will be nice to provide P2 repository with CXF bundles to build Eclipse RCP applications.

Regards,
Andrei.

> -----Original Message-----
> From: Saghar, Yusuf M. [mailto:nadirsaghar@emory.edu]
> Sent: Dienstag, 23. April 2013 18:26
> To: users@cxf.apache.org
> Subject: Re: CXF DOSGI - Minimal Bundles required to provide JAX-RS feature
> 
> Thanks Chris,
> 
> I am using Equinox. I was using 1.3.1 Single-bundle Distribution JAR in my
> project previously. Recently I upgraded to 1.4.0. I noticed it was registering
> some services and exporting some packages that were conflicting with other
> bundles in my application. So I decided to use the Multi-bundle distribution.
> However there are just so many bundles in the dist , most of which I don't
> even need and perhaps conflicts with other bundles.
> Anyhow , I have decided to create my own bundle using JAX-RS libraries from
> CXF 2.7.4 and implement a whiteboard pattern similar to DOSGi project.
> 
> -Nadir
> ____________________________________________
> Nadir Saghar
> System Software Engineer
> Center for Comprehensive Informatics, Emory University
> 36 Eagle Row, #567, Atlanta, GA 30322
> Phone: 404-727-0046
> nadirsaghar@emory.edu
> 
> 
> 
> 
> 
> On 4/23/13 4:24 AM, "Christian Schneider" <ch...@die-schneider.net> wrote:
> 
> >Hi Nadir,
> >
> >what runtime do you use for OSGi? If you are just using OSGi on the
> >server then I recommend using Apache Karaf. We have cxf features for
> >Karaf that allow to install cxf very easily.  I have a tutorial at
> >http://liquid-reality.de/display/liquid/2011/12/22/Karaf+Tutorial+Part+
> >4+-
> >+CXF+Services+in+OSGi
> >.
> >
> >If you have a plain OSGi container like Felix or Equinox then the DOSGi
> >mutli bundle distro is the easiest way to start. There is no slimmed
> >down version for jaxrs though so you have to try to remove bundles and
> >see if it still works. You can use karaf though and check the bundles
> >installed there to get an idea which bundles you need. In karaf you
> >need at least the feature cxf-jaxrs.
> >
> >If you use Eclipse RCP then again the DOSGi distro is currently the
> >best way to start. I will start an effort to create a P2 repo for cxf soon.
> >Then it will be much easier to install cxf in Eclipse RCP.
> >
> >Best regards
> >
> >Christian
> >
> >
> >On 22.04.2013 19:22, Saghar, Yusuf M. wrote:
> >> Hi,
> >> Can anyone tell me what are the minimum bundles required to provide
> >>JAX-RS feature in DOSGi ? I don't really care for "OSGi Remote
> >>Services Specification" implementation. The 1.4.0 multi-bundle
> >>distribution<http://repository.apache.org/service/local/repositories/r
> >>ele
> >>ases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-multibundle-distributio
> >>n/1 .4.0/cxf-dosgi-ri-multibundle-distribution-1.4.0-dir.tar.gz> seem
> >>to have a lot of bundles most of which I may not be needing if I
> >>wanted to implement a REST service using JAX-RS. Are the other bundles
> >>such as ZooKeeper absolutely necessary ?
> >>
> >> As a  side note , is there an OSGified version of Apache CXF
> >>independent from DOSGi project ?
> >>
> >> Thanks,
> >> Nadir
> >> ____________________________________________
> >> Nadir Saghar
> >> System Software Engineer
> >> Center for Comprehensive Informatics, Emory University
> >> 36 Eagle Row, #567, Atlanta, GA 30322
> >> Phone: 404-727-0046
> >> nadirsaghar@emory.edu
> >>
> >>
> >> ________________________________
> >>
> >> This e-mail message (including any attachments) is for the sole use
> >> of the intended recipient(s) and may contain confidential and
> >> privileged information. If the reader of this message is not the
> >> intended recipient, you are hereby notified that any dissemination,
> >> distribution or copying of this message (including any attachments)
> >> is strictly prohibited.
> >>
> >> If you have received this message in error, please contact the sender
> >> by reply e-mail message and destroy all copies of the original
> >> message (including attachments).
> >>
> >
> >
> >--
> >Christian Schneider
> >http://www.liquid-reality.de
> >
> >Open Source Architect
> >http://www.talend.com
> >


Re: CXF DOSGI - Minimal Bundles required to provide JAX-RS feature

Posted by "Saghar, Yusuf M." <na...@emory.edu>.
Thanks Chris,

I am using Equinox. I was using 1.3.1 Single-bundle Distribution JAR in my
project previously. Recently I upgraded to 1.4.0. I noticed it was
registering some services and exporting some packages that were
conflicting with other bundles in my application. So I decided to use the
Multi-bundle distribution. However there are just so many bundles in the
dist , most of which I don't even need and perhaps conflicts with other
bundles. 
Anyhow , I have decided to create my own bundle using JAX-RS libraries
from CXF 2.7.4 and implement a whiteboard pattern similar to DOSGi
project. 

-Nadir
____________________________________________
Nadir Saghar
System Software Engineer
Center for Comprehensive Informatics, Emory University
36 Eagle Row, #567, Atlanta, GA 30322
Phone: 404-727-0046
nadirsaghar@emory.edu





On 4/23/13 4:24 AM, "Christian Schneider" <ch...@die-schneider.net> wrote:

>Hi Nadir,
>
>what runtime do you use for OSGi? If you are just using OSGi on the
>server then I recommend using Apache Karaf. We have cxf features for
>Karaf that allow to install cxf very easily.  I have a tutorial at
>http://liquid-reality.de/display/liquid/2011/12/22/Karaf+Tutorial+Part+4+-
>+CXF+Services+in+OSGi
>.
>
>If you have a plain OSGi container like Felix or Equinox then the DOSGi
>mutli bundle distro is the easiest way to start. There is no slimmed
>down version for jaxrs though so you have to try to remove bundles and
>see if it still works. You can use karaf though and check the bundles
>installed there to get an idea which bundles you need. In karaf you need
>at least the feature cxf-jaxrs.
>
>If you use Eclipse RCP then again the DOSGi distro is currently the best
>way to start. I will start an effort to create a P2 repo for cxf soon.
>Then it will be much easier to install cxf in Eclipse RCP.
>
>Best regards
>
>Christian
>
>
>On 22.04.2013 19:22, Saghar, Yusuf M. wrote:
>> Hi,
>> Can anyone tell me what are the minimum bundles required to provide
>>JAX-RS feature in DOSGi ? I don't really care for "OSGi Remote Services
>>Specification" implementation. The 1.4.0 multi-bundle
>>distribution<http://repository.apache.org/service/local/repositories/rele
>>ases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-multibundle-distribution/1
>>.4.0/cxf-dosgi-ri-multibundle-distribution-1.4.0-dir.tar.gz> seem to
>>have a lot of bundles most of which I may not be needing if I wanted to
>>implement a REST service using JAX-RS. Are the other bundles such as
>>ZooKeeper absolutely necessary ?
>>
>> As a  side note , is there an OSGified version of Apache CXF
>>independent from DOSGi project ?
>>
>> Thanks,
>> Nadir
>> ____________________________________________
>> Nadir Saghar
>> System Software Engineer
>> Center for Comprehensive Informatics, Emory University
>> 36 Eagle Row, #567, Atlanta, GA 30322
>> Phone: 404-727-0046
>> nadirsaghar@emory.edu
>>
>>
>> ________________________________
>>
>> This e-mail message (including any attachments) is for the sole use of
>> the intended recipient(s) and may contain confidential and privileged
>> information. If the reader of this message is not the intended
>> recipient, you are hereby notified that any dissemination, distribution
>> or copying of this message (including any attachments) is strictly
>> prohibited.
>>
>> If you have received this message in error, please contact
>> the sender by reply e-mail message and destroy all copies of the
>> original message (including attachments).
>>
>
>
>-- 
>Christian Schneider
>http://www.liquid-reality.de
>
>Open Source Architect
>http://www.talend.com
>


Re: CXF DOSGI - Minimal Bundles required to provide JAX-RS feature

Posted by Christian Schneider <ch...@die-schneider.net>.
Hi Nadir,

what runtime do you use for OSGi? If you are just using OSGi on the 
server then I recommend using Apache Karaf. We have cxf features for 
Karaf that allow to install cxf very easily.  I have a tutorial at 
http://liquid-reality.de/display/liquid/2011/12/22/Karaf+Tutorial+Part+4+-+CXF+Services+in+OSGi 
.

If you have a plain OSGi container like Felix or Equinox then the DOSGi 
mutli bundle distro is the easiest way to start. There is no slimmed 
down version for jaxrs though so you have to try to remove bundles and 
see if it still works. You can use karaf though and check the bundles 
installed there to get an idea which bundles you need. In karaf you need 
at least the feature cxf-jaxrs.

If you use Eclipse RCP then again the DOSGi distro is currently the best 
way to start. I will start an effort to create a P2 repo for cxf soon. 
Then it will be much easier to install cxf in Eclipse RCP.

Best regards

Christian


On 22.04.2013 19:22, Saghar, Yusuf M. wrote:
> Hi,
> Can anyone tell me what are the minimum bundles required to provide JAX-RS feature in DOSGi ? I don't really care for "OSGi Remote Services Specification" implementation. The 1.4.0 multi-bundle distribution<http://repository.apache.org/service/local/repositories/releases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-multibundle-distribution/1.4.0/cxf-dosgi-ri-multibundle-distribution-1.4.0-dir.tar.gz> seem to have a lot of bundles most of which I may not be needing if I wanted to implement a REST service using JAX-RS. Are the other bundles such as ZooKeeper absolutely necessary ?
>
> As a  side note , is there an OSGified version of Apache CXF independent from DOSGi project ?
>
> Thanks,
> Nadir
> ____________________________________________
> Nadir Saghar
> System Software Engineer
> Center for Comprehensive Informatics, Emory University
> 36 Eagle Row, #567, Atlanta, GA 30322
> Phone: 404-727-0046
> nadirsaghar@emory.edu
>
>
> ________________________________
>
> This e-mail message (including any attachments) is for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination, distribution
> or copying of this message (including any attachments) is strictly
> prohibited.
>
> If you have received this message in error, please contact
> the sender by reply e-mail message and destroy all copies of the
> original message (including attachments).
>


-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com