You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Pierre Henry Perret <ph...@gmail.com> on 2011/01/04 23:52:58 UTC

Requires ws interface

Hello,

Is it possible to require (@Requires) a web service ?

Re: Requires ws interface

Posted by Pierre Henry Perret <ph...@gmail.com>.
Thanks Clement.

I have declared an importer for the WS and it is registered in the OSGi when
I launch - with dosgi bundle. The  bundle is STARTED but the ws doesnt seem
 to ba called - In debug mode, it never goes in the call: the requiring
bundle is not activated - no logs.

I use ipojo annotations 1.4.3

Thanks

Pierre



2011/1/5 Clement Escoffier <cl...@gmail.com>

> Hello,
>
> On 04.01.11 23:52, "Pierre Henry Perret" <ph...@gmail.com> wrote:
>
> >Hello,
> >
> >Is it possible to require (@Requires) a web service ?
>
> Not directly, but you can import the web service as an OSGi service using
> distributed osgi (http://cxf.apache.org/distributed-osgi.html and
> http://blog.akquinet.de/2009/09/14/distributed-osgi-application-with-apache
> -cxf-dosgi/).
>
> Once imported as a 'plain' OSGi service, the @Requires works out of the
> box.
>
> Regards,
>
> Clement
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Requires ws interface

Posted by Pierre Henry Perret <ph...@gmail.com>.
Yes. It tells about that exactly - excepting the fact that the ws IS created
by dosgi.

In my cas, there is an existing ws somewhere on the net and I must import
that one - register it - in the target framework to make it it available for
other bundles (require it) as a service.

Pierre

2011/1/11 Clement Escoffier <cl...@gmail.com>

> Hi,
>
> On 10.01.11 15:07, "Pierre Henry Perret" <ph...@gmail.com> wrote:
>
> >Clement,
> >
> >If I understand correctly, it means that if I have somewhere a WS i.e
> >http://somwhere/webservice , the dosgi cxf implementation allows to
> >'import'
> >this ws in the OSGi framework as a registered service in my framework,
> >here
> >Felix, with as simple a configuration as:
> >___________________________
> ><service-descriptions xmlns="http://www.osgi.org/xmlns/sd/v1.0.0">
> ><service-description>
> ><provide interface="my.package.app.Service" />
> ><property name="service.exported.interfaces">*</property>
> ><property name="service.exported.configs">
> >org.apache.cxf.ws
> >    </property>
> ><property name="org.apache.cxf.ws.address">
> >http://smoewhere/webservice
> ></property>
> ><property name="sevice.imported">true</property>
> ></service-description>
> ></service-descriptions>
> >________________________
> >
> >After reading that service description there will be a registered OSGi
> >service in the framework that is a proxy for the webservice.
> >
> >Is that correct?
>
> I'm not a dosgi expert, but I would say yes. Did you check the post post I
> sent you?
>
> Regards,
>
> Clement
>
>
> >
> >
> >
> >2011/1/5 Clement Escoffier <cl...@gmail.com>
> >
> >> Hello,
> >>
> >> On 04.01.11 23:52, "Pierre Henry Perret" <ph...@gmail.com> wrote:
> >>
> >> >Hello,
> >> >
> >> >Is it possible to require (@Requires) a web service ?
> >>
> >> Not directly, but you can import the web service as an OSGi service
> >>using
> >> distributed osgi (http://cxf.apache.org/distributed-osgi.html and
> >>
> >>
> http://blog.akquinet.de/2009/09/14/distributed-osgi-application-with-apac
> >>he
> >> -cxf-dosgi/).
> >>
> >> Once imported as a 'plain' OSGi service, the @Requires works out of the
> >> box.
> >>
> >> Regards,
> >>
> >> Clement
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >> For additional commands, e-mail: users-help@felix.apache.org
> >>
> >>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Requires ws interface

Posted by Clement Escoffier <cl...@gmail.com>.
Hi,

On 10.01.11 15:07, "Pierre Henry Perret" <ph...@gmail.com> wrote:

>Clement,
>
>If I understand correctly, it means that if I have somewhere a WS i.e
>http://somwhere/webservice , the dosgi cxf implementation allows to
>'import'
>this ws in the OSGi framework as a registered service in my framework,
>here
>Felix, with as simple a configuration as:
>___________________________
><service-descriptions xmlns="http://www.osgi.org/xmlns/sd/v1.0.0">
><service-description>
><provide interface="my.package.app.Service" />
><property name="service.exported.interfaces">*</property>
><property name="service.exported.configs">
>org.apache.cxf.ws
>    </property>
><property name="org.apache.cxf.ws.address">
>http://smoewhere/webservice
></property>
><property name="sevice.imported">true</property>
></service-description>
></service-descriptions>
>________________________
>
>After reading that service description there will be a registered OSGi
>service in the framework that is a proxy for the webservice.
>
>Is that correct?

I'm not a dosgi expert, but I would say yes. Did you check the post post I
sent you?

Regards,

Clement


>
>
>
>2011/1/5 Clement Escoffier <cl...@gmail.com>
>
>> Hello,
>>
>> On 04.01.11 23:52, "Pierre Henry Perret" <ph...@gmail.com> wrote:
>>
>> >Hello,
>> >
>> >Is it possible to require (@Requires) a web service ?
>>
>> Not directly, but you can import the web service as an OSGi service
>>using
>> distributed osgi (http://cxf.apache.org/distributed-osgi.html and
>> 
>>http://blog.akquinet.de/2009/09/14/distributed-osgi-application-with-apac
>>he
>> -cxf-dosgi/).
>>
>> Once imported as a 'plain' OSGi service, the @Requires works out of the
>> box.
>>
>> Regards,
>>
>> Clement
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Requires ws interface

Posted by Pierre Henry Perret <ph...@gmail.com>.
Clement,

If I understand correctly, it means that if I have somewhere a WS i.e
http://somwhere/webservice , the dosgi cxf implementation allows to 'import'
this ws in the OSGi framework as a registered service in my framework, here
Felix, with as simple a configuration as:
___________________________
<service-descriptions xmlns="http://www.osgi.org/xmlns/sd/v1.0.0">
<service-description>
<provide interface="my.package.app.Service" />
<property name="service.exported.interfaces">*</property>
<property name="service.exported.configs">
org.apache.cxf.ws
    </property>
<property name="org.apache.cxf.ws.address">
http://smoewhere/webservice
</property>
<property name="sevice.imported">true</property>
</service-description>
</service-descriptions>
________________________

After reading that service description there will be a registered OSGi
service in the framework that is a proxy for the webservice.

Is that correct?



2011/1/5 Clement Escoffier <cl...@gmail.com>

> Hello,
>
> On 04.01.11 23:52, "Pierre Henry Perret" <ph...@gmail.com> wrote:
>
> >Hello,
> >
> >Is it possible to require (@Requires) a web service ?
>
> Not directly, but you can import the web service as an OSGi service using
> distributed osgi (http://cxf.apache.org/distributed-osgi.html and
> http://blog.akquinet.de/2009/09/14/distributed-osgi-application-with-apache
> -cxf-dosgi/).
>
> Once imported as a 'plain' OSGi service, the @Requires works out of the
> box.
>
> Regards,
>
> Clement
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Requires ws interface

Posted by Clement Escoffier <cl...@gmail.com>.
Hello,

On 04.01.11 23:52, "Pierre Henry Perret" <ph...@gmail.com> wrote:

>Hello,
>
>Is it possible to require (@Requires) a web service ?

Not directly, but you can import the web service as an OSGi service using
distributed osgi (http://cxf.apache.org/distributed-osgi.html and
http://blog.akquinet.de/2009/09/14/distributed-osgi-application-with-apache
-cxf-dosgi/).

Once imported as a 'plain' OSGi service, the @Requires works out of the
box.

Regards,

Clement




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org