You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Croc <ma...@googlemail.com> on 2012/08/11 19:34:37 UTC

Incorrect greeter_rest demo url on the dosgi page

Hi all,

I guess this is correct place to raise this. The I the url for the
greeter_rest demo points to the normal simple greeter demo. See here:

http://cxf.apache.org/distributed-osgi.html

I tried a few combinations of what it could be but only got 404's. Does the
page exist?

Thanks!



--
View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-greeter-rest-demo-url-on-the-dosgi-page-tp5712329.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Incorrect greeter_rest demo url on the dosgi page

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 12/08/12 20:54, Croc wrote:
> Thanks for the advice, Sergey.
>
> I'm having a but of trouble getting the examples working but I am using
> Servicemix so I'm still looking into whether there are multiple bundles
> providing the same services but actually do something which conflict with
> what the examples expect.
>
> I also think there are some minor bugs in the samples code. I noticed that
> the client was popping up a dialog for GreeterService rather than
> GreeterService2 when testing them as local OSGi services (rather than the RS
> DOSGi services).
>
> In greeter_rest/impl2:
>
> The Activator registers the GreeterServiceImpl2 as a provider of service
> interface GreeterService.class rather that GreeterService2.class.
>
> Also, GreeterServiceImpl2 implements GreeterService rather than
> GreeterService2.
>
> If this is useful I'll create an issue and submit the fixes.
The dialog for GreeterService2 is hidden behind the first one :-).


>
> Note, I've got them working locally, i.e. using OSGi services rather than
> the RS DOSGi services.
OK. Hope you can make it work with ServiceMix - I did do it few months 
back with the Karaf-based distro...

Cheers, SErgey
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-greeter-rest-demo-url-on-the-dosgi-page-tp5712329p5712363.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Sergey Beryozkin

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

Blog: http://sberyozkin.blogspot.com

Re: Incorrect greeter_rest demo url on the dosgi page

Posted by Croc <ma...@googlemail.com>.
Thanks for the advice, Sergey.

I'm having a but of trouble getting the examples working but I am using
Servicemix so I'm still looking into whether there are multiple bundles
providing the same services but actually do something which conflict with
what the examples expect.

I also think there are some minor bugs in the samples code. I noticed that
the client was popping up a dialog for GreeterService rather than
GreeterService2 when testing them as local OSGi services (rather than the RS
DOSGi services).

In greeter_rest/impl2:

The Activator registers the GreeterServiceImpl2 as a provider of service
interface GreeterService.class rather that GreeterService2.class.

Also, GreeterServiceImpl2 implements GreeterService rather than
GreeterService2.

If this is useful I'll create an issue and submit the fixes.

Note, I've got them working locally, i.e. using OSGi services rather than
the RS DOSGi services.



--
View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-greeter-rest-demo-url-on-the-dosgi-page-tp5712329p5712363.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Incorrect greeter_rest demo url on the dosgi page

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 11/08/12 20:34, Croc wrote:
> Hi all,
>
> I guess this is correct place to raise this. The I the url for the
> greeter_rest demo points to the normal simple greeter demo. See here:
>
> http://cxf.apache.org/distributed-osgi.html
>
> I tried a few combinations of what it could be but only got 404's. Does the
> page exist?
>
Not at the moment. I linked to the greeter demo at a time because I 
thought it was nearly identical to the greeter demo, and I was not keen 
to duplicate the good description David did for the greeter demo.
I should create a simple page indeed.

You can find a very short description here:
http://cxf.apache.org/docs/jax-rs.html#JAX-RS-IntegrationwithDistributedOSGi.

But if you read the greater demo one then you will know how greeter_rest 
works. The main differences are:
- JAX-RS is used instead
- GreeterService2 does not use annotations at all
- has two implementation bundles, impl2 added to the trunk only and 
shows the combination of HTTP context and rs addresses

Cheers, Sergey
> Thanks!
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-greeter-rest-demo-url-on-the-dosgi-page-tp5712329.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Sergey Beryozkin

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

Blog: http://sberyozkin.blogspot.com