You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Koray Duman <ko...@yahoo.com> on 2012/09/11 09:25:28 UTC

Re: Remote OSGI Service Call from eclipse RCP application as a consumer

Hi Angelo;

Thank you for your document on your blog about  
CXF/DOSGi in RCP Application with Spring DM and JAX-RS. It is alot of 
help me. I am not expert about OSGI. So that a need a little help. I couldn't find any solution. My problem is below

 I can run your 
examples in eclipse. But I want to run the server services as a 
application. For example I want to a RCP application and when I press 
the button server services will run and server will be ready. How can I do it?

By the way I think I don't need a web container(jetty or tomcat) to run server services.Is it true?

Thank you for your help

Best Regards,





________________________________
 From: Angelo zerr <an...@gmail.com>
To: users@cxf.apache.org; Koray Duman <ko...@yahoo.com> 
Cc: "david.bosschaert@gmail.com" <da...@gmail.com> 
Sent: Tuesday, July 17, 2012 2:44 AM
Subject: Re: Remote OSGI Service Call from eclipse RCP application as a consumer
 

Hi Koray,

I have explained how to use CXF/DOSGi in RCP Application with Spring DM and JAX-RS at http://angelozerr.wordpress.com/about/eclipse_spring/eclipse_spring_dosgi/
Hope it will help you.

Regards Angelo



2012/7/16 Koray Duman <ko...@yahoo.com>

Thank you a lot for your response. But In exactly one week in last week I tried to connect to remote OSGI with CXF-DOSGI on RCP application as a client. But I cannot do it. I spend a lot of time. And I cannot find any example or document and solition. What is you suggest.
>
>Thank You!!!
>
>
>
>
>________________________________
> From: David Bosschaert <da...@gmail.com>
>To: Koray Duman <ko...@yahoo.com>
>Cc: "users@cxf.apache.org" <us...@cxf.apache.org>
>Sent: Monday, July 16, 2012 6:32 PM
>
>Subject: Re: Remote OSGI Service Call from eclipse RCP application as a consumer
>
>Distributed OSGi Services with Apache CXF-DOSGi should work on any
>OSGi 4.2 or higher platform. I've tried it on Equinox, Felix and
>JBoss. If RCP provides an OSGi runtime as well (which I think it does)
>they should work there too.
>
>On 16 July 2012 15:49, Koray Duman <ko...@yahoo.com> wrote:
>> Ok. Which platform can be used Apache CXF servises as a client. Can I use
>> apache cxf services only on web applications.
>>
>> ________________________________
>> From: David Bosschaert <da...@gmail.com>
>> To: users@cxf.apache.org; Koray Duman <ko...@yahoo.com>
>> Sent: Monday, July 16, 2012 5:01 PM
>> Subject: Re: Remote OSGI Service Call from eclipse RCP application as a
>> consumer
>>
>> I'm not sure in what way an RCP application is different from a normal
>> OSGi context... If I remember it correctly RCP is a way to bundle a
>> bunch of Equinox/OSGi bundles together to create an application. I
>> haven't used RCP for many years, but isn't everything in there from a
>> runtime perspective not identical to running in an ordinary OSGi
>> framework?
>>
>> Best,
>>
>> David
>>
>> On 16 July 2012 14:36, Koray Duman <ko...@yahoo.com> wrote:
>>> Hi,
>>>
>>> I had asked before but I couldnt any responce. How can I use Apache cxf on
>>> eclipse RCP applcaition as a client. I cannot get remote service on RCP
>>> application. How can I do it?
>>>
>>> Thank you
>>>
>>>
>>>
>>> ________________________________
>>>  From: Koray Duman <ko...@yahoo.com>
>>> To: "users@cxf.apache.org" <us...@cxf.apache.org>
>>> Sent: Saturday, July 14, 2012 5:11 PM
>>> Subject: Remote OSGI Service Call from eclipse RCP application as a
>>> consumer
>>>
>>> Hi;
>>>
>>> I am tiring call the remote  osgi service from eclipse RCP application.(My
>>> RCP application is consumer/client) In my OSGI service application and cxf
>>> are running in the osgi. But I cant call osgi services from in my eclipse
>>> RCP application. In RCP application ServiceTracker cannot be added remote
>>> osgi service. I added OSG-INF\remote-service\remote-service.xml. But
>>> remote-service.xml file not readed from In RCP application.Can you give
>>> suggest? How can I find any example about
>>> this problem
>>>
>>> Thank you
>>
>>

Re: Remote OSGI Service Call from eclipse RCP application as a consumer

Posted by Angelo zerr <an...@gmail.com>.
Hi Koray,

2012/9/11 Koray Duman <ko...@yahoo.com>

> Hi Angelo;
>
> Thank you for your document on your blog about CXF/DOSGi in RCP
> Application with Spring DM and JAX-RS. It is alot of help me.
>

Youe are welcome.


> I am not expert about OSGI. So that a need a little help. I couldn't find
> any solution. My problem is below
>
>  I can run your examples in eclipse. But I want to run the server services
> as a application. For example I want to a RCP application and when I press
> the button server services will run and server will be ready. How can I do
> it?
>

If I understand your need, you want a basic RCP Application with a button
"Start Server" which starts the server (which is hosted on the same
computer than server). Is that?
If it's that, your RCP Application hosts the OSGi bundles server+services
and the button "Start Server" start the Jetty OSGi server with Java code :

------------------------------------------------------------------------------------------------------------------------------------------------
Bundle#start("jetty.bundle???"))
------------------------------------------------------------------------------------------------------------------------------------------------

To get the Bundle with Eclipse RCP you can do

------------------------------------------------------------------------------------------------------------------------------------------------
Bundle bundle = org.eclipse.core.runtime.Platform.getBundle(symbolicName);
------------------------------------------------------------------------------------------------------------------------------------------------


> By the way I think I don't need a web container(jetty or tomcat) to run
> server services.Is it true?
>

No you need web container to manage your REST services. In my case I use
Jetty as OSGi bundle.

Regards Angelo

>
> Thank you for your help
>
> Best Regards,
>
>
>   ------------------------------
> *From:* Angelo zerr <an...@gmail.com>
>
> *To:* users@cxf.apache.org; Koray Duman <ko...@yahoo.com>
> *Cc:* "david.bosschaert@gmail.com" <da...@gmail.com>
> *Sent:* Tuesday, July 17, 2012 2:44 AM
>
> *Subject:* Re: Remote OSGI Service Call from eclipse RCP application as a
> consumer
>
> Hi Koray,
>
> I have explained how to use CXF/DOSGi in RCP Application with Spring DM
> and JAX-RS at
> http://angelozerr.wordpress.com/about/eclipse_spring/eclipse_spring_dosgi/
> Hope it will help you.
>
> Regards Angelo
>
>
> 2012/7/16 Koray Duman <ko...@yahoo.com>
>
> Thank you a lot for your response. But In exactly one week in last week I
> tried to connect to remote OSGI with CXF-DOSGI on RCP application as a
> client. But I cannot do it. I spend a lot of time. And I cannot find any
> example or document and solition. What is you suggest.
>
> Thank You!!!
>
>
>
> ________________________________
>  From: David Bosschaert <da...@gmail.com>
> To: Koray Duman <ko...@yahoo.com>
> Cc: "users@cxf.apache.org" <us...@cxf.apache.org>
> Sent: Monday, July 16, 2012 6:32 PM
> Subject: Re: Remote OSGI Service Call from eclipse RCP application as a
> consumer
>
> Distributed OSGi Services with Apache CXF-DOSGi should work on any
> OSGi 4.2 or higher platform. I've tried it on Equinox, Felix and
> JBoss. If RCP provides an OSGi runtime as well (which I think it does)
> they should work there too.
>
> On 16 July 2012 15:49, Koray Duman <ko...@yahoo.com> wrote:
> > Ok. Which platform can be used Apache CXF servises as a client. Can I use
> > apache cxf services only on web applications.
> >
> > ________________________________
> > From: David Bosschaert <da...@gmail.com>
> > To: users@cxf.apache.org; Koray Duman <ko...@yahoo.com>
> > Sent: Monday, July 16, 2012 5:01 PM
> > Subject: Re: Remote OSGI Service Call from eclipse RCP application as a
> > consumer
> >
> > I'm not sure in what way an RCP application is different from a normal
> > OSGi context... If I remember it correctly RCP is a way to bundle a
> > bunch of Equinox/OSGi bundles together to create an application. I
> > haven't used RCP for many years, but isn't everything in there from a
> > runtime perspective not identical to running in an ordinary OSGi
> > framework?
> >
> > Best,
> >
> > David
> >
> > On 16 July 2012 14:36, Koray Duman <ko...@yahoo.com> wrote:
> >> Hi,
> >>
> >> I had asked before but I couldnt any responce. How can I use Apache cxf
> on
> >> eclipse RCP applcaition as a client. I cannot get remote service on RCP
> >> application. How can I do it?
> >>
> >> Thank you
> >>
> >>
> >>
> >> ________________________________
> >>  From: Koray Duman <ko...@yahoo.com>
> >> To: "users@cxf.apache.org" <us...@cxf.apache.org>
> >> Sent: Saturday, July 14, 2012 5:11 PM
> >> Subject: Remote OSGI Service Call from eclipse RCP application as a
> >> consumer
> >>
> >> Hi;
> >>
> >> I am tiring call the remote  osgi service from eclipse RCP
> application.(My
> >> RCP application is consumer/client) In my OSGI service application and
> cxf
> >> are running in the osgi. But I cant call osgi services from in my
> eclipse
> >> RCP application. In RCP application ServiceTracker cannot be added
> remote
> >> osgi service. I added OSG-INF\remote-service\remote-service.xml. But
> >> remote-service.xml file not readed from In RCP application.Can you give
> >> suggest? How can I find any example about
> >> this problem
> >>
> >> Thank you
> >
> >
>
>
>
>
>