Re: how to check that a file exists in ftpserver

2014-11-07 Thread erik_romson
Thanks for a quick reply. I'm sorry but you have to spell it out to me, do you refer to the IdempotentRepository way of doing it? I was aware of that but option (I have been testing it with the filecomponent) but still, having to scan the entire ftprepo seems a bit excessive. -- View this messa

Re: Ack by the end of WS chain (client WS - [WS - Camel - client WS] - WS) *image inside

2014-11-07 Thread chainbuck
Hi hekonsek, Thank you for the answer. I'm glad to hear I can make it work! - Second step now: I need to know how. - I did a little bit of research and here is a way (using *Transaction manager*) I think I could potentially

Aggregator: do not move failed exchanges to deadletterqueue

2014-11-07 Thread srikarn
Hi, I am trying to use Aggregator With LevelDBAggregationRepository. with recovery but I do not want the messages to be moved to the deadletterqueue on exhaust. Instead I want to temporarily pause the route. Is there anyway to do this? Thanks, Sri -- View this message in context: http://camel

Re: getting default value Connection: Keep-Alive while sending request to CXF endpoint

2014-11-07 Thread ashwin74268
Nevermind, I got it fixed myself. This can be done using HttpConduit http-conf:conduit in spring configuration of your component. Best Regards, Ashwin -- View this message in context: http://camel.465427.n5.nabble.com/getting-default-value-Connection-Keep-Alive-while-sending-request-to-CXF-en

Re: executing PL/SQL script

2014-11-07 Thread Preben.Asmussen
Hi M You can always uses a regular java bean for executing custom logic. See Bean binding The custom bean could execute your PLSQL using eg. Springs JdbcTemplate /Preben -- View this message in context: http://camel.465427.n5.nabble.com/executin

Re: Camel Aggregation match all correlationId

2014-11-07 Thread srikarn
Actually I found what I was looking for. If we want to flush all grouped aggregates, we can send a message with the header Exchange.AGGREGATION_COMPLETE_ALL_GROUPS with value true. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Aggregation-match-all-correlationId-tp5

RE: camel-metrics Component

2014-11-07 Thread James L Greene
Thank you very much, Claus! Your suggestion worked like a champ. I look forward to seeing how this evolves. Here's the final code that I implemented. import com.codahale.metrics.Counter; import com.codahale.metrics.MetricRegistry; import java.util.SortedMap; import org.apache.camel.CamelContex

Re: how to check that a file exists in ftpserver

2014-11-07 Thread Claus Ibsen
There is a download=false option you can set. See details at the camel ftp doc On Fri, Nov 7, 2014 at 3:57 PM, erik_romson wrote: > Hi all, > I'm trying to understand how to fix the following. > > setup: > 1: send in a file to ftpserver > 2: the file is later moved to another folder by another pr

Re: camel-metrics Component

2014-11-07 Thread Claus Ibsen
Hi I logged a ticket to make it out of the box using the same codehale metrics. https://issues.apache.org/jira/browse/CAMEL-8014 On Fri, Nov 7, 2014 at 4:22 PM, Claus Ibsen wrote: > Yeah it looks like by default they wont use same registry because you > would need to add a registry with a name

Re: camel-metrics Component

2014-11-07 Thread Claus Ibsen
Yeah it looks like by default they wont use same registry because you would need to add a registry with a name to the registry, and then configure the metrics camel component to use a registry by its name. The default name to lookup is "metricRegistry" so you can do Map registry = new SimpleRegis

how to check that a file exists in ftpserver

2014-11-07 Thread erik_romson
Hi all, I'm trying to understand how to fix the following. setup: 1: send in a file to ftpserver 2: the file is later moved to another folder by another process in a route, I want to 1: read file name(s) from database (select filename from atable where state='file_not_moved') 2: check that file e

RE: camel-metrics Component

2014-11-07 Thread James L Greene
So you're saying this is something that would have to go on the development roadmap? I'm writing several batch/standalone processes which I need to capture metrics like this, to be recorded in a data reconciliation system. This component seemed like a good way to go, but if I can't capture the

Re: guice-maven-plugin documentation down?

2014-11-07 Thread dermoritz
Thanks for the info Claus, so there is no current Documentation at the moment? I think i can't contribute to guice-maven-plugin doc, cause i don't know anything about it. all goals i tried yield errors (embedded) or did nothing (dot). But probably i can contribute a little thing to GuiceDoc: I wo

Re: Problem with Camel rest in OSGi

2014-11-07 Thread Asgeir Frimannsson
There is however a small (1 character) bug in 2.14 where endpointProperties are ignored: In org.apache.camel.component.servlet.ServletComponent:createConsumer (and similar for other REST-aware endpoints): String url = "servlet:///%s?httpMethodRestrict=%s"; if (!query.isEmpty()) {

Re: camel-metrics Component

2014-11-07 Thread Claus Ibsen
Ah the route policy and the metrics component is not identical. They are just hosted in the same JAR. The route policy is self container what details it records. I guess we could combine those so you can also do like you to add custom counters with the Camel routes. eg a bit of history then camel

RE: camel-metrics Component

2014-11-07 Thread James L Greene
Claus, I gave your suggestion a try. There was no change in the output. The camel-metrics component is displaying the value of the counters via the logger, but the counters collection is empty when I try to access it programmatically. Regards, Jim Greene Principal IT Architect, Enterprise Ar

Re: Camel-boot autowiring issue

2014-11-07 Thread vasilievip
See attached: camel-spring-boot-example.zip - Run Boot1 and take a look at output - Run Boot2 and take a look at output -- View this message in context: http://camel.465427.n5.nabble.com/Camel-boot-autowiring-is

Re: Camel-boot autowiring issue

2014-11-07 Thread Henryk Konsek
> Looks like for the main, "optional" flag makes some classpath magic not > working :) > > org.springframework.boot > spring-boot-starter > ${spring-boot.version} > *true* Have you got any concrete example demonstrating this issue? I'd like

Re: guice-maven-plugin documentation down?

2014-11-07 Thread Claus Ibsen
Hi Here is how you can help with the documentation http://camel.apache.org/contributing.html Some of the doc examples got lost due Apache Infra upgraded the wiki system which dont support the grab the source examples from the repo and show in the wiki. So some pages still have a few errors. Peop

Re: Camel-boot autowiring issue

2014-11-07 Thread vasilievip
Yes, everything works fine. Thank you! Looks like for the main, "optional" flag makes some classpath magic not working :) org.springframework.boot spring-boot-starter ${spring-boot.version} *true* -- View this message in context: http://

SMTP receiver

2014-11-07 Thread James Green
The components page lists camel-mail as the SMTP component (twice in fact) but that it can only send emails. Is there something that can listen for inbound SMTP connections? James

Re: Camel-boot autowiring issue

2014-11-07 Thread Henryk Konsek
> Oops, my bad, the issue is that spring-boot-autoconfigure dependency is only > available for test scope Everything's OK then? :) -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: CXF with WS-Security using JAAS

2014-11-07 Thread Colm O hEigeartaigh
The assumption with JAAS login modules is that the password is to be compared "as is". For the digest case you could simply store the passwords in a digest form in the properties file. Colm. On Mon, Nov 3, 2014 at 10:52 AM, garethahealy wrote: > I've also added the code my to github account @ >

guice-maven-plugin documentation down?

2014-11-07 Thread dermoritz
Hi there, since some time i am using camel with guice. Now i want to try the guice-maven-plugin . But on this site i get many errors and the examples are not shown. On linked site

Re: Camel-boot autowiring issue

2014-11-07 Thread vasilievip
Oops, my bad, the issue is that spring-boot-autoconfigure dependency is only available for test scope -- View this message in context: http://camel.465427.n5.nabble.com/Camel-boot-autowiring-issue-tp5758543p5758668.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-boot autowiring issue

2014-11-07 Thread vasilievip
Ok, I tested out the change and it works like a charm in unit test, but in main class itself I think there is still some issue. Lets take as an example Boot1.java from my example project, if I do this: @Configuration @EnableAutoConfiguration @Import({*CamelAutoConfiguration.class,* CamelConfigur

Re: Empty response with camel cxf when putting message on queue also

2014-11-07 Thread rwijngaa
Found it! I forgot a marshal(xyzPriceDataFormat) after process(updateMarketDataXyzResponder). -- View this message in context: http://camel.465427.n5.nabble.com/Empty-response-with-camel-cxf-when-putting-message-on-queue-also-tp5758662p5758664.html Sent from the Camel - Users mailing list arch

Empty response with camel cxf when putting message on queue also

2014-11-07 Thread rwijngaa
Hi, I've got a camel route acting as a cxf webservice that must sent a non-empty response back to the caller *and* put the message on the queue. The message is put on the queue alright, but i always get an empty soap response: This is my cxf definition: and this is the camel route: The updat

Re: Configuring hibernate with blueprint in karaf

2014-11-07 Thread Aryan
Thanks for the reply guys. I took the versions from Henryk's example and now I was able to deploy/install those jars. (Before this I wasn't able to deploy hibernate-osgi successfully). 09 | Active| 80 | 4.0.4.Final | hibernate-commons-annotations 11 | Active| 80 | 1.2.1.Final | Java An

Re: Strange issue with JDBC add Postgres

2014-11-07 Thread Tim Dudgeon
I tracked it down a bit. Its something to do with auto commit. There's something about it here: http://www.postgresql.org/message-id/083dbfcc-8eac-4a5f-bd61-3a82dfc45...@visualdistortion.org In my case I tried using the resetAutoCommit=false property on the JDBC component, and thought it had wor

Correlation on payload with standard components

2014-11-07 Thread #S-SmixDev
Hi, I'm wondering if the following scenario can be implemented using standard Camel components (ie. without using a custom processor and /or custom components). Consider a synchronous InOut exchange that triggers some asynchronous backend processing. The response that needs to be generated for t

Re: Problem with Camel rest in OSGi

2014-11-07 Thread Claus Ibsen
Hi I have updated that page to explain that better. And btw its only when using the servlet component. https://cwiki.apache.org/confluence/display/CAMEL/Rest+DSL On Fri, Nov 7, 2014 at 10:07 AM, Claus Ibsen wrote: > The port is only for human and tooling such as JMX, swagger, etc. > > The actual

Re: Problem with Camel rest in OSGi

2014-11-07 Thread Claus Ibsen
The port is only for human and tooling such as JMX, swagger, etc. The actual port is configured by the component you use, and as you use servlet its the HTTP service from OSGi. In Karaf that service uses by default port 8181. On Fri, Nov 7, 2014 at 9:47 AM, amjr wrote: > Hi! > > I'm creating a

Problem with Camel rest in OSGi

2014-11-07 Thread amjr
Hi! I'm creating an OSGi bundle which uses blueprint to configure Camel routes. It looks like rest-endpoint doesn't listen to configured port. In blueprint.xml I have the following: And MailRouteBuilder java class builds the route: Project builds and CamelContext starts when I install the OS

Re: Calling a camel route seems to commit an outside transaction

2014-11-07 Thread Christian Schneider
Hi Preben, yes. There is indeed an option. By default it is set to auto which seems to cause the commit. The problem is that we need the uncommitted data to do the query. Interestingly outside of OSGi in spring it seems to behave differently. There the data seems to go to the first level cach