Questions tagged [apache-karaf]

Karaf is an enterprise grade OSGi runtime/container, with configurable framework implementation (Equinox, Felix). Originally the platform "kernel" for FuseSource ESB/ServiceMix it was added as an Apache top level project.

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 SSH 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.

It has all the benefits of OSGi; lightweight, dynamic, highly configurable, etc

Links:

  • website
  • users' mailing list: user@karaf.apache.org
  • developers' mailing list: dev@karaf.apache.org
  • nabble (archived mailing list content)
1353 questions
0
votes
0 answers

Run multiple Play applications in one VM

Whenever I run "play run" command, a new JVM is launched which has NettyServer running the play application on default port 9000. But is any of the below things possible in play 2.0.4? Run one netty server to run multiple play applications in one…
0
votes
2 answers

the karaf log doesn't display the date

The karaf log doesn't display the date(day month year), it just display the time, is there any configuration should take place to display both the date and the time in karaf log.
eman
  • 167
  • 3
  • 11
0
votes
3 answers

Camel - unmarshal().serialization() - ClassNotFoundException

I'm trying to unmarshal with serialization method a bean that is not the current bundle but in a commons components bundle. I get the following error when camel tries to unmarshal my bean : 22:43:11,865 | ERROR | nModule-thread-1 |…
yodamad
  • 1,452
  • 14
  • 24
0
votes
2 answers

logback via slf4j as separate osgi bundle

We have osgi application in karaf and want to have logging properties inside bundle jar to keep the logging config in sources (currently they are in karaf/etc/org.ops4j.pax.logging.cfg) UPDATE: in fact now we keep log configs in Karaf CM Admin…
yetanothercoder
  • 1,689
  • 4
  • 21
  • 43
0
votes
1 answer

OSGi Containers

What is most usable OSGi container? I've been using Apache Karaf lately, but I would like to know what container do you recommend the most from your experience? Thanks in advance.
user1448458
0
votes
3 answers

Karaf 2.3 Camel 2.10 : Is it possible to switch to Spring 3.1?

Is it possible to use Spring 3.1 on Karaf 2.3 without worrying about breaking anything ?
redben
  • 5,578
  • 5
  • 47
  • 63
0
votes
1 answer

setting the ContextPath in Jetty running under ServiceMix (OSGI)

Here is my brief background of environment. I am trying to convert a myapp WAR to an OSGi compliant by making the MANIFEST.MF as shown below, and wanted to deploy this war in ServiceMix an OSGi based container. MANIFEST.MF Manifest-Version:…
0
votes
2 answers

Camel xquery endpoint with OSGi bundle uri

I have an OSGi bundle (deployed into Karaf 2.2.4) that starts a Camel (2.10.0) context. The Camel context's routebuilder has some xquery endpoint URIs such as "xquery:classpath:Dir1/Dir2/example.xq" When the context tried to resolve that URI, it…
Ski
  • 1,182
  • 1
  • 9
  • 20
0
votes
2 answers

how to transfer files across network using service mix blueprint capabilities

I am using apache-servicemix-4.3.1-fuse-01-15 and I am doing hot deployment. I have placed one blueprint xml inside deploy folder of service-mix as shown…
C4CodeE4Exe
  • 3,840
  • 8
  • 39
  • 46
0
votes
3 answers

Creating a different instance of an Object with scope prototype in OSGi using Spring

It is a complicated problem so I will explain it as clear as I can. I have three OSGi bundles A, B, C deployed into Apache Karaf. I also have a security bundle which is used by those A, B, C bundles. Each A, B and C bundles contains…
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143
0
votes
2 answers

Apache Karaf Bundle Context Listener

In web applications we have ServletContextListener interface which has method: contextInitialized and it is called on application start up. I would like to know is there something similar in the Apache Karaf when the OSGi bundle is starting that…
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143
0
votes
1 answer

Sharing Object Between OSGi Bundles

I have two OSGi bundles deployed in Apache Karaf. A and B. My A OSGi bundle works as basic authentication handler. I have set up my security handler it works fine:
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143
0
votes
1 answer

How to deploy Custom Dataformat in camel

I am running Camel inside Karaf. I have created a custom dataformat by implementing DataFormat interface. Now I have my custom class. In order to make it visible to my camel route inside karaf where to copy this class file? Please provide guidance.
Dev G
  • 1,387
  • 4
  • 26
  • 43
0
votes
2 answers

Embedding a Spring Integration app into Apache Karaf

I am in the process of developing a Spring app. As it stands the app is currently run as follows by a main class: import org.springframework.context.support.ClassPathXmlApplicationContext; public class Bootstrap { public static void…
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
1 answer

Get SOAPMessage from org.apache.camel.Exchange

I need to get the SOAP message from exchange object I receive in my spring bean. I have a camel route, which routes from service endpoint to my java bean. Java Bean and Camel route declared in spring looks like this:
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143