We need to ugrade hazelcast4 to Hazelcast5 and we are using Camel connectors.Does Apache Camel connector supports the Hazelcast5.any answer or reply or link will be helpful
It has been updated from 3.16.0 ahead. 3.16.0 has been released last week: https://github.com/apache/camel/commit/ab07cb5583874ca5fffbcf93d1929522359f77a5
Related
I'm using ActiveMQ Artemis version 2.6.2 and using Apache Camel to route messages.
When I connect Camel with jms-component in AMQ, for some reason in ActiveMQ Artemis the new queue is created with jms.queue. as a prefix.
I know if I add the follow code on acceptor in broker.xml the problem is solved. But sadly I don't have access to do that.
anycastPrefix=jms.queue.;multicastPrefix=jms.topic.
Is there a way to solve this in Java Code? I tried these steps but no success.
from("amq:QUEUE.TEST").setProperty("anycastPrefix", simple("jms.queue."))
from("amq:jms:queue:QUEUE.TEST")
The reason that the queue is being created with the jms.queue. prefix is almost certainly because Camel is using an Artemis 1.x client instead of a 2.x client. The 1.x client is hard-coded to use the jms.queue. and jms.topic. prefixes.
As you note, the simplest way to solve this issue is by configuring the prefixes on the appropriate acceptor in broker.xml. I don't know of any way to solve this issue in Java code. I think your best bet would be just to upgrade the Artemis client implementation which Camel is using.
In continuation to the thread "How can Apache Camel be used to monitor file changes?"
I am using camel version 2.23.0, URL looks like
?noop=true&idempotentKey=${file:name}-${file:modified}
But the updated file is still not consumed by camel.
?noop=true&idempotentKey=$simple{file:name}-$simple{file:modified}
Is it possible to change cron expression of camel quartzendpoint at runtime using jmx or so ?
You can update the route itself (including configuration of the quartz endpoint). As an example you can see how Camel plugin of Hawt.io (http://hawt.io/plugins/camel/) does it
No, but you could experiment with CamelContext and see if you can add new routes at runtime.
Can I use apache camel to invoke remote ejbs (ejb2.0)? How do I pass parameters to these ejsb? The example given on the camel website is not very clear. Also I'm not using spring. Can someone please help?
To call remote EJBs you can just use Java code, and let Camel call your java code.
If you want to try the camel-ejb component, then you need to configure the component for remote EJBs which is not so easy - there is a JIRA ticket to improve this in a future release.
So I suggest to just use Java code - eg just call these remote EJBs as you would do from regular Java code without using Apache Camel.
How can I access the "routeId" in Apache Camel 2.10?
I see that the property exists from camel 2.11.
From Simple Expression Langauge docs
${routeId}
String
Camel 2.11: Returns the id of the current route the Exchange is being routed.
Is there another easy hack available?
No, you would need to do a little piece of code to get the route id. You can check the source code of Camel 2.11 onwards to see how Camel does it in that function.