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 main(String[] args) {
new ClassPathXmlApplicationContext("spring-integration-demo.xml");
}
}
I would like to integrate my app into Apache Karaf (or integrate Apache Karaf into my app?).
I am not sure where and how to start. Can someone please provide basic advice and/or pointer to relevant documentation?
It seems my app has to be an OSGI bundle. Furthermore all its jars/dependencies also have to be bundles.
A good way to deploy the bundles is to drop them into the /deploy directory of Karaf.