Questions tagged [karaf]

Apache Karaf is a small OSGi based runtime which provides a lightweight container onto which various components and applications can be deployed. Use the apache-karaf tag. This tag is deprecated and should really be merged/removed.

Apache Karaf is a small based runtime which provides a lightweight container onto which various components and applications can be deployed.

The main features supported by Karaf are:

  • Hot deployment : Karaf supports hot deployment of OSGi bundles by monitoring files inside the [home]/deploy directory. Each time a jar is copied in this folder, it will be installed inside the runtime.
  • Dynamic configuration : Services are usually configured through the ConfigurationAdmin OSGi service. Such configuration can be defined in Karaf using property files inside the [home]/etc directory.
  • Logging System : using a centralized logging back end supported by Log4J, Karaf supports a number of different APIs
  • Provisioning : Provisioning of libraries or applications can be done through a number of different ways, by which they will be downloaded locally, installed and started.
  • Native OS integration : Karaf can be integrated into your own Operating System as a service so that the lifecycle will be bound to your Operating System.
  • Extensible Shell console : Karaf features a nice text console where you can manage the services, install new applications or libraries and manage their state. This shell is easily extensible by deploying new commands dynamically along with new features or applications.
  • Remote access : use any SSH client to connect to Karaf and issue commands in the console
  • Security framework : It provides a complete security framework (based on JAAS), and providing (Role-Based Access Control) mechanism for console and .
  • Managing instances : Karaf provides simple commands for managing multiple instances. You can easily create, delete, start and stop instances of Karaf through the console.

You should be using this tag if your question is related to the use of Karaf Framework.

549 questions
0
votes
0 answers

Karaf stops unexpectedly

After upgrading Karaf from 2.2.11 to 4.0.3 with log4j2 support and running load tests of our Karaf based application, Karaf unexpectedly starts shutdown process. We increased most of memory options but it did not help. No info in logs -…
vetalok
  • 173
  • 1
  • 12
0
votes
1 answer

How to give a repository url in karaf paxexam configuration

The below code tries to install the artifacts defined in feature from this location http://repository.apache.org/content/groups/snapshots-group/ is there a way to give another repository location for download and install. @Configuration …
Charity
  • 213
  • 1
  • 5
  • 23
0
votes
1 answer

How to integrate a KARAF Maven archetype into ECLIPSE

I'm new to OSGi and Karaf and have understanding problem how to integrate a Maven generated POM into Eclipse. I've created a Maven Karaf archetype using the "karaf-bundle-archetype" as described on the Karaf tutorial [link] mvn archetype:generate \ …
user1226230
  • 381
  • 1
  • 3
  • 11
0
votes
1 answer

does org.apache.aries.blueprint.preemptiveShutdown = false guaranties shutdown of bundles in start-level order

We have a shared service bundle running in our Karaf container and we would like shared bundle to go down last when we are shutting down container. We would like to know if org.apache.aries.blueprint.preemptiveShutdown = false guaranties shutdown of…
user3097127
  • 29
  • 1
  • 4
0
votes
1 answer

Adding a profile to a child container does not replicate in the other child containers in an ensemble?

I have recently started working on fabric8 in which I have created an ensemble of three fabric servers - node1, node2 and node3. Each fabric server has a child preferably node1-child1, node2-child1 and node3-child1 respectively. I want to add a…
julien carax
  • 323
  • 6
  • 22
0
votes
2 answers

Upload a bundle to remote Karaf

i have a Karaf on the host A. How to upload a bundle into this host A from another host (B) ? With JMX service, i can do that ? Regards. HNT,
HNT
  • 147
  • 1
  • 10
0
votes
1 answer

Karaf install:webconsole Not Authorized

I just installed apache karaf 3.0.5 on my windows machine and I can't get the webconsole to install. Here are the steps I performed. I ran karaf.bat to start the container. Typed the command "feature:install webconsole" as per the documentation…
Josh Chappelle
  • 1,558
  • 2
  • 15
  • 37
0
votes
1 answer

When Integrating Pentaho Kettle into a Java Application, Why is the MongoDB output not working?

I am new to Pentaho Kettle and I am using the latest version, 6.0. I have created several simple transformations and jobs in Spoon. I have a Job that runs a transformation that simply pulls data from CSV files, adds a couple fields to each row, and…
0
votes
1 answer

Talend Runtime Background

I would like to deploy a .jar (build with Talend ESB) in a OSGI contener (Talend Runtime / Karaf ). I use trun to open a console, start, install etc but when I close the console, my .jar is stopped. I have seen the karaf documenation to start in…
Azylaans
  • 981
  • 8
  • 18
0
votes
1 answer

Distributed OSGI in Karaf -Consumer service not starting

I am just starting with DOSGi in Karaff using Zookeeper. I have the service offered in an instance of Karaf and the consumer in another. The service side works well. Once published, I can see it using the log:display command in Karaf console where…
Jesús
  • 3
  • 1
0
votes
1 answer

Can I modify a file inside osgi bundle?

Is it possible to modify a file inside OSGi bundle (the bundle is deployed to apache karaf) ? In other words, I want to marshall a java object into xml file in a deployed bundle. Is this possible?? Thanks
Karim G
  • 448
  • 3
  • 9
0
votes
2 answers

Can Karaf download dependencies from maven repository on its own?

I am trying to deploy my java modules on OSGI container. Through karaf 'feature' i am able to generate feature.xml which lists all bundles that are needed. As we know each bundle is a dependency. Now we do have some dependencies that can be…
usman
  • 1,351
  • 5
  • 23
  • 47
0
votes
1 answer

Trying to track a service in a bundle deployed to apache karaf. ServiceTracker#addingService doesn't get called

I add an OSGI-service MyService to apache karaf roughly that way: Create and annotate the service and its imlementation. public interface MyService {//...} @OsgiServiceProvider(classes=MyService .class) @Singleton public class MyServiceImpl…
Danny Lo
  • 1,553
  • 4
  • 26
  • 48
0
votes
2 answers

Apache camel blueprint MS SQL datasource on karaf

I am trying to access a MS SQL database with apache camel. I am building it with maven as a bundle and deploy it on apache karaf.To do this I got the following in my blueprint.xml
Milla
  • 403
  • 1
  • 5
  • 22
0
votes
1 answer

Camel and specifying the properties file without hardcoding

Im trying to get a a separate config/properties file for Camel related stuff and other stuff. Using Blueprint but I guess that might as well be Spring in this particular case As I understand it is good practice in Karaf to use the…