You should create a "common" project containing just the service interface.

Anyway, "producer" doesn't depend to consumer (it's the opposite).

Regards
JB

On 06/26/2014 11:22 AM, parker wrote:
I think the problem come from here : inside the consumer I can't import the
provider project.

package com.bw.osgi.consumer;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;

*import com.bw.osgi.provider.able.messageService;
*/don't work/
public class bundleLogActivator implements BundleActivator {
     private BundleLogConsumer consumer;

     @Override
     public void start(BundleContext bundleContext) throws Exception {
      //todo to start
     }
     @Override
     public void stop(BundleContext bundleContext) throws Exception {
        // todo to stop
     }
}



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-Tutorial-Part-4-CXF-Services-in-OSGi-How-to-use-a-new-service-tp4033785p4033808.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to