Re: Possible to use Camel as a translator/proxy for web service?

2017-07-21 Thread Tomohisa Igarashi
Hi, It just works fine for me https://github.com/igarashitm/issues/blob/master/camel/misc/src/test/java/JsonPathTransformTest.java Thanks, Tomo On 07/20/2017 10:33 PM, Yee Keat Phuah wrote: I have a client that will be calling a webservice, based on certain signature, e.g. /ticketDescriptionGe

Re: Camel JPA Transaction + EntityManager

2017-06-07 Thread Tomohisa Igarashi
Hi, You'd want to use the camel EntityManager instead of the one injected via annotation. The CamelEntityManager message header contains the one used by the camel JpaConsumer. http://camel.apache.org/jpa.html Thanks, Tomo On 06/08/2017 01:50 AM, renalexster wrote: Hi, In my actual applicat

Re: DayLight Saving behaviour using apache camel Quartz2

2017-05-18 Thread Tomohisa Igarashi
Hi, I think that depends on your system clock. If it's syncing correctly by NTP or something, then quartz should work fine over DST switch. Thanks, Tomo On 05/18/2017 07:52 PM, deepaktaker wrote: Hi All, I need to understand what is the behaviour of apache camel Quartz2 during daylight savin

Re: Global restConfiguration

2017-05-17 Thread Tomohisa Igarashi
Hi, I haven't tried it but from the code it seems to be applied at component level unless you override it in each rest definition. https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/model/rest/RestBindingDefinition.java#L86 Thanks, Tomo On 05/18/2017 11:55 A

Re: NoTypeConversionAvailableException exception while running junit test case

2017-05-09 Thread Tomohisa Igarashi
Ravi, answer for you is always same, use latest camel 2.19.0 without SwitchYard or ask Red Hat support. Stop abuse camel user community. On 05/10/2017 01:48 AM, ravi21588 wrote: Hi iam getting NoTypeConversionAvailableException while using xpath in camel,iam using camel 2.10.Iam getting this

Re: Unable to convert value org.mybatis.spring.SqlSessionFactoryBean@3de15b24 to type org.apache.ibatis.session.SqlSessionFactory

2017-04-25 Thread Tomohisa Igarashi
Hi, You need to ask Red Hat support about Red Hat product. BTW found a related topic http://camel.465427.n5.nabble.com/blueprint-myBatis-transactions-td5764629.html Thanks, Tomo On 04/26/2017 05:51 AM, imranrazakhan wrote: Hi, I am configuring Apache Camel MyBatis route in Jboss Fuse, but g

Re: Camel HTTP: I/O exception (java.net.SocketException) caught when processing request: Too many open files

2017-04-25 Thread Tomohisa Igarashi
Hi, I would increase nofile (ulimit -n) and see if it works. And the first thing I always do after clean install is to put 65535 as a nofile and noproc limit in /etc/security/limits.conf: # I'm on Fedora Thanks, Tomo On 04/26/2017 04:23 AM, urwithsumit wrote: Hi, I have a rest API exposed u

Re: Camel-cassandra component

2017-04-10 Thread Tomohisa Igarashi
Hi, According to the doc and code message body is used as query parameters in camel-cassandrasql http://camel.apache.org/cassandra.html https://github.com/apache/camel/blob/master/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraProducer.java#L75 So you m

Re: Calling a SOAP wenservice from Camel

2017-03-29 Thread Tomohisa Igarashi
Hi, There're a bunch of unit tests for CXF producer here https://github.com/apache/camel/tree/master/components/camel-cxf/src/test/java/org/apache/camel/component/cxf and examples https://github.com/apache/camel/tree/master/examples Thanks, Tomo On 03/30/2017 02:02 AM, anirban.gupta4 wrote: H

Re: can Redis BLPOP (and etc) be used in a consumer URI?

2017-03-28 Thread Tomohisa Igarashi
Hi, I don't know much about Redis though, it seems the PSUBSCRIBE and SUBSCRIBE are the only two supported for consumer. https://github.com/apache/camel/blob/master/components/camel-spring-redis/src/main/java/org/apache/camel/component/redis/RedisConsumer.java#L54 You may want to file a JIRA fo

Re: Adding SimpleRegistry to Camel Context post Camel Context creation.

2017-03-28 Thread Tomohisa Igarashi
Hi, For what purpose you need to do that? It's possible to make a dirty hack like this though SpringCamelContext context = (SpringCamelContext)context; context.setRegistry(new My CustomCompositeRegistry(context.getRegistry())); I don't know if it really works or not. Note that the ApplicationC

Re: Unable to update httpclientconfigurer instance on dynamic to endpoint.

2017-03-28 Thread Tomohisa Igarashi
Found the ticket. FWIW okhttp dependency is already there for the unit tests in camel-jetty9. https://issues.apache.org/jira/browse/CAMEL-9268 I just assigned to myself in case I have spare time, but it would be great if anyone else could make it before me. Thanks, Tomo On 03/29/2017 02:52 AM

Re: Camel 2.15.1 XSLT returning only the closing tags

2017-03-27 Thread Tomohisa Igarashi
Hi, On 03/28/2017 06:43 AM, Boba wrote: I am trying to do a really simple xml to xml transformation using the xslt uri, I have dumbed it down so the input and transformed messages are basically the same to try and work this out... I used stylus studio to create the xml to xml mapping (I'm not kn

Re: Is there any way to limit the values for Accept: header for camel-atom and camel-rss?

2017-03-27 Thread Tomohisa Igarashi
Hi, It seems to be right, both of camel-rss and camel-atom doesn't allow to configure request headers other than basic auth. You may want to file a JIRA for it. Or I haven't tried yet though, it seems possible to use camel-http4 as a polling consumer which accepts custom HttpClientConfigurer.

Re: Unmarshalling error.

2017-03-15 Thread Tomohisa Igarashi
Just a wild guess though, it may be suggesting that the namespace should be empty while it had "url"? On 03/15/2017 10:35 PM, Siddharth Patil wrote: Hi , I am getting the following error when I am trying to hit the SOAP endpoint. Unmarshalling Error: unexpected element (uri:"url", local:“

Re: AWS Kinesis URI sequenceNumber unknown parameter

2017-03-15 Thread Tomohisa Igarashi
Hmm weird, actually the sequenceNumber is already there in 2.18.1 https://github.com/apache/camel/blob/camel-2.18.1/components/camel-aws/src/main/java/org/apache/camel/component/aws/kinesis/KinesisEndpoint.java#L51 As following test is specifying it, you may want to run it through the debugger a

Re: Bindy DefaultValue is not working. Need help

2017-03-14 Thread Tomohisa Igarashi
Hi, It seems to be right while it should work for marshal as well IMO. Filed a JIRA. https://issues.apache.org/jira/browse/CAMEL-11012 Thanks, Tomo On 03/14/2017 05:43 PM, Amruta Jawlekar wrote: From the BindyCSVFactory code, it looks like default value is set only during unmarshalling from CS

custom query support for JPA producer Re: Camel JPA Name Query with Parameters

2017-03-14 Thread Tomohisa Igarashi
For anybody wants to try it before 2.19 release - it has been merged into upstream. https://github.com/apache/camel/blob/master/components/camel-jpa/src/main/docs/jpa-component.adoc On 03/11/2017 08:59 AM, Tomohisa Igarashi wrote: Hi, As you can see the parameter name starts with 'con

Re: Sending MQMD headers from Apache camel.

2017-03-13 Thread Tomohisa Igarashi
Ravi, I said "DO NOT post SwitchYard or JBoss question here" again and again. Please stop spamming. On 03/14/2017 12:50 AM, ravi21588 wrote: Hi All, iam using Jboss Fuse service works 6.0 with Switchyard 1.1 and camel 2.10. iam trying to set MQMD headers for the JMS message and send it to IBM M

Re: Camel JPA Name Query with Parameters

2017-03-10 Thread Tomohisa Igarashi
Hi, As you can see the parameter name starts with 'consumer', it's a consumer option. Right now JPA producer doesn't support named query yet. I'll work on that enhancement soon. https://issues.apache.org/jira/browse/CAMEL-10265 Thanks, Tomo On 03/11/2017 08:24 AM, urwithsumit wrote: Hi, I h

Re: Consuming data from external REST service

2017-03-01 Thread Tomohisa Igarashi
Hi, How did you send a message to the "direct:getRestExternalService" endpoint? from() just means it consumes from that URL, so the route won't be executed until a message is sent to that endpoint. Thanks, Tomo On 02/28/2017 02:59 AM, rkmohapatra wrote: Thank you Ravi for the tips. I did thi

Re: Camel File: Produce files based on size

2017-02-27 Thread Tomohisa Igarashi
Hi, I haven't tried but using splitter with streaming=true would help that kind of usecase. http://camel.apache.org/splitter.html Thanks, Tomo On 02/27/2017 10:10 PM, ganga_camel wrote: Hi All, I am working on a use-case where the need is to create files based on size. To elaborate further,

Re: how to handle large volume of data

2017-02-27 Thread Tomohisa Igarashi
Hi, I would try camel-http4 and save it into a file. http://camel.apache.org/http4.html Thanks, Tomo On 02/27/2017 07:19 PM, Gunjara wrote: Hi , can any one help me on this , I'm invoking a rest endpoint and as a response i'm getting large amount of data . Is there any solution for that . Reg

Re: Is it possible to set the delimiter of header and body of csv file differently?

2017-02-24 Thread Tomohisa Igarashi
Hi, You can parse the header by your own bean before marshal and then specify 'skipFirstLine' on csv dataformat. http://camel.apache.org/csv.html Thanks, Tomo On 02/24/2017 03:00 PM, Juno wrote: Is it possible to set the delimiter of the header and the delimiter of the csv file contents diff

Re: Error in Unmarshalling to custom data format

2017-02-23 Thread Tomohisa Igarashi
Hi, On 02/24/2017 01:36 PM, Amruta Jawlekar wrote: Thanks for your reply, Allan. Now I have removed all the routes from camel-context which were using bindy. So the bindy error message is gone. However, the main error in data conversion (unmarshalling) is still there. [

Re: using apache camel : org.apache.http.NoHttpResponseException after 10 seconds of request

2017-02-22 Thread Tomohisa Igarashi
Hi, It looks like the server just terminated the connection without returning HTTP response, but not with timeout. You may want to check raw server response by telnet or something. Thanks, Tomo On 02/22/2017 11:29 PM, ishant_ag wrote: Hi All, I am getting the following exception after 10 se

Re: How to Parse .tsv(tab separated value) file

2017-02-22 Thread Tomohisa Igarashi
Hi, Have you tried specifying '\t' as a separator? http://camel.apache.org/bindy.html Thanks, Tomo On 02/22/2017 07:18 PM, Gunjara wrote: HI All, if there any way to parse .tsv file , like .csv using Bindy . It is possible to use camel Bindy for parsing .tsv file. -- View this message in co

Re: Bug in camel-sql IN Clause - 2.18.0

2017-02-20 Thread Tomohisa Igarashi
Can you check testcases added here and see what is different from your case? https://github.com/apache/camel/commit/4cc5bc065985fee3f0fb4b5e5b2ce7c21a852e11 On 02/20/2017 08:48 PM, imranrazakhan wrote: HI, it look like this issue still not resolved, i tested with both 2.18.1 and 2.18.2 My Rout

Re: Camel 2.16.2 - No org.apache.qpid.jms.JmsConnectionFactory

2017-02-17 Thread Tomohisa Igarashi
Hi, Can you try adding org.apache.qpid:qpid-jms-client? Thanks, Tomo On 02/18/2017 12:08 AM, Mark wrote: I am building a route using the camel-amqp component and I'm following the example from http://camel.apache.org/amqp.html. When I start up my camel route I get the following exception. Is

Re: remap 'http' to use the camel http4 component by default

2017-02-02 Thread Tomohisa Igarashi
IIRC just adding a does the trick, at least worth a try. Don't forget to remove camel-http from your POM. Thanks, Tomo On 02/02/2017 09:02 PM, jack patwork wrote: Hi, Is it possible to remap the 'http4' component to use the 'http' component id. I'm asking because I have distributed applicati

Re: cronscheduledroutepolicy not working as expected in switchyard

2017-01-25 Thread Tomohisa Igarashi
Do not cross-post SwitchYard question here. This is Camel user community, not for SwitchYard. On 01/25/2017 04:07 AM, ravi21588 wrote: Hi All, Iam trying to implement cronscheduledroutepolicy in camel route and it is not working as expected.iam expecting switchyard Route to stop and start at cr

Re: Camel errorHandler problem

2016-12-27 Thread Tomohisa Igarashi
Hi, My guess is that you put it in wrong order. You may want to check the schema - http://camel.apache.org/schema/blueprint/camel-blueprint.xsd - - Thanks, Tomo On 12/27/2016 10:48 PM, bdeweer wrote: Hello, I try to use the tag in my XML DSL but it doesn't work. I t

Re: Service construction exception

2016-12-13 Thread Tomohisa Igarashi
Hi, Camel itself doesn't support RESTEasy, and the stacktrace contains cxf jaxrs which shouldn't appear when you use RESTEasy. You'd need to ask Red Hat support. Thanks, Tomo On 12/13/2016 07:28 PM, Siddharth Patil wrote: Hi , I have created a RESTEasy service in camel. But when i am trying

Re: camel-kafka 2.16.2 -> 2.17.3

2016-11-22 Thread Tomohisa Igarashi
Is this what you're looking for? I think StringSerializer is used by default if you don't specify though. https://kafka.apache.org/090/javadoc/org/apache/kafka/common/serialization/StringSerializer.html On 11/23/2016 09:55 AM, catequil wrote: I have upgraded camel-kafka from 2.16.2 -> 2.17.3 a

Re: How to invoking one rest webservice json response list property values to another rest webservice in one router.

2016-11-21 Thread Tomohisa Igarashi
Oops, I forgot to add doc links... http://camel.apache.org/splitter.html http://camel.apache.org/json.html http://camel.apache.org/http.html http://camel.apache.org/http4.html On 11/22/2016 12:06 PM, Tomohisa Igarashi wrote: Like this? .to("http://localhost:8081/products/toDayDate=201

Re: How to invoking one rest webservice json response list property values to another rest webservice in one router.

2016-11-21 Thread Tomohisa Igarashi
Like this? .to("http://localhost:8081/products/toDayDate=20161121";) .unmarshal() .json() .split(simple("${body.getProductList}")) .setHeader(Exchange.HTTP_URI, simple("http://localhost:8081/price/${body.getProductId}";)) .to("http://dummy";) .end(); On 11/21/2016 06:30 PM, Gunjara

Re: Batch insertion issue when shutting down apache camel

2016-11-21 Thread Tomohisa Igarashi
Hi, I would say transaction is the answer for the case like this, you can use transaction synchronization for non-transacted resources. But... it's worth a try setting CLIENT_ACKNOWLEDGE and invoke acknowledge() after you finish processing. You can access original JMS message by ((JmsMessage)

Re: Bug in camel-sql IN Clause - 2.18.0

2016-11-20 Thread Tomohisa Igarashi
Hi, Verified and filed a JIRA. https://issues.apache.org/jira/browse/CAMEL-10499 Thanks, Tomo On 11/20/2016 08:50 PM, imranrazakhan wrote: Hi, One observation regarding camel-sql(2.18.0) IN query , if we have one dynamic IN it works fine but if we have two dynamic IN it throws error, i replac

Re: java.io.IOException: Response header too large during upload to camel-jetty endpoint

2016-11-20 Thread Tomohisa Igarashi
Hi, Are you responding with IN message without removing headers? You may want to add headerFilterStrategy to filter unnecessary headers from response. Thanks, Tomo On 11/21/2016 12:36 AM, Vova Shelgunov wrote: Hi, I have application with the following jetty configuration: https://storage:8

Re: jms to kafka to jms

2016-11-16 Thread Tomohisa Igarashi
Hi, I played with this one. So it looks you need to specify ByteArrayDeserializer at kafka consumer side https://github.com/igarashitm/issues/blob/master/camel/misc/src/test/java/CamelJmsKafkaBytesMessageTest.java https://github.com/igarashitm/issues/blob/master/camel/misc/src/test/java/CamelJms

Re: Access CamelContext from a plain-old Servlet

2016-11-14 Thread Tomohisa Igarashi
working fine for me. https://github.com/igarashitm/issues/tree/master/camel/camel-servletlistener-hello On 11/15/2016 03:53 AM, PeterJNelson wrote: I did. "CamelContext" attribute was null. -- View this message in context: http://camel.465427.n5.nabble.com/Access-CamelContext-from-a-plain-o

Re: How to Print the response send from APNS

2016-11-14 Thread Tomohisa Igarashi
Hi, You'd want to put log DSL right after "to apns:notify" https://camel.apache.org/log.html Thanks, Tomo On 11/15/2016 03:26 AM, nsaran5 wrote: want to print the response getting from APNS but it is not displa

Re: NotifyBuilder Behaviour

2016-11-12 Thread Tomohisa Igarashi
enDone(3).and().from("direct:b").whenDone(5) cf. https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/builder/NotifyBuilder.java Thanks, Tomo On 11/11/2016 08:43 PM, Tomohisa Igarashi wrote: Hmm... I took a look at the code but looks confusing to me. At

Re: NotifyBuilder Behaviour

2016-11-11 Thread Tomohisa Igarashi
ed event should be delivered to all the predicates regardless of the previous result though. Would anyone else help? Thanks, Tomo On 11/11/2016 01:18 PM, Tomohisa Igarashi wrote: Hi, Hmm this looks weird. The predicates order shouldn't matter. Would you file a JIRA? Thanks, Tomo On 11

Re: NotifyBuilder Behaviour

2016-11-10 Thread Tomohisa Igarashi
Hi, Hmm this looks weird. The predicates order shouldn't matter. Would you file a JIRA? Thanks, Tomo On 11/10/2016 06:13 PM, sohrab wrote: I've read the page on NotifyBuilder but I don't think I really understood how it works. So I wrote below test case to verify it. The results confound me.

Re: Camel REST DSL - JSON API

2016-11-10 Thread Tomohisa Igarashi
Hi, I don't think there's any OOTB adapter for that in camel. However as camel allows you to use XStream, Jackson, Johnson and Gson for JSON marshal/unmarshal, if any of these supports JSON API, possibly you can leverage that feature in camel DataFormat. Otherwise you can add a custom DataForm

Re: IllegalStateException: Current exchange has not been set for ExpressionMapper while converting a CXF object

2016-11-07 Thread Tomohisa Igarashi
Hi, There're some testcases demonstrating expression mapping like this: https://github.com/apache/camel/blob/master/components/camel-dozer/src/test/resources/org/apache/camel/component/dozer/ExpressionMappingTest-context.xml https://github.com/apache/camel/blob/master/components/camel-dozer/src/t

Re: Access CamelContext from a plain-old Servlet

2016-11-02 Thread Tomohisa Igarashi
Hi, Did you try this one? It seems to be providing CamelContext as a ServletContext attribute. http://camel.apache.org/servletlistener-component.html Thanks, Tomo On 11/03/2016 01:16 AM, PeterJNelson wrote: I have a web application that uses Camel. I do not use the camel servlet, but I do us

Re: how do you tell what version of PGP or Zip is bundled

2016-11-02 Thread Tomohisa Igarashi
Hi, The "2.15.1.redhat-620133" is a revision number for the Red Hat product. Would you ask Red Hat support? Thanks, Tomo On 11/03/2016 02:37 AM, Mills, Gary (GE Digital) wrote: Can someone tell me how to find the version of PGP ( Pretty Good Privacy ) encryption is used for 2.15.1.redhat-620

Re: route message based on system property

2016-11-02 Thread Tomohisa Igarashi
Hi, There's a properties component: http://camel.apache.org/properties.html But if it's just a system property or ENV, you can refer it via simple expression on a condition, sys.foo or sysenv.foo: http://camel.apache.org/simple.html Thanks, Tomo On 11/03/2016 04:11 AM, Mark wrote: I would li

Re: jms and camel

2016-11-02 Thread Tomohisa Igarashi
Hi, Found a same question, it seems camel-sjms supports batch receive while camel-jms doesn't. So if you don't use XA camel-sjms should be a good to go. http://camel.465427.n5.nabble.com/JMS-Batch-consumption-td5754941.html Although there's a BatchMessageListenerContainer in spring-batch, I don

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread Tomohisa Igarashi
Yep, I actually can see "junit.framework,org.junit" in Import-Package of the amqp-client-3.6.4.jar!META-INF/MANIFEST.MF while it's not in 3.6.3. com.rabbitmq.client.test.ssl seems to be using it. On 11/02/2016 05:43 PM, Andrea Cosentino wrote: The Rabbitmq-client OSGi bundle comes directly fro

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.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 maste

Re: Setting TTL on Netty4 multicast endpoint

2016-10-28 Thread Tomohisa Igarashi
Hi, I think it should be "IP_MULTICAST_TTL" https://github.com/netty/netty/blob/4.1/transport/src/main/java/io/netty/channel/ChannelOption.java#L122 But note that the ChannelOptions are no longer string literal unlike netty3... hopefully something like following would work if (configuration.get

Re: Setting TTL on Netty4 multicast endpoint

2016-10-28 Thread Tomohisa Igarashi
Hi, I just took a look at this one, it seems camel-netty4 doesn't yet implement option.XXX https://github.com/apache/camel/blob/master/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyProducer.java#L417-L424 Would you file a JIRA for it? Thanks, Tomo On 10/27/2016

Re: Does camel provide a provision to deal with special characters in an address URL?

2016-10-27 Thread Tomohisa Igarashi
Hi, Are you using this one? http://oehf.github.io/ipf/ipf-platform-camel-ihe-xds/iti41.html The error message says that the parameter is assumed as a component option, but not a HTTP query parameter. Does this document help? http://oehf.github.io/ipf/ipf-platform-camel-ihe-xds/handlingExtra.htm

Re: Limit on the number of routes in camel context?

2016-10-26 Thread Tomohisa Igarashi
I guess it's just a matter of memory size you assign for JVM heap. On 10/27/2016 11:35 AM, Goyal, Arpit wrote: Is there a number limit of how many routes can be added as part of camel context? As camel context takes in our server around 200ms to start, we want to keep it running and add route

Re: OutOfMemoryError: Java heap space when sending large file to jetty endpoint

2016-10-20 Thread Tomohisa Igarashi
10:49 GMT+03:00 Tomohisa Igarashi : Hmm that smells like a bug in DefaultHttpBinding.populateRequestParameters(), it shouldn't read a parameter value which is already handled in populateAttachments(). Would you file a JIRA for it? On 10/20/2016 03:18 PM, Vova Shelgunov wrote: Hi, I

Re: OutOfMemoryError: Java heap space when sending large file to jetty endpoint

2016-10-20 Thread Tomohisa Igarashi
s for allowJavaSerializedObject I did not change default value (it is false). 2016-10-20 4:24 GMT+03:00 Tomohisa Igarashi mailto:tm.igara...@gmail.com>>: Hi, It seems like the OOM occurs when it's mapping request parameters, but not request body which is passed as an InputStream by default. Do you

Re: OutOfMemoryError: Java heap space when sending large file to jetty endpoint

2016-10-19 Thread Tomohisa Igarashi
Hi, It seems like the OOM occurs when it's mapping request parameters, but not request body which is passed as an InputStream by default. Do you have any large parameter other than body? Note that if you enable allowJavaSerializedObject, then body is deseriallized as a Java Object, may cause O

Re: https4 protocal is giving org.apache.http.client.ClientProtocolException caused by: null

2016-10-19 Thread Tomohisa Igarashi
Can you provide more info so we can replay? A link to the minimal reproducer project would be the best, you would place it on your github or like that. Whole route and full stacktrace would be still helpful. On 10/19/2016 03:07 PM, Manjanshavali wrote: I am setting process: -- 1)setti

Re: Post Json as an attachment in the Camel Route (blueprint)

2016-10-16 Thread Tomohisa Igarashi
Do you mean posting multipart form? This thread may help: http://camel.465427.n5.nabble.com/Camel-2-12-1-How-to-send-Http-post-with-an-attachment-using-ProducerTemplate-td5752217.html On 10/17/2016 03:51 AM, sai wrote: Hello, How can i post Json file as an attachment to the Rest web-servic

Re: Camel Spring Unit Testing with Mocks

2016-10-15 Thread Tomohisa Igarashi
Actually interceptSendToEndpoint applies over route collections, but not on a specific route https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java#L259 On 10/15/2016 03:36 PM, Tomohisa Igarashi wrote: I'm not sure if it'

Re: Camel Spring Unit Testing with Mocks

2016-10-14 Thread Tomohisa Igarashi
I'm not sure if it's a bug or misuse, but expectedBodyReceived().body().isEqualTo("expected") doesn't work as expected. expectedBodiesReceived("expected") or expectedBodyReceived().constant("expected") works fine. https://github.com/igarashitm/issues/blob/master/camel/misc/src/test/java/Expected

Re: Camel JSON

2016-10-14 Thread Tomohisa Igarashi
Hi, What actually is returning status 500? Any external REST service? Can you see that REST service log, specifically the actual payload you sent? And how does your camel route look like? Thanks, Tomo On 10/14/2016 02:06 PM, dpravin wrote: Hello All, The requirement is extract data from a O

Re: How to consume remote rest url and how to write given json response in a text file.

2016-10-12 Thread Tomohisa Igarashi
You can pass the HTTP parameters dynamically via Exchange.HTTP_QUERY message header. http://camel.apache.org/http.html On 10/12/2016 09:55 PM, Gunjara wrote: Hi Tomohisa Igarashi, Thanks for your reply. I need to pass parameters dynamically like http://yourhost.domain/path/to/rest/resource

Re: Camel Spring Unit Testing with Mocks

2016-10-12 Thread Tomohisa Igarashi
d On Wed, Oct 12, 2016 at 12:54 AM, Tomohisa Igarashi wrote: Hi, Is this what you're looking for as an example? interceptSendToEndpoint()&skipSendToOriginalEndpoint() via AdviceWithRouteBuilder intercepts sending to the actual endpoint defined in spring XML and forwarding it to the

Re: How to consume remote rest url and how to write given json response in a text file.

2016-10-12 Thread Tomohisa Igarashi
Is .to("http://yourhost.domain/path/to/rest/resource";).to("file:outputDir") insufficient for you? On 10/12/2016 05:28 PM, Gunjara wrote: Hi Any Body can help me on this. How to consume remote rest url and how to write given json response in a text file. like have Order ,Price endpoint urls a

Re: Camel Spring Unit Testing with Mocks

2016-10-11 Thread Tomohisa Igarashi
Hi, Is this what you're looking for as an example? interceptSendToEndpoint()&skipSendToOriginalEndpoint() via AdviceWithRouteBuilder intercepts sending to the actual endpoint defined in spring XML and forwarding it to the mock endpoint for testing purpose. https://github.com/apache/camel/blob/

Re: Camel 2.17.0 Jetty9 Test failing

2016-10-11 Thread Tomohisa Igarashi
Hi, If you're using redhat version of camel (2.17.0.redhat-630187), then you need to ask Red Hat about it. If you want to use community version of camel, then you need to specify 2.17.0 instead of 2.17.0.redhat-630187 in the POM. Thanks, Tomo On 10/11/2016 09:00 PM, owain wrote: Hi, Has any

Re: MQTT producer failure

2014-08-09 Thread Tomohisa Igarashi
to log a JIRA ticket. > > We should do like in camel-jms where we a header that is prefixed with > CamelJmsDestination as the control header to send to another > destination. And we do not propagate that header across. See the > source code for JmsProducer etc. > > On Sat, Aug 9,

Re: MQTT producer failure

2014-08-08 Thread Tomohisa Igarashi
ghly appreciated. Thanks, Tomo -- IGARASHI Tomohisamailto:tm.igara...@gmail.com On Tue, Aug 5, 2014 at 6:04 PM, Tomohisa Igarashi wrote: > Hi, > > I'm still struggling with camel-mqtt producer to get it working. This > is a previous thread: > http://camel.465427.n5.nabble.com

MQTT producer failure

2014-08-05 Thread Tomohisa Igarashi
Hi, I'm still struggling with camel-mqtt producer to get it working. This is a previous thread: http://camel.465427.n5.nabble.com/Dispatch-queue-mqtt-client-was-not-executing-error-from-camel-mqtt-producer-tp5753937.html I made an example which runs a standalone camel route to verify camel-mqtt w

Re: Dispatch queue 'mqtt client' was not executing error from camel-mqtt producer

2014-08-05 Thread Tomohisa Igarashi
Hi, I filed a JIRA for this issue: https://issues.apache.org/jira/browse/CAMEL-7662 Thanks, Tomo -- IGARASHI Tomohisamailto:tm.igara...@gmail.com On Thu, Jul 17, 2014 at 4:03 PM, Tomohisa Igarashi wrote: > Hi Charles, > > I don't think it's a warning, please see t

Re: Dispatch queue 'mqtt client' was not executing error from camel-mqtt producer

2014-07-17 Thread Tomohisa Igarashi
mel.util.ServiceHelper.stopAndShutdownServices(ServiceHelper.java:192) > at > org.apache.camel.impl.RouteService.doShutdown(RouteService.java:272) > at > org.apache.camel.support.ChildServiceSupport.shutdown(ChildServiceSupport.java:109) > ... > > > On Thu, J

Re: Dispatch queue 'mqtt client' was not executing error from camel-mqtt producer

2014-07-16 Thread Tomohisa Igarashi
/camel/blob/camel-2.12.2/components/camel-mqtt/src/main/java/org/apache/camel/component/mqtt/MQTTProducer.java ) Can you provide us more info about your use case, config, ... ? On Thu, Jul 17, 2014 at 7:05 AM, Tomohisa Igarashi wrote: Hi, I'm trying to use camel-mqtt producer on camel 2.12.

Dispatch queue 'mqtt client' was not executing error from camel-mqtt producer

2014-07-16 Thread Tomohisa Igarashi
Hi, I'm trying to use camel-mqtt producer on camel 2.12.2 but it fails with the error: -- Caused by: java.lang.AssertionError: Dispatch queue 'mqtt client' was not executing, (currently executing: 'mqtt client') at org.fusesource.hawtdispatch.internal.SerialDispatchQue