I'm tinkering a little with Apache Camel, specifically, I'd like to connect it and query an hive database via Apache Drill. I'm struggling with something very simple as "how to pass credentials" to the driver.
I've read the doc online https://camel.apache.org/components/3.12.x/drill-component.html, checked examples online, but could not find any hint that would point me in the right direction.
The version I'm using the latest apache camel on Quarkus.
Related
I am trying to create a route in Apache Camel that will read data from Azure Event Hub. I have tried searching all over but couldnt find a way.
Traditional way as explained in this works, https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-java-get-started-receive-eph
But how do I implement the same in Camel. Any help would be highly appreciated
I am new to Apache Camel. I have read several documentation of it and went through the examples (only of XML DSL) that Apache provide with its jar. I have a spring MVC project running over tomcat, and in the same project I need to include an Integration Framework. I have installed JBoss plugin for tooling so that I can drag and drop components but palette isn't showing any component but a message 'A palette is not working'. So, please suggest me how should I proceed to implement the same. For now I am referring Camel in Action. And, if possible, then provide an example to send a https request to any URL with some header parameters and transform its response and print it on console or write it to any file or give another https request to any other URL with the payload.
you mentioned that you installed the JBoss plugin for tooling, do you mean that you installed the JBoss Fuse Tooling?
Which version of Eclipse or JBoss Developer Studio are you using? Which OS are you using?
In Fuse Tooling, several examples are provided based on archetypes, I let you check the "CHAPTER 5. CREATING A NEW FUSE PROJECT" in
https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.2.1/pdf/Tooling_User_Guide/Red_Hat_JBoss_Fuse-6.2.1-Tooling_User_Guide-en-US.pdf
I saw that HawtIO has a Dashboard that shows the flow of the route into each processor in it and the count for each call made.I checked into the apache Camel,I believe you are reading the JVM for getting the metrics of the Routes and the processors in it but what I don't understand is how are you able to construct this block diagram and the exact flow into each processor..
Can someone help me out with this.I am trying to build a similar UI such as hawtIO for specifically on Apache Camel and I want to know how it can be done?
Hawtio is getting its application insights with Jolokia. Jolokia is providing a HTTP bridge to JMX. So, in other words, all the informations you need are exposed by Camel MBeans via JMX.
So, you have two options to get hold of Camel's JMX info:
base your own UI on Jolokia as well.
go old school and use a JSR-160 connector.
I am new to camel as well as JCR's.
I am trying to connect to Liferay's content repository using the JCR component in Camel. What I am trying to achieve is pass a content id explicitly and using Camel, I want to hit the content repository of Liferay and retrive the relevant data.
I am trying my hands at the fuse IDE tool as well to get this done.
What I have managed to do so far is configure the endpoint uri to hit my repository. Not sure how to proceed further. Havent found much info on implementations
with Camel JCR.
Any pointers will be of great help!!!
Did you have chance to check out this wiki page?
Is it possible to get the server load information of a webserver deployed on a ServiceMix / Fuse ESB.
I dont want to use Jconsole but get the information by running a java file and writing the values into text file.
Could someone point me to some code that I can run on my machine?
Cheers,
Kunal
You can also intall jolokia i ServiceMix which exposes a REST interface over JMX. This makes it much easier for non Java developers and programming languages to access the metrics. It's just a HTTP call to get the data.
http://www.jolokia.org/
We use this library for the http://hawt.io management console so we can get the data easily from a moderne HTML5 web console.
I won't write the code you ask for, but..
Everything in JConsole is accessed through JMX. And everything in JMX is accessible via code as well (basic tutorial here).
So just locate the value/values you are intressted in using JConsole, then just extract them using the JMX api in code.