Gert,

I am doing following steps to deploy the DOSGi:-

1) created one service-component.xml

<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0";
name="com.xxx.osgi.sample">
   <implementation class="com.xxx.osgi.sample.SampleService"/>
   <service>
      <provide interface="com.lgcns.osgi.rsample.ISampleService"/>
   </service>
   <property name="osgi.remote.interfaces" type="String" value="*"/>
   <property name="osgi.remote.configuration.type" type="String"
value="pojo"/>
   <property name="osgi.remote.configuration.pojo.address" type="String"
value="http://localhost:8192/sample-dosgi"/>
</scr:component>

2) for equinox I just include org.eclipse.equinox.ds and its related
dependencies. and this way I was able to access my sample wsdl at
"http://localhost:8192/sample-dosgi?wsdl";, and I am following this since
last few months.

3) for felix I used "cxf-dosgi-ri-singlebundle-distribution" and again got
success accessing wsdl.

4) for FUSE, I deployed my bundle (hot deployment) and when I check osgi>ls
it shows my services as published but when I access 
"http://localhost:8192/sample-dosgi?wsdl"; it says source not available, 

5) I even tried using spring-DM

<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:osgi="http://www.springframework.org/schema/osgi";
        xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
                      http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd";>
        <osgi:service interface="com.xxx.osgi.rsample.ISampleService">
                <osgi:service-properties>
                        <entry key="osgi.remote.interfaces" value="*" />
                        <entry key="osgi.remote.configuration.type" 
value="pojo" />
                        <entry key="osgi.remote.configuration.pojo.address"
value="http://localhost:8181/sample-dosgi"; />
                </osgi:service-properties>

                <bean class="com.xxx.osgi.sample.SampleService" />
        </osgi:service>
</beans>

but this one also fails, one more thing I am not using maven to build my
bundle, I am using eclipse PDE export.


for me its strange as I read that fuse is built over felix so my bundle
should work (:-(


Regards,
Jitender Sharma




Gert Vanthienen wrote:
> 
> L.S.,
> 
> 
> If you got DOSGI working on Equinox and Felix, the approach should be
> exactly the same for ServiceMix 4, which is basically just a set of
> bundles running on top of either Equinox or Felix (you can choose your
> favorite one by editing the etc/config.properties file).  Do you see
> any specific exceptions?  Could you give us an overview of the steps
> you've taken and where things start going wrong?
> 
> In the near future, we do intend on improving the support for DOSGI in
> a few ways (cfr. https://issues.apache.org/activemq/browse/SMX4-429
> and the related issues).  Perhaps if we can work through the issues
> you're facing together, that can provide some additional input for
> these issues or we might be able to build a partial patch for it
> together.
> 
> 
> Regards,
> 
> Gert Vanthienen
> ------------------------
> Open Source SOA: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
> 
> 
> 
> 2009/11/17 Jitender.s <[email protected]>:
>>
>> I am new to fuse ESB, I want to deploy DOSGi services as web services, I
>> know
>> how to do this in equinox and felix and doing this quite successfully,
>> but
>> while trying in FUSE. I am not able to access the wsdl but when I see the
>>  osgi> ls.
>>
>> it shows the my service is published.
>>
>> can any one please tell me whats the right way of doing this in fuse.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/DOSGI-support-in-fuse-ESB-tp26388550p26388550.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 

-- 
View this message in context: 
http://old.nabble.com/DOSGI-support-in-fuse-ESB-tp26388550p26402527.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to