apache-karaf

OSGi bundle access Spring context file from another bundle

大憨熊 提交于 2019-12-24 10:12:22
问题 I have an existing application that exists as multiple Spring projects. Project A's Spring context XML file improts B's Spring context XML file using <import resource="classpath*:/META-INF/spring/BContext.xml" /> However, it I get a FileNotFoundException . I assume this is caused by the fact that the resource is not exposed by project B's bundle. I can access the classes, but not the file. When researching this issue the common comment was to use OSGi services and inject the services instead

Dependency management in OSGI bundle ServiceMix

风格不统一 提交于 2019-12-23 01:28:30
问题 Hi I am new to ServiceMix, so probably I am asking same question which might be answered but I couldn't figure out. My doubt is how do I manage compile time vs runtime dependencies when using bundle in ServiceMix OSGI. That is if I am building a .jar workable(by unit tests aleast) artifact with maven where all compile time dependencies say example(camel,spring) are handled by pom.xml dependencies and are loaded into jar as needed libs for successful build. So when I am deploying the jar in

How to run Vaadin 7 applications in Karaf?

岁酱吖の 提交于 2019-12-22 18:29:24
问题 I have been looking for days now, with lots of experiments, for an answer to this question. What do I need to do to be able to run applications, using version 7 of Vaadin Web framework, inside Karaf? There are some information about it but none of the solutions I read worked. The only related question I found on SO (How to integrate Vaadin 7 with OSGi?) does not really have an valid answer, at least for my question. Every time I follow a solution found by googling I always get lots of missing

client-certificate authentication on jetty (karaf)

送分小仙女□ 提交于 2019-12-22 11:11:25
问题 I need to do client authentication using certificate on jetty server. I have done this on Tomcat using: <Connector protocol="org.apache.coyote.http11.Http11Protocol" port="8443" maxThreads="200" minSpareThreads="5" enableLookups="true" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" SSLEnabled="true" keystoreFile="D:\certificates\certs\server.jks" keystoreType="JKS" keystorePass="password" truststoreFile="D:\certificates\certs\trust_store.jks" truststoreType="JKS"

What's the difference between features in Karaf and OBR

自古美人都是妖i 提交于 2019-12-21 03:40:43
问题 I am looking into ways to deploy and update an OSGI (Karaf, specifically) application. It seems that there are several options. One is to use The OSGi Bundle Repository (OBR), another is to use Features in Karaf, and the third is to use Karaf Cave. I'm not really sure how these options are really different. They all seem to be doing the same things. Are they just different implementations of the same functionality? Could someone please explain the differences or provide some recommendations?

What's the difference between features in Karaf and OBR

◇◆丶佛笑我妖孽 提交于 2019-12-21 03:40:10
问题 I am looking into ways to deploy and update an OSGI (Karaf, specifically) application. It seems that there are several options. One is to use The OSGi Bundle Repository (OBR), another is to use Features in Karaf, and the third is to use Karaf Cave. I'm not really sure how these options are really different. They all seem to be doing the same things. Are they just different implementations of the same functionality? Could someone please explain the differences or provide some recommendations?

How to make Pax logging to use the loggback config instead of the standard log4j properties like syntax

心已入冬 提交于 2019-12-20 06:05:32
问题 I have some services in tomcat and trying to move to apache karaf. I have a existing service which uses logback for logging configuration. I tried to make same configuration in osgi, but could not achieve. Any please let me know what could be the problem? org.ops4j.pax.logging.cfg org.ops4j.pax.logging.logback.config.file=${karaf.home}/etc/logback.xml logback.xml is available at ${karaf.home}/etc/ --. Apache Karaf version : 3.0 , pax logging 1.7.1 which is packaged with karaf from build.

Kafka Producer - org.apache.kafka.common.serialization.StringSerializer could not be found

两盒软妹~` 提交于 2019-12-19 02:28:09
问题 I have creating a simple Kafka Producer & Consumer.I am using kafka_2.11-0.9.0.0. Here is my Producer code, public class KafkaProducerTest { public static String topicName = "test-topic-2"; public static void main(String[] args) { // TODO Auto-generated method stub Properties props = new Properties(); props.put("bootstrap.servers", "localhost:9092"); props.put("acks", "all"); props.put("retries", 0); props.put("batch.size", 16384); props.put("linger.ms", 1); props.put("buffer.memory",

OSGi: What are the differences between Apache Felix and Apache Karaf?

让人想犯罪 __ 提交于 2019-12-18 09:57:15
问题 Apache Karaf is a sub project of Apache Felix. It is defined as "a lightweight OSGi container". I don't understand when should I use the heavyweight and when to use the lightweight. Their site doesn't explain this too much. 回答1: The 'lightweight OSGi container' label is contrasting Karaf with more feature rich OSGi containers, not with Felix. To quote Guillaume Nodet (Karaf's author) from here: Felix is just the OSGi core runtime. Karaf provides a "distribution" based on Felix by adding other

Java Open Source Framework for Service Management

百般思念 提交于 2019-12-14 04:03:23
问题 Working on a Java-based large distributed system, so there will be multiple services running across multiple machines ..... Looking for an open source framework to be able to manage these services(e.g. start/stop a service, install a new a service remotely etc.) Apache Karaf seems to be a good choice, but underneath it uses apache felix (an OSGi reference implementation) bundle which I have a hard time to really understand. In particular, it seems to be easy to define and register a service