Hi Milan,

as you understood, a service is just a interface (and a bean implementing this interface).

So a service itself is not available directly from outside. It's up to you to expose the service as a servlet, REST service, or whatever.

Regards
JB

On 08/08/2014 02:04 PM, Milan Tomic wrote:
Hello,

I am total beginer with OSGi and Karaf and I am begging here for some help.

I have followed one tutorial and created one OSGi module, packet it in
JAR and installed it in Karaf with hot deploy:

public interface ParserService {
     String parse(String s);
}

public class ParserImpl implements ParserService {
     public String parse(String s) {
         return s.replaceAll("AA", "BB");
     }
  }

Now I have no idea how to call this service from outside of Karaf. Let's
say from an Servlet running inside some Tomcat on the same Windows
Server maching. So, how do you create OSGi/Karaf client app?

Thank you in advance,
Milan

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

Reply via email to