Re: Bindy running within a WAR, widlfly 8.2.0 and Camel

2015-04-17 Thread sanjay.gautam
Hi I am also facing the same issue , I looked at the code and looks like that here is exactly the issue Class Name : *BindyCsvDataFormat*at org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat.unmarshal(BindyCsvDataFormat.BindyCsvFactory *factory* =

Re: A little problem with annotation @CsvRecord

2015-04-17 Thread sanjay.gautam
HI Guys were you able to solve this problem , this problem is still lurking in camel code and now I am facing on the wildfly fly 8.2.0Final and also it doesn't work on other JBoss versions. Please let me know if you guys have any solution ' Stacktrace

Replacing JMS Component with SJMS

2015-04-17 Thread wrobs
Hi All, I'm attempting to replace the JMS component in my routes with the SJMS component, but using the original connectionFactory. bean id=sjms class=org.apache.camel.component.jms.JmsComponent property name=connectionFactory ref=jmsQueueConnectionFactory/ /bean bean

Re: The Camel Kafka component crashes with a NoClassDefFoundError exception.

2015-04-17 Thread Claus Ibsen
Hi Thanks guys yeah that is a valid reason. I think we should add to camel-kafka that the user should add the scala libraries version they use/need. On Fri, Apr 17, 2015 at 5:07 AM, Willem Jiang willem.ji...@gmail.com wrote: As the Scala lib has some backward compatible issue, so we cannot

Bug detected while storing file with name as exportorder_191111#500#10:12:23

2015-04-17 Thread gunjansharma18
Hi Camel file component throws, cannot store file IO error. If the file name contains more than one : symbol also for one : symbol anywhere in the file name I am getting the below error. Same error is resolved if I replace : with , For example exportorder_1427108941.csv#500#04,47,43.dat --

Re: Posting to Camel Servlet endpoint brings up file download dialog

2015-04-17 Thread jarod
Any updates on this topic? Pop up saving dialog as an end point.. -- View this message in context: http://camel.465427.n5.nabble.com/Posting-to-Camel-Servlet-endpoint-brings-up-file-download-dialog-tp3424535p5765912.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Replacing JMS Component with SJMS

2015-04-17 Thread Claus Ibsen
Hi The jms component class name is wrong bean id=sjms class=org.apache.camel.component.jms.JmsComponent property name=connectionFactory ref=jmsQueueConnectionFactory/ /bean That should be the class name from camel-sjms

Re: Authentication in pipes and filters ???

2015-04-17 Thread Cristiano Costantini
Hi Willem, hi all, thank you for your support, I wanted to avoid to throw an exception, because then I have to handle it in order to return proper payload (I want empty payload if the user is not authenticated) in the response. I've maybe found a different approach that I am now investigating:

Re: Authentication in pipes and filters ???

2015-04-17 Thread Cristiano Costantini
Yeah! There is a drawback! :-( Exchange.ROUTE_STOP stops completely the processing of the exchange, not only the current route! My routes are something like this: route id=httpRoute from uri=jetty:http://0.0.0.0:8090/mobile; / to uri=direct:gsonDeserialization / /route route

Re: A little problem with annotation @CsvRecord

2015-04-17 Thread Claus Ibsen
Hi If you deploy as WAR etc then you need to setup that jboss classloader http://camel.apache.org/how-do-i-run-activemq-and-camel-in-jboss.html http://camel.apache.org/camel-jboss.html Bindy still requires this but we have a ticket to remove this need, but this requires unfortunately a bit more

Re: Substring from nth character to nth from the end

2015-04-17 Thread yogu13
Hello, Thank you for letting us know. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Substring-from-nth-character-to-nth-from-the-end-tp5765788p5765888.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Replacing JMS Component with SJMS

2015-04-17 Thread yogu13
Hello, Please let us know how does you jms endpoint in route looks like ... Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Replacing-JMS-Component-with-SJMS-tp5765882p5765892.html Sent from the Camel - Users mailing list archive at Nabble.com.

Throtteling and dynamically changing MaxRequestsPerPeriod via Bean

2015-04-17 Thread Alex Cali
I would like to change the MaxRequestsPerPeriod inside a Throttler. I would like to use spring and having such a simple route, with some beans. snip bean id=hello class=example.HelloImpl/ bean id=endMe class=example.EndMe / bean id=configurationSource class=example.ConfigurationSource

Re: Bug detected while storing file with name as exportorder_191111#500#10:12:23

2015-04-17 Thread Claus Ibsen
Hi Are you using windows if so then the file name is invalid as : is no allowed. You can google The filename, directory name, or volume label syntax is incorrect and find many hits with explaination On Fri, Apr 17, 2015 at 11:18 AM, gunjansharma18 gunjansharm...@rediffmail.com wrote: Hi Camel

[DISCUSS] Looks like someone feels threatened... (TIBCO vs Open Source ESBs)

2015-04-17 Thread Raul Kripalani
Just found this marketing landing page published on social networks. It's made by TIBCO and attempts to highlight the downsides of Open Source ESBs. You don't need to be a rocket scientist to gather what exact ESB they are targeting (not us): just look at the images.

Re: [DISCUSS] Looks like someone feels threatened... (TIBCO vs Open Source ESBs)

2015-04-17 Thread Claus Ibsen
Hi Raul Well spotted. Well I guess its only a sign that Camel / Open Source / SMX / Karaf / Others Camel like ESBs make a dent into the old world. Now its Tibco to take notice. Their 4 myths seems very generic to me, as its not really about ESB but Open Source in general. IBM have done their

Re: Seconds since 1970

2015-04-17 Thread Giorgio Vespucci
Alexey, Thank you very much. I didn't realize early such a use of bean: component, for using Java lang classes! Chapeau :) Il giorno ven 17 apr 2015 13:59 Alexey Markevich amarkev...@talend.com ha scritto: Simply .setBody().simple(bean:java.lang.System?method=currentTimeMillis) - BodyType:

Re: FTP disconnect problem

2015-04-17 Thread Claus Ibsen
Hi I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-8660 Though sending that empty message ought to have 1 exchange in the batch to trigger the disconnect logic. On Fri, Apr 17, 2015 at 2:41 PM, Nick Bryan n...@unit3d.tv wrote: Thanks Claus, given that a try but it still

Re: Throtteling and dynamically changing MaxRequestsPerPeriod via Bean

2015-04-17 Thread Claus Ibsen
Hi Are you sure the getMessagesPerSecond returns a number that is 0 ? On Fri, Apr 17, 2015 at 3:02 PM, Alex Cali als...@gmail.com wrote: I would like to change the MaxRequestsPerPeriod inside a Throttler. I would like to use spring and having such a simple route, with some beans. snip

Re: Throtteling and dynamically changing MaxRequestsPerPeriod via Bean

2015-04-17 Thread Alex Cali
The bean should return a number 0, the class is fairly simple: public class ConfigurationSource { private long messagesPerSecond = 10; public long getMessagesPerSecond() { return messagesPerSecond; } } Alex -- View this message in context:

FTP disconnect problem

2015-04-17 Thread Nick Bryan
I'm playing around with the ftp component but have a problem with the disconnect option. It's defined as follows .from(ftp://host:21/distribution?Username=user Password=pass fileName=file.dtd passiveMode=true delay=600s maximumReconnectAttempts=3 reconnectDelay=5000 useFixedDelay=false

Seconds since 1970

2015-04-17 Thread Ângelo Costa
Hi Guys, anyone know in camel how i can get current seconds since 1970? in Long format? Thanks in advance, Ângelo Costa

Re: Seconds since 1970

2015-04-17 Thread Morgan Hautman
Hi Angelo, in a procesor you could do System.currentTimeMillis(); http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#currentTimeMillis%28%29 Regards, Morgan On 17/04/2015 13:27, Ângelo Costa wrote: Hi Guys, anyone know in camel how i can get current seconds since 1970? in Long

Re: Seconds since 1970

2015-04-17 Thread Alexey Markevich
Simply .setBody().simple(bean:java.lang.System?method=currentTimeMillis) - BodyType: Long, Body: 1429271715421 On Fri, 17 Apr 2015 14:51:05 +0300, Morgan Hautman morgan.haut...@gmail.com wrote: Hi Angelo, in a procesor you could do System.currentTimeMillis();

Re: FTP disconnect problem

2015-04-17 Thread Claus Ibsen
Hi Ah yeah you hit a corner case there. You can use the sendEmptyMessage option and then filter that in the route, then a disconnect is called. But we should do a disconnect anyway when 0 is polled. You are welcome to log a JIRA ticket Btw which Camel version do you use? On Fri, Apr 17, 2015 at

vm protocol threading behaviour

2015-04-17 Thread vdhawan
I have a camel context which has a cxf endpoint to accept messages. The same camel context has a camel route(route A) which invokes another camel route(route B). I executed a small load test (sent 10 request with 3 threads) using soap ui on the cxf endpoint. The average response time of the camel

Re: Seconds since 1970

2015-04-17 Thread Raul Kripalani
System.currentTimeMillis() / 1000. You will want to round up or round down (use Math). And please post only Camel-specific questions. For general Java questions, Stack Overflow or Google are your best bets. Regards, *Raúl Kripalani* Apache Camel PMC Member Committer | Enterprise Architect,

Re: About property place holder

2015-04-17 Thread Alan Camillo
Sorry my delay! I don't believe there are a relationship with Spring, because the DSL simple({{email.msg.status}}) works very well in the same context. Spring and Camel versions: camel.version2.15.1/camel.version parent groupIdorg.springframework.boot/groupId

Re: Seconds since 1970

2015-04-17 Thread angelo.rlcosta
Hi Guys, I'm doing as you told me but i am now getting a No bean could be found in the registry for: java.lang: org.apache.camel.NoSuchBea nException: No bean could be found in the registry for: java.lang Any idea? -- View this message in context:

Re: Sending email - possible bug?

2015-04-17 Thread muell01
James Green wrote To be honest the documentation at http://camel.apache.org/dead-letter-channel.html is a little contradictory and could use some touch-ups: 1. Under Redelivery default values the service is turned off and has 0 maximumRedeliveries, yet later it says By default Camel will

read file, read content and then read another file or exit

2015-04-17 Thread erik_romson
Hi I'm new to camel and can't understand how to solve the following. There is a ftp server that generates data each day. It places one or more files in a folder day 1: file0.xml (has seqnr 0) day2: file0.xml (has seqnr 2) file-1.xml (has seqnr 1) file-2.xml (has seqnr 0, same as file0.xml from

RE: Seconds since 1970

2015-04-17 Thread Hans Orbaan
Hi, Try java.lang.System -Oorspronkelijk bericht- Van: angelo.rlcosta [mailto:angelo.rlco...@gmail.com] Verzonden: Friday 17 April 2015 16:49 Aan: users@camel.apache.org Onderwerp: Re: Seconds since 1970 Hi Guys, I'm doing as you told me but i am now getting a No bean could be found

Re: Replacing JMS Component with SJMS

2015-04-17 Thread wrobs
Claus, You have the right of it. Thanks very much. -- View this message in context: http://camel.465427.n5.nabble.com/Replacing-JMS-Component-with-SJMS-tp5765882p5765973.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Seconds since 1970

2015-04-17 Thread angelo.rlcosta
Hi Hans, .setBody().simple(bean:java.lang.System?method=currentTimeMillis) this is what im already trying to do. Any clue on the nosuchbean issue? Ângelo Costa On Fri, Apr 17, 2015 at 4:07 PM, Hans Orbaan [via Camel] ml-node+s465427n5765971...@n5.nabble.com wrote: Hi, Try

Re: Camel logging with log4j2

2015-04-17 Thread Thiago Kronig
Camel uses internally SLF4J as its logging API. So, assuming you are using maven, just use the following: dependency groupIdorg.apache.logging.log4j/groupId artifactIdlog4j-slf4j-impl/artifactId version2.2/version scoperuntime/scope /dependency -- Thiago Kronig On Fri, Apr 17,

RE: Camel-CXF will generate invalid XML in some cases

2015-04-17 Thread Siano, Stephan
Hi, Your pointer was very helpful, however the fix was still extremely tricky. I have created a JIRA bug and attached a patch to it. https://issues.apache.org/jira/browse/CAMEL-8663 The root cause behind all this hassle was that the ReadHeadersInterceptor (from CXF) reads part of the Stax

Re: SOAP headers not relayed for a SOAP 1.2 service when using CXF component

2015-04-17 Thread _redwings
No further comments? :) -- View this message in context: http://camel.465427.n5.nabble.com/SOAP-headers-not-relayed-for-a-SOAP-1-2-service-when-using-CXF-component-tp5765823p5765987.html Sent from the Camel - Users mailing list archive at Nabble.com.

Using JPA component in EJB application and having issues with null TransactionManager.

2015-04-17 Thread Rob Terpilowski
Hello, I have a web application which I am running in Glassfish 4.1, which contains an EJB which is using Hibernate to access a SQL Server DB. I would also like to use the Camel JPA component for some new functionality, but I am getting NullPointerExceptions complaining about the transaction

Re: Seconds since 1970

2015-04-17 Thread Claus Ibsen
You may need a newer Camel version for this with simple language. What version of Camel do you use? You can always use a more powerful language such as groovy instead to write code in the xml file to use. On Fri, Apr 17, 2015 at 5:10 PM, angelo.rlcosta angelo.rlco...@gmail.com wrote: Hi

Decrypt Soap Response

2015-04-17 Thread sagarsoni89
Dear all, I am invoking a secured SOAP WebService (HTTPS) using Camel CXF deployed in Fuse. In the client, we have configured TrustStore and Keystore as per the standard config (Http-conduit). We're able to hit the server via Netscaler. The server is generating the response and sending it back to

Re: Using JPA component in EJB application and having issues with null TransactionManager.

2015-04-17 Thread Claus Ibsen
Hi You can likely configure the transaction manager on the jpa component directly if you use spring xml bean id=jpa class=org.apache.camel.component.jpa.JpaComponent property name ... .. configure transaction manager here /bean You can also configure this from java code, but that requires

Re: DLQ, cause:null

2015-04-17 Thread Claus Ibsen
Hi It smells like an error message from ActiveMQ, that text is not in the Camel codebase davsclaus:~/workspace/camel (master)/$ git grep -i Exceeded redelivery policy davsclaus:~/workspace/camel (master)/$ On Fri, Apr 17, 2015 at 5:55 PM, James Green james.mk.gr...@gmail.com wrote: We have a

DLQ, cause:null

2015-04-17 Thread James Green
We have a camel route consuming from ActiveMQ and occasionally get a DLQ entry without anything logged through our deadLetterChannel. The only thing we have to go on is a dlqFailureCause header which says: java.lang.Throwable: Exceeded redelivery policy limit:RedeliveryPolicy {destination =

Closed (removed) StreamCache when doing a Wiretap

2015-04-17 Thread Geert Vanheusden
Hi, I noticed a bug where the body (StreamCache) was already removed before the exchange reached the end (in the Wiretap route). I found the following ticket https://issues.apache.org/jira/browse/CAMEL-8386 and code

Re: read file, read content and then read another file or exit

2015-04-17 Thread Claus Ibsen
Hi You can implement a custom file filter class and then implement the logic to return true | false to accept the file depending on the sequence number. See about filter option at http://camel.apache.org/file2 On Fri, Apr 17, 2015 at 5:01 PM, erik_romson e...@zenior.no wrote: Hi I'm new to