Developing Apache camel application & run on Karaf

前提是你 提交于 2019-12-11 23:36:44

问题


I am developing an integration application and planned to use apache camel. After doing initial study I found that there are various ways to develop apache camel application(Indeed, this is a library and can be associated with any java application) like spring boot, spring and plain java & routes can be defined in DSL or xml file.

I have created one application using spring libraries and working fine on my local eclipse when I run it as a java program.

Now,as I want to run same in osgi container, created a bundle jar file by mvn install (after chaning packaging option and added felix plugin in pom file) and I was able to update the same in Jboss Fuse(Karaf) by osgi:install command. However, it just installed but did not work and I guess the osgi container can not create CamelContext by its own untill application instruct it (as my application was created as spring application).

I am afraid about the steps I mentioned is very high level and probably not enough to create apache camel application. I also found some fabric8 and kubernates concepts to create apache camel application but not able to grasp which and how to use it. there are various links available but mostly are outdated or unclear.

Can anyone please share the general guideline to create an camel application which can run on osgi container in high availability.

Update- Yesterday, I learned that the kubernate/openshift is the runtime platform (means we can run the apache camel as a standalone or on kubernate/openshift platform) and runtime environment could be spring boot, karaf (osgi container).

Now, I have created one camel application with runtime platform standalone and runtime envrironment Karaf.this application runs good when I run in IDE. however, wehen I deploy it to Karaf it does not do its job. Deployed using following commands.

install -s mvn:com.mycompany/camel-java-cbr/1.0.0-SNAPSHOT start bundleID

来源:https://stackoverflow.com/questions/50349735/developing-apache-camel-application-run-on-karaf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!