Re: Java DSL: How to inject object endpoint?

2016-10-31 Thread Allan C.
Noted, thanks for the tips! Regards, Allan C. On Tue, Nov 1, 2016 at 12:11 PM, Tomohisa Igarashi wrote: > Or migrate to @Named("someInstance") CDI bean with using camel-cdi? > http://camel.apache.org/cdi.html > > > On 11/01/2016 01:04 PM, Minh Tran wrote: > >> Hi >> >>

Re: Java DSL: How to inject object endpoint?

2016-10-31 Thread Tomohisa Igarashi
Or migrate to @Named("someInstance") CDI bean with using camel-cdi? http://camel.apache.org/cdi.html On 11/01/2016 01:04 PM, Minh Tran wrote: Hi It’s still the same syntax from("foo://bar?foobar=#someInstance”).to (…. You still declare the someInstance somewhere in your Spring context as you

Re: Java DSL: How to inject object endpoint?

2016-10-31 Thread Allan C.
I see. Noted, thanks! Regards, Allan C. On Tue, Nov 1, 2016 at 12:04 PM, Minh Tran wrote: > Hi > > It’s still the same syntax > > from("foo://bar?foobar=#someInstance”).to (…. > > You still declare the someInstance somewhere in your Spring context as you > would have

Re: Java DSL: How to inject object endpoint?

2016-10-31 Thread Minh Tran
Hi It’s still the same syntax from("foo://bar?foobar=#someInstance”).to (…. You still declare the someInstance somewhere in your Spring context as you would have previously using xml DSL > On 1 Nov 2016, at 3:01 PM, Allan C. wrote: > > P/S I am using RouteBuilder > >

Re: Java DSL: How to inject object endpoint?

2016-10-31 Thread Allan C.
P/S I am using RouteBuilder Regards, Allan C. On Tue, Nov 1, 2016 at 11:58 AM, Allan C. wrote: > Hi, > > I've never used Java DSL to define routes. Can anyone share or provide > some hints on how to perform the same thing below in Java code? i.e. inject > someInstance into

Java DSL: How to inject object endpoint?

2016-10-31 Thread Allan C.
Hi, I've never used Java DSL to define routes. Can anyone share or provide some hints on how to perform the same thing below in Java code? i.e. inject someInstance into the endpoint. Regards, Allan C.

Re: java.lang.IllegalAccessError: tried to access method org.apache.camel.component.quickfixj.QuickfixjComponent.createEndpoint

2016-10-31 Thread Tomohisa Igarashi
Hi, 2.9.1? Is there any reason you need to use that far old version? Can you try with latest camel? Looking at the error, it is suggesting a version mismatch on camel-quickfix, say using version A for compile and version B for runtime. Note that createEndpoint is "protected" on upstream

Re: Activate Netty4 producer mode

2016-10-31 Thread masterl
Thanks fabryprog I can't see where to enter the syntax you shared since the Talend ESB Studio only gives a textbox to enter the URI (so nowhere to input the to/from keyword). I have moved the query to the talend forums. Thank you very much for the quick response. -- View this message in

java.lang.IllegalAccessError: tried to access method org.apache.camel.component.quickfixj.QuickfixjComponent.createEndpoint

2016-10-31 Thread ahernandez
Hi, I'm using camel-quickfix-2.9.1 in a Java implementation but I´m getting the error 'java.lang.IllegalAccessError: tried to access method org.apache.camel.component.quickfixj.QuickfixjComponent.createEndpoint(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Lorg/apache/camel/Endpoint; from

Zip all files available in folder - synchronously

2016-10-31 Thread Goyal, Arpit
Hi Colleagues, I want to read all file and aggregate into one single zip, but the batch consumer always run in different thread. What needs to be done additionally to get the response synchronously? Regards, Arpit. DefaultCamelContext c = new DefaultCamelContext(); try {

Re: Problem: Concatenate the different input(from different route) using aggreagationStrategy

2016-10-31 Thread Steve973
I think you are right to use completion size. On Oct 31, 2016 5:18 AM, "meng" wrote: > Hi Steve, > > I changed .completionPredicate(header("aggregated").isEqualTo(2)) to > .completionSize(2) and now I can get the return result. > But I'm still confused when to use

Re: camel 2.18.0 VM problem after update

2016-10-31 Thread souciance
Can you share how you send and receive to compare? It works for me on 2.17.0. Den 31 okt. 2016 3:14 em skrev "Marvin [via Camel]" < ml-node+s465427n5789519...@n5.nabble.com>: > I updated my camel version from 2.15.2 to 2.18.0. I'm using the vm > component to send messages through different

Re: JpaConsumer endpoint not showing up in hawtio.

2016-10-31 Thread raulsperoni
I'm doing exactly that...creating the instance like you say. Sorry the ignorance, how am i supposed to do it? -- View this message in context: http://camel.465427.n5.nabble.com/JpaConsumer-endpoint-not-showing-up-in-hawtio-tp5789346p5789524.html Sent from the Camel - Users mailing list

Camel-REST vs Cxfrs

2016-10-31 Thread DariusX
I would like to expose some Camel routes via REST, and am considering using the REST DSL. (I do not have pre-existing REST-based web-service components.) Is there any reason/advantage to using camel-cxfrs or some other such component that supports REST in such a scenario? It appears to me that

Hystrix Fallback not executed on Thread Pool/Semaphore rejection

2016-10-31 Thread Maxime Tremblay
Hi, In the Camel-Hystrix component, what motivated the choice the execute the Fallback only when an Exception is raised ? Why not to let the end user choose if they want to execute the fallback or not when no Exception is raised ? To put in context: The getFallback() is called by Hystrix in

Re: camel 2.18 activemq not working under karaf

2016-10-31 Thread gustavo.maurizio
solved the problem. Seems like the bean definition for ActiveMQ needs the connection factory explicitly defined. In the past, we used just --

camel 2.18.0 VM problem after update

2016-10-31 Thread Marvin
I updated my camel version from 2.15.2 to 2.18.0. I'm using the vm component to send messages through different contexts. After the update I got following exception: o.a.c.c.v.VmConsumer | Error processing exchange. Exchange[]. Caused by: [java.lang.NullPointerException - null]

Re: Question on multicast to pipelines

2016-10-31 Thread DariusX
Your example was: multicast() .pipeline("A", "B") .pipeline("C", "D") .end() You send "START" as the body to this. So, you should expect "START" to be the in.body for both "A" and "C". The in body for "B" will depend on what "A" does. Example: if "A" transforms the body to a constant

Re: How to disable errorHandle in subroutes in Spring DSL

2016-10-31 Thread kumar
Hi Claus, I dont have sub element under route with errorHandler. So I still not getting how to configure that. But i have taken other approach with try.catch. with handled as false. java.lang.Exception false Now it propogates. Thanks for help guys. -- View this message in context:

Re: smb cannot connect to server

2016-10-31 Thread Peter J Nelson
One thing I should make clear, the remove vendor supports Windows Networking, period. There is no option for changing the protocol, so please understand that is NOT a solution to this problem. -- View this message in context:

smb cannot connect to server

2016-10-31 Thread Peter J Nelson
Camel: 2.16.3 camel-jcifs: 2.15.0 (latest release) I am trying to pull files from a remote Windows Share. I have a route that works fine when connecting to a Windows Share in my own domain, but when I try to connect to a host in another domain, it constantly errors with:

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-10-31 Thread gustavo.maurizio
Andrea, fantastic! Adding this install -s wrap:mvn:junit/junit/4.12 before installing made it work! Thanks!!! -- View this message in context: http://camel.465427.n5.nabble.com/camel-2-18-0-rabbitmq-component-fails-under-Karaf-tp5789413p5789514.html Sent from the Camel - Users mailing list

Re: Is GenericFileOperationFailedException handled differently than other exceptions?

2016-10-31 Thread Klaus Johansen
Hi again, I'm actually trying to recover from "java.net.SocketTimeoutException: Read timed out" during download of files via FTP. Any ideas how to ensure "redelivery" (or start another poll immediately) if download fails? I done some more debugging to find out why some FTP consumer errors are

Re: How to disable errorHandle in subroutes in Spring DSL

2016-10-31 Thread Claus Ibsen
You can configure the sub route to use noErrorHandler as the error handler. On Mon, Oct 31, 2016 at 11:00 AM, kumar wrote: > > Hi All, > > I have been looking for , how to disable errorhandle in subroute in order to > catch exception in Parent route. > I have seen

Re: How to disable errorHandle in subroutes in Spring DSL

2016-10-31 Thread fabryprog
Hello, instead of using errorHandle you can use try catch sintax: http://camel.apache.org/try-catch-finally.html -- View this message in context: http://camel.465427.n5.nabble.com/How-to-disable-errorHandle-in-subroutes-in-Spring-DSL-tp5789508p5789510.html Sent from the Camel - Users mailing

Re: Activate Netty4 producer mode

2016-10-31 Thread fabryprog
Hello, it is camel's slang! Consumer: Producer: -- View this message in context: http://camel.465427.n5.nabble.com/Activate-Netty4-producer-mode-tp5789493p5789509.html Sent from the Camel - Users mailing list archive at Nabble.com.

How to disable errorHandle in subroutes in Spring DSL

2016-10-31 Thread kumar
Hi All, I have been looking for , how to disable errorhandle in subroute in order to catch exception in Parent route. I have seen couple of examples in java dsl but not in spring dsl ? Thanks, Kumar -- View this message in context:

Re: Camel hot deploy develop

2016-10-31 Thread Claus Ibsen
Hi Spring Boot has live-reload https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot-live-reload On Mon, Oct 31, 2016 at 8:01 AM, fabryprog wrote: > Hello everyone, > > I am searching a hot deploy framework to develop camel apps. i am

Activate Netty4 producer mode

2016-10-31 Thread masterl
I have used Netty4 to implement a TCP server on Talend ESB However, now I want to implement a TCP client that passes messages to a remote server and accepts (and/or processes) the response from that server. >From the netty4 documentation: "In Producer mode, the component provides the ability to

Re: Problem: Concatenate the different input(from different route) using aggreagationStrategy

2016-10-31 Thread meng
Hi Steve, I changed .completionPredicate(header("aggregated").isEqualTo(2)) to .completionSize(2) and now I can get the return result. But I'm still confused when to use completionPredicate and when to use completionSize ? Thanks, Meng -- View this message in context:

Re: Camel-ahc-ws netty runtime problems

2016-10-31 Thread Andrea Cosentino
If you think the behavior of camel-websocket can be better you can fill a JIRA on Camel JIRA. https://issues.apache.org/jira/browse/CAMEL -- Andrea Cosentino -- Apache Camel PMC Member Apache Karaf Committer Apache Servicemix Committer Email:

RE: MIME-Mutipart DataFormat streaming?

2016-10-31 Thread Siano, Stephan
Hi Tim, There is a library named mimepull that is supposed to support streaming for attachments, however I never tried that. Best regards Stephan -Original Message- From: Tim Dudgeon [mailto:tdudgeon...@gmail.com] Sent: Samstag, 29. Oktober 2016 10:52 To: users@camel.apache.org

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-10-31 Thread Andrea Cosentino
Try this way: karaf@root()> feature:repo-add camel 2.18.0 Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.18.0/xml/features karaf@root()> install -s wrap:mvn:junit/junit/4.12 Bundle ID: 52 karaf@root()> feature:install -v camel-rabbitmq Adding features:

Camel hot deploy develop

2016-10-31 Thread fabryprog
Hello everyone, I am searching a hot deploy framework to develop camel apps. i am thinking an open source product similar to jrebel http://zeroturnaround.com/software/jrebel/ Can you help me? -- View this message in context:

Re: java.lang.IllegalStateException: unsupported protocol: 'https4'

2016-10-31 Thread bcwajapey
@arno noordover : Sorry did not get exactly what you meant. Are you suggesting I have to give complete URL in "CamelHttpUri" header instead of using header variables like ${header.employeeName}? -- View this message in context:

Re: java.lang.IllegalStateException: unsupported protocol: 'https4'

2016-10-31 Thread bcwajapey
Are you suggesting to use "https" (Http Client 3.x) instead of "https4" (Http Client 4.x)? I have already tried it and https4 fails. Thats the error I have mentioned in the thread. -- View this message in context: