Can Camel be used as RESTful API webservice client?

2013-08-01 Thread andreyrikunov
Say I would like to exploit Camel as a client to a RESTful web service. But not sure Camel is good enough for such kind of job. I also want to use http4 or ahc component, not cxf. In general I need only two kinds of routes: - from Bean -> marshall to Json -> to Ahc with static URI -> unmarshall f

Re: Compatibility problem from camel 2.10.* (or may be older) to 2.11.*

2013-08-01 Thread Claus Ibsen
Just add the new methods to the registry implementation and it works in both 2.10 and 2.11. On Fri, Aug 2, 2013 at 4:19 AM, liugang594 Liu wrote: > Hi : > > I saw the interface org.apache.camel.spi.Registry has significant changes > from 2.10.* to 2.11.* , > which lead us some compatibility pro

Start new route after transaction completed

2013-08-01 Thread dsemenov
Hello colleagues I have a simple route execMqOet is a transactional jms consumer which starts XA transaction. I need to start another transaction in direct:separate_tx_rou

Re: Dynamic xsl with custom uri resolver

2013-08-01 Thread ericsodt
Anyone have any ideas? -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-xsl-with-custom-uri-resolver-tp5736668p5736670.html Sent from the Camel - Users mailing list archive at Nabble.com.

Compatibility problem from camel 2.10.* (or may be older) to 2.11.*

2013-08-01 Thread liugang594 Liu
Hi : I saw the interface org.apache.camel.spi.Registry has significant changes from 2.10.* to 2.11.* , which lead us some compatibility problem when changing the camel version to latest version (we defined some customized Registry implementation inside). Even it seems no way to keep downward comp

Dynamic xsl with custom uri resolver

2013-08-01 Thread ericsodt
I have a camel route working as follows:[code] from("subjectLine") .to("xslt:transformSubject.xsl?uriResolver=#emailResolver") .to("fop:application/pdf").process(email) .to("smtp://..."); [/code]Our cus

Re: best practice for logging execution time

2013-08-01 Thread salemi
I have the following route and aggregating the 10 Exchanges into one. Now when I run Camel JMX and it provides mewith the meanProcessingTime. What does that mean for the route below. Is the mean time for a exchange that contains 10 exchanges or for each exchange that arrives trough JMS?

Re: save message across exchanges

2013-08-01 Thread Willem Jiang
I'm not sure how do you store the headers and properties. You can store the object instance reference into the exchange properties, then camel will copy it for you across the exchanges. Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redh

I can't receive packet in Multi-NIC machine

2013-08-01 Thread Satoyuki Tsukano
Hi, I have a problem. I use Camel-Netty to receive UDP packet and configure below. netty:udp://0.0.0.0:162/ My machine have Multi-NIC(Network Interface Card) bond0, bond1, etc. When I send packets to bond0, Camel-Netty receives packets. When I send packets to bond1, Camel-Netty doesn't receiv

Re: VM queue for 2 camel context

2013-08-01 Thread Raul Kripalani
Try setting the multipleConsumers=true option on all consumers. This option is documented in the SEDA component page. The VM component inherits all options from SEDA, so it should be possible to use it. Let us know if it solved your case. -- Raúl. On 30 Jul 2013, at 07:09, keesvandieren wrote:

Re: Validate Xml

2013-08-01 Thread Raul Kripalani
Glad to know you got it working! Feel free to file a JIRA ticket with your findings. Regards, Raúl. On 1 Aug 2013, at 22:59, bocamel wrote: > After I updated all Maven dependencies to the most recent version of Camel > and ActiveMQ (in my attempt to get rid of any incompatible servlet api jar)

RE: Validate Xml

2013-08-01 Thread bocamel
After I updated all Maven dependencies to the most recent version of Camel and ActiveMQ (in my attempt to get rid of any incompatible servlet api jar), the exception that happened after the return of my OutFaultInterceptor no longer happens. The proper soap fault was returned to the client. Thank

Re: Camel JPA - Clustered Deployment - Quartz Scheduling

2013-08-01 Thread gquintana
I find it strange to have N rows in Quartz tables for N cluster nodes. You should have one row per route x action on route. I imagine that if you schedule the same action for the same route on 2 different cluster nodes, sometimes one cluster node will try to execute the Job scheduler by the other n

Re: Camel Unmarshal throwing heap space exception

2013-08-01 Thread Christian Müller
Which memory limits do you use? Can you increase it? Occurs the exception in the gzip or the csv unmarshaller? Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Memb

Re: mvn build with -Pfastinstall not enabling noassembly flag?

2013-08-01 Thread Christian Müller
Cool, I wasn't sure whether this change was ok for you... Thanks Aki! Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/mem

RE: Validate Xml

2013-08-01 Thread bocamel
Claus and Willem, Thanks! I tried both options without success. But I successfully added my OutFaultInterceptor to the cxfendpoint. When my interceptor got control, the SOAP message had all the right information, so the mystery (why it was not sent back to the client) still remained. N

Aggregator won't work with filter?

2013-08-01 Thread roger_rabbit
Hi, I have a strange problem that may be related to my poor knowledge of EIP . But althouth I took time to read the whole of it, I may have missed stg cause I couldn't find a solution. Thus, here is it : I have 2 routes, one filtering incoming (XML as String)

Re: save message across exchanges

2013-08-01 Thread javamonkey79
The headers and properties I have tried will only persist the message across *that* exchange, not across *multiple* exchanges. -- View this message in context: http://camel.465427.n5.nabble.com/save-message-across-exchanges-tp5736593p5736646.html Sent from the Camel - Users mailing list archiv

Re: Multicast Memory HeapSize issue

2013-08-01 Thread jasonor
Hi Claus, thanks for the response. The payload size here is quite small here ~30k so i didn't streaming was the issue. Is there a ball park size where streaming should be enabled? I'm wondering is there something that is keeping these messages active/not eligible for garbage collection. The size

Re: Camel JPA - Clustered Deployment - Quartz Scheduling

2013-08-01 Thread dkum003
Hi Patrick, Yes i do have. I am trying to achieve the same. I did the following changes 1. Quartz.properties in my resource bundle with org.quartz.jobStore.isClustered = true 2. Made DB entries. 3. This is my route builder - QuartzComponent component = new QuartzComponent(); component.setProp

Re: Multicast Memory HeapSize issue

2013-08-01 Thread Claus Ibsen
If you body is big that you are splitting, then you can consider using streaming mode on the splitterl On Thu, Aug 1, 2013 at 4:04 PM, jasonor wrote: > Hi, i have quite a simple route which uses a and a > along the lines of > > ${body} > > > >

Multicast Memory HeapSize issue

2013-08-01 Thread jasonor
Hi, i have quite a simple route which uses a and a along the lines of ${body} I'm seeing HeapSize filling up, Diving into the heapsize more i see a large object array of type of type org.apache.camel.processor.Multicas

Re: Expose files in a directory over HTTP

2013-08-01 Thread Cristiano Costantini
Hi, the way I need to do it with camel is that I do need to specify both the URL of the external folder from and the real file system path within a spring beans.xml file. With camel in spring, I would be able to do it. Do you think I can do that from spring xml? Do you have any example of code to

Re: Expose files in a directory over HTTP

2013-08-01 Thread Willem jiang
If you just watt expose the static files though jetty, you can set the org.eclipse.jetty.server.handler.ResourceHandler into the jetty consumer with option of handlers. You don't need to do it on the camel route. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://

RE: Enums in spring config not working

2013-08-01 Thread Gershaw, Geoffrey
Hi, Just wondered if someone could verify that enums work in spring using simple. Please see below Geoffrey A Gershaw Credit eTrading Development +1 919 994 6412 (*102 6412) -Original Message- From: Gershaw, Geoffrey Sent: Wednesday, July 31, 2013 8:36 AM To: users@camel.apache.org Su

Expose files in a directory over HTTP

2013-08-01 Thread Cristiano Costantini
Hi all, Does it exist an easy way with Camel to publish a folder of static files to HTTP? I expect that it should be possible to write a route like: with the proper options so that the input request to jetty is used to read a file, and return it as http response via the inOut exchange. Is th

Re: Camel Enrich in a Loop

2013-08-01 Thread Claus Ibsen
See also the content enricher EIP. Or use a java bean and do the calls from there and merge the replies into a response etc. You dont have to do 100% in Camel routes. You can use java code as well. On Thu, Aug 1, 2013 at 12:09 PM, sushil_vsk5 wrote: > I am not sure whether a simple Splitter / Ag

Re: Camel Enrich in a Loop

2013-08-01 Thread sushil_vsk5
I am not sure whether a simple Splitter / Aggregator combination can help me address this. Should these be sufficient for the case that I described? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Enrich-in-a-Loop-tp5736543p5736629.html Sent from the Camel - Users mail

Re: Can multiple camel routes cause a very large number of threads?

2013-08-01 Thread paveltumilovich
Yes. Thank you, Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Can-multiple-camel-routes-cause-a-very-large-number-of-threads-tp5736620p5736628.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Can multiple camel routes cause a very large number of threads?

2013-08-01 Thread Claus Ibsen
Also posted here http://stackoverflow.com/questions/17978163/can-multiple-camel-routes-cause-a-very-large-number-of-threads On Thu, Aug 1, 2013 at 8:19 AM, paveltumilovich wrote: > Hello everyone. > > I have a task to integrate two systems: a frontend serving html and backend > which gives data t

Re: Camel Unmarshal throwing heap space exception

2013-08-01 Thread Claus Ibsen
Hi Take a look at the splitter EIP pattern and use the streaming mode. Also I think gzip is in memory based, you may want some way to unzip to another file directly. On Thu, Aug 1, 2013 at 8:27 AM, Richa wrote: > Hi, > I have a camel route where I am dealing with huge CSV files which comes in

Re: camel-sql, connection test required?

2013-08-01 Thread Marco Crivellaro
Thanks for pointing that out, I'll have a look at it. -- View this message in context: http://camel.465427.n5.nabble.com/camel-sql-connection-test-required-tp5736549p5736624.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: mvn build with -Pfastinstall not enabling noassembly flag?

2013-08-01 Thread Claus Ibsen
Hi Yeah I think Aki has fixed it so it works fine in both worlds :) On Thu, Aug 1, 2013 at 3:06 AM, Willem jiang wrote: > I think the Aki's solution doesn't change the default behavior of mvn install. > If we use the -Pfastinstall it will skip the assembly module automatically. > > > -- > Willem