Spring rest endpoint reference work on v2.17.0 but not in v2.18.0

2017-06-06 Thread tim
Hi, I have some applications using camel rest component. To make it better manageable and reference by other part of my application for other usage, I extract rest path to a java class and use spring to reference on it. It do work on my first application, so I decide to copy the structure to my s

Re: Possible bug in camel-ignite Component

2017-06-06 Thread Gary Hodgson
Thanks Claus, PR: https://github.com/apache/camel/pull/1742 JIRA: https://issues.apache.org/jira/browse/CAMEL-11382 Regards, Gary On 6 June 2017 at 08:23, Claus Ibsen wrote: > Hi Gary > > Yeah a fix on github PR is much appreciated. > > > On Mon, Jun 5, 2017 at 11:55 PM, Gary Hodgson > wrote:

RE: NettyConnector explicitly initializes SSLContext instead of using default

2017-06-06 Thread mevans7
Very creative solution, Hans! I would have to ensure I add/remove the system property where I create my queue connections. There would be a window of vulnerability, but greatly reduced. Posting to ActiveMQ forum per recommendation by Claus. -- View this message in context: http://camel.46542

Re: How to read a file in chain(or middle) of routes.

2017-06-06 Thread sap
Perfect! thanks! -- View this message in context: http://camel.465427.n5.nabble.com/How-to-read-a-file-in-chain-or-middle-of-routes-tp5801982p5802012.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-test-blueprint includes camel-test, breaks java.nio.file.Files.probeContentType(source);

2017-06-06 Thread Claus Ibsen
Hi I found a little time and have committed a fix for this on the branches. On Tue, Jun 6, 2017 at 12:25 PM, Claus Ibsen wrote: > Hi > > Ah that test-jar should only be used as part of testing > camel-test-blueprint itself. It should have scope=test like it does in > camel-spring etc. > > You ar

Servlet Component issue - doesn't allow a custom httpBinding

2017-06-06 Thread oceansize
I'm trying to override ServletRestHttpBinding to use custom logic for the *public void doWriteExceptionResponse* method. -- View this message in context: http://camel.465427.n5.nabble.com/Servlet-Component-issue-doesn-t-allow-a-custom-httpBinding-tp5801985.html Sent from the Camel - Users maili

Re: How to read a file in chain(or middle) of routes.

2017-06-06 Thread Claus Ibsen
See the content enricher eip http://camel.apache.org/content-enricher.html there is a pollEnrich you can use to read a file. On Tue, Jun 6, 2017 at 7:41 PM, sap wrote: > Hi. > > I need to read a file in middle of route. > for example. > > from("sql:blabla") > .to("file:locationbla?filename=bla&n

How to read a file in chain(or middle) of routes.

2017-06-06 Thread sap
Hi. I need to read a file in middle of route. for example. from("sql:blabla") .to("file:locationbla?filename=bla&noop=true") < this is where I need to read from file. .process(new BlaProcessor()) .to("file:locationbla?filename=bla"); <--same location that I read before. above code tries to

RE: trouble with camel spring web example

2017-06-06 Thread Ralph Cook
I know I had a too-old version in the original question, and I'm sorry I didn't check version histories carefully enough. But as I indicated, this still fails with 2.17.7 -- is that also too old to get help on? rc -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent:

Re: How to Extract json key, value from MQTT payload

2017-06-06 Thread Zoran Regvart
Hi, so typically you would use message headers and named parameters in your SQL, something like .setBody("INSERT INTO MY_TABLE (ID, NAME) VALUES (:?id, :?name)") .to("jdbc:myDataSource") and your processor would need to set those `id` and `name` headers on the incoming message. You could also us

Re: trouble with camel spring web example

2017-06-06 Thread Claus Ibsen
Check that you see Camel logs, or use jconsole to connect to the jvm if you can see Camel JMX mbeans there. We cannot easily help users on EOL versions of Camel as we here are only active supporting the latest versions. On Tue, Jun 6, 2017 at 1:33 PM, Ralph Cook wrote: > We cannot use the late

Re: How to Extract json key, value from MQTT payload

2017-06-06 Thread Owain McGuire
Try unmarshal from json to pojo using http://camel.apache.org/json.html > On 6 Jun 2017, at 13:20, solomon wrote: > > Hi, > > I have created a camel route of mqtt -> jdbc which pushes the data in json > format into MQTT topic, now I want to extract the jso

RE: How to Extract json key, value from MQTT payload

2017-06-06 Thread Steve Huston
That depends totally on what MyProcessor does with the data and where it puts it. > -Original Message- > From: solomon [mailto:austin.solomon...@gmail.com] > Sent: Tuesday, June 06, 2017 8:21 AM > To: users@camel.apache.org > Subject: How to Extract json key, value from MQTT payload > >

Re: Camel Smb Protocol is not supporting SMBv2 & SMBv3..

2017-06-06 Thread Zoran Regvart
Hi, are you using a fairly recent camel-jcifs that depends on JCIFS 1.3.0 or newer? NTLMv2 support in JCIFS library was introduced in version 1.3.0. There is one property you can try setting: the `jcifs.smb.lmCompatibility`[1] to `3`, but that should be default in 1.3.x, zoran [1] https://jcifs.s

How to Extract json key, value from MQTT payload

2017-06-06 Thread solomon
Hi, I have created a camel route of mqtt -> jdbc which pushes the data in json format into MQTT topic, now I want to extract the json key and value so that I can insert it into jdbc database. sample json payload : { "id": 1, "name": "Test" } My Camel route looks like this : from("mqtt:b

RE: trouble with camel spring web example

2017-06-06 Thread Ralph Cook
We cannot use the latest Camel, nor 2.18.4; the latest states it requires Java 8, and running with 2.18.4 gives the "major/minor version" error one gets when attempting to run class files from different major Java versions. We aren't using Java 8 yet in our shop. I attempted to follow instructi

Re: trouble with camel spring web example

2017-06-06 Thread Claus Ibsen
Must you use so old version of Camel, 2.16.0 is EOL. Or at least upgrade to latest 2.16.x. And you can try out the examples that is shipped, it should work. On Tue, Jun 6, 2017 at 12:45 PM, Ralph Cook wrote: > Well, the web.xml as shown below has > > >

RE: trouble with camel spring web example

2017-06-06 Thread Ralph Cook
Well, the web.xml as shown below has org.springframework.web.context.ContextLoaderListener so it does have a spring context listener. I removed the comment line and tried again, just in case the comment was causing some kind of probl

Re: camel-quickfix - Using the InOut MEP with multiple MsgTypes

2017-06-06 Thread Claus Ibsen
Hi Sorry I am not sure so many can help here, as this component was contributed from one of the quickfix committers. Maybe you can try to ask on their forum. Looking into the source code is your best best and maybe try to find out details about quickfix and how its intended to work in your use-ca

Re: camel-test-blueprint includes camel-test, breaks java.nio.file.Files.probeContentType(source);

2017-06-06 Thread Claus Ibsen
Hi Ah that test-jar should only be used as part of testing camel-test-blueprint itself. It should have scope=test like it does in camel-spring etc. You are welcome to contribute a fix via a github PR On Tue, Jun 6, 2017 at 11:52 AM, Leber, Thomas wrote: > Hi all, > > We are using blueprint and

camel-test-blueprint includes camel-test, breaks java.nio.file.Files.probeContentType(source);

2017-06-06 Thread Leber, Thomas
Hi all, We are using blueprint and therefore we include camel-test-blueprint. This also includes Camel-core dependencies with type "test-jar": https://github.com/apache/camel/blob/master/components/camel-test-blueprint/pom.xml org.apache.camel camel-core test-jar P

Re: trouble with camel spring web example

2017-06-06 Thread Claus Ibsen
Its spring that is starting up Camel as you define Camel in the camel-context.xml file which is a Spring file. So you need the spring context listener in the web.xml file so spring startup, and then can start Camel. You should see in the log from tomcat, when Camel startup as it logs that. If you

RE: NettyConnector explicitly initializes SSLContext instead of using default

2017-06-06 Thread Orbaan, Hans
Hi, Did you try removing the properties after the context has been created? - This E-mail is for the sole use of the intended recipient and may contain confidential and/or privileged material. Any reading, review, reliance, distribution, printing or storage of th