On 17/02/12 06:18, Fernando Avalos García wrote:

Hi Sergey,
Sorry, but I have not so much experience with OSGI. I was looking for 
information and I found this in the DOSGI page. I have create a the directory 
and I create the file but I don't see any difference. Sorry I am a bit 
confused, should I set this file in my service bundle?
Thanks in advance...

Please work with this demo, it should help you get started

Sergey

Fernando Avalos.
<service-descriptions xmlns="http://www.osgi.org/xmlns/sd/v1.0.0";>
   <service-description>
     <provide interface="org.apache.cxf.dosgi.samples.greeter.GreeterService" />
     <property name="osgi.remote.interfaces">*</property>
     <property name="osgi.remote.configuration.type">pojo</property>
     <property 
name="osgi.remote.configuration.pojo.address">http://localhost:9090/greeter</property>
   </service-description>

   <!-- further service-description tags are allowed here -->
</service-descriptions>
Date: Wed, 15 Feb 2012 21:09:34 +0000
From: [email protected]
To: [email protected]
Subject: Re: DOSGI CXF just listening localhost

On 15/02/12 17:00, Fernando Avalos García wrote:

Hi All,
I am trying DOSGI cxf and I deployed the greeter sample on Felix and it is 
working fine.
The problem is that I am not able to access the 9090 port from another machine. 
It looks like it is listening just localhost.
COMMAND  PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAMEjava    2012 
ec2-user   91u  IPv6  12118      0t0  TCP localhost:websm (LISTEN)
How can I fix it? Could you give me any clue, please?
Thanks
Fernando Avalos.                                        
I think you need to configure the local discovery module such that it
looks for a specific remote name, see for ex
http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter/client/src/main/resources/OSGI-INF/remote-service/remote-services.xml

The other option is to experiment with the distributed discovery mechanism

Sergey
                                        


--
Sergey Beryozkin

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

Blog: http://sberyozkin.blogspot.com

Reply via email to