jbossfuse

Apache Camel with Json Array split

笑着哭i 提交于 2019-12-01 14:57:40
I have a camel application which receives a json array request from a jms queue upto size 13000,the structure of the json array request is as below. I would like to stream and split the json array with a group of 5. For example if I receive a json array of size 100 I would like to group as 5 and split it as 20 requests. Is there a inbuilt camel functionality to group and split json array or do I need to write a custom splitter? I'm using camel 2.17 version. Sample json array: [{ "name": "Ram", "email": "ram@gmail.com", "age": 23 }, { "name": "Shyam", "email": "shyam23@gmail.com", "age": 28 },

Apache Camel with Json Array split

你离开我真会死。 提交于 2019-12-01 12:28:26
问题 I have a camel application which receives a json array request from a jms queue upto size 13000,the structure of the json array request is as below. I would like to stream and split the json array with a group of 5. For example if I receive a json array of size 100 I would like to group as 5 and split it as 20 requests. Is there a inbuilt camel functionality to group and split json array or do I need to write a custom splitter? I'm using camel 2.17 version. Sample json array: [{ "name": "Ram"

Bundle is waiting for namespace handlers [http://camel.apache.org/schema/blueprint]

僤鯓⒐⒋嵵緔 提交于 2019-12-01 06:26:08
I have written a simple apache camel project which will eventually be deployed in a FUSE container. For now, I'm simply trying to get a basic unit test working. I'm using the example here as a starting point. I have written unit tests which work, but when I include a blueprint file, I get the following entry in the test output: Bundle TestMainRoute is waiting for namespace handlers [http://camel.apache.org/schema/blueprint] And the test fails with the following stack trace: java.lang.RuntimeException: Gave up waiting for service (objectClass=org.apache.camel.CamelContext) at org.apache.camel

Best way to load dynamically routes in Apache Camel

眉间皱痕 提交于 2019-12-01 06:15:29
we have developped application based on Karaf and Apache Camel. While our application is entirely based on bundles ( OSGI ) we are also loading the Camel context ( and its' Route Contexts ) on startup, whcih would mean that we have defined some static routes. My question is. Is there a way to dynamically LOAD routes while the application is running without the need to reread the Camel Context as this will reset/restart the already existing routes. The same would apply to already created routes, for example if we want to edit a route whcih already exist. The whole idea is that we are planning

Bundle is waiting for namespace handlers [http://camel.apache.org/schema/blueprint]

雨燕双飞 提交于 2019-12-01 05:34:28
问题 I have written a simple apache camel project which will eventually be deployed in a FUSE container. For now, I'm simply trying to get a basic unit test working. I'm using the example here as a starting point. I have written unit tests which work, but when I include a blueprint file, I get the following entry in the test output: Bundle TestMainRoute is waiting for namespace handlers [http://camel.apache.org/schema/blueprint] And the test fails with the following stack trace: java.lang

Getting Started with Jboss Fuse ESB

安稳与你 提交于 2019-12-01 04:14:14
I am new to ESB and trying to understand ESB concepts and real-world use cases. I dug into few of the open-source ESB products, seems like Apache Camel is the most famous one [being from Apache family]. I found out that, majority people use Jboss Fuse which developed on Apache Camel, or it's just few more added features on top of Camel. Though, I am trying and searching the internet for almost half day and couldn't possibly find out when we use ESB and a real-world example scenario and basic tutorial to start and understand the Fuse ESB. Could any one please point me the right direction on how

Getting Started with Jboss Fuse ESB

不打扰是莪最后的温柔 提交于 2019-12-01 01:57:22
问题 I am new to ESB and trying to understand ESB concepts and real-world use cases. I dug into few of the open-source ESB products, seems like Apache Camel is the most famous one [being from Apache family]. I found out that, majority people use Jboss Fuse which developed on Apache Camel, or it's just few more added features on top of Camel. Though, I am trying and searching the internet for almost half day and couldn't possibly find out when we use ESB and a real-world example scenario and basic