Re: I want change my route config Spring DSL to Java DSL below code but I got sql mismatched exception

2014-02-21 Thread Claus Ibsen
Hi In the XML you have a And in the Java DSL you do not have a .split() So they are not the same. On Fri, Feb 21, 2014 at 6:58 PM, bhagavan wrote: > autoStartup="true"> > uri="file:input/csv?noop=true&delay=10" /> > str

Re: http component processes 30+- times?

2014-02-21 Thread Claus Ibsen
Hi from http will continuously and forever do a HTTP GET on that url. Is that really what you want to do? If you want to do only 1 call or 1 call per minute or something, then start with a timer route, and then do a to http. On Fri, Feb 21, 2014 at 10:30 PM, Pete Carapetyan wrote: > Question b

I want change my route config Spring DSL to Java DSL below code but I got sql mismatched exception

2014-02-21 Thread bhagavan
${body[0]}

Re: File Component route issue.

2014-02-21 Thread jay
Hello Claus, Do you suggest any work around for this issue? -- View this message in context: http://camel.465427.n5.nabble.com/File-Component-route-issue-tp5747281p5747786.html Sent from the Camel - Users mailing list archive at Nabble.com.

OnException issue in Camel not sending invalid message to error queue

2014-02-21 Thread jay
Hi, I have an issue with the onException in camel route. Actually i have a requirement to process an inbound messages from a queue (from) and send it to the processed queue (to). if inbound message is not valid or gets an error/exception then send that message to error queue. But i could see the

Restlet Example on Tomcat 7

2014-02-21 Thread Tingenek
I had no luck getting this to work on tomcat 7. Problem: java.lang.IncompatibleClassChangeError: class org.springframework.core.LocalVariableTableParameterNameDiscoverer$ParameterNameDiscoveringVisitor has interface org.springframework.asm.ClassVisitor as super class Fixed by getting rid of the s

Re: Bug in 2.12.2 class org.apache.camel.impl.JNDIRegistry

2014-02-21 Thread kraythe .
I have been looking into it further and at the very least the comparison of type is wrong. The code says if (type.isInstance(pair.getClass()) || type.getName().equals(pair.getClassName())) { but should be if (type.isAssignableFrom(Class.forName(pair.getClassName( { Pair's getClass() method

Re: Bug in 2.12.2 class org.apache.camel.impl.JNDIRegistry

2014-02-21 Thread kraythe .
And incidentally it also fails to find derived type. I put in JTATransactionManager which is an implementation of the PlatformTransactionManager type and the lookup of PlatformTransactionManager fails. The camel implementation of the JNDI registry needs some work it seems. Anyone have any idea how

Bug in 2.12.2 class org.apache.camel.impl.JNDIRegistry

2014-02-21 Thread kraythe .
I was debugging an issue in a test case where I use Atomikos for JTA transaction management support and the app uses the JNDIRegistry. When the registry imll from camel is used and the lookupByType is called, it invokes the following code: public Map findByTypeWithName(Class type) { Ma

Re: Definition of a HL7 FTP endpoint simulated with a spring Camel mllp

2014-02-21 Thread dtjep
Can be resolved like : http://camel.465427.n5.nabble.com/XML-DSL-hl7codec-ACK-response-td5747732.html Best regards -- View this message in context: http://camel.465427.n5.nabble.com/Definition-of-a-HL7-FTP-endpoint-simulated-with-a-spring-Camel-mllp-tp5746939p5747790.html Sent from the Camel -

http component processes 30+- times?

2014-02-21 Thread Pete Carapetyan
Question below, but first: A batch processing delimited-file-to-avro-file component is up for anyone's review and comments now at https://bitbucket.org/datafundamentals/camel-avro-etl/overview It's my first venture into camel, either as a user or developer, so I'm guessing I broke a bunch of came

routeContext and startOrder attribute

2014-02-21 Thread erstanl
Hello, I am in a bind. I like the idea of a routeContext, as a way to extract common routes for usage by others. The problem I am running into, is that you cannot add a startOrder attribute to a route defined in a routeContext. Is there another way to control how routes that imported via routeCon

Re: how do I move doneFileName to backup location

2014-02-21 Thread Claus Ibsen
If you use Camel's doneFileName option on the file component. Then that file is automatic deleted, you cannot move it. On Fri, Feb 21, 2014 at 5:45 PM, skasish wrote: > how do I move doneFileName to backup location?? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/

Re: XML DSL hl7codec ACK response

2014-02-21 Thread sekaijin
Hello, I found where the problem is. MLLP ignore the answers if they do not correspond to the transmitted message. It is therefore impossible to make a constant response. I set a small jar (InAcquittementHL7that I deployed in karaf. It contains a bean, which product either a ACK or NACK accord

how do I move doneFileName to backup location

2014-02-21 Thread skasish
how do I move doneFileName to backup location?? -- View this message in context: http://camel.465427.n5.nabble.com/how-do-I-move-doneFileName-to-backup-location-tp5747779.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Processor threading model question

2014-02-21 Thread Rural Hunter
Good idea, will try that. Thanks a lot! 于 2014/2/21 17:18, Henryk Konsek 写道: Hi, The main problem is on my processors threading model. I read the doc and it describes that most processors should be singleton. But in my case my processor can not be singleton because it depends on some non-threa

Re: Not getting response back when splitter and agreegator pattern implemented in camel

2014-02-21 Thread Claus Ibsen
Hi Sounds like you need this EIP instead http://camel.apache.org/composed-message-processor.html And look for the splitter only example how to do that. On Fri, Feb 21, 2014 at 3:54 PM, PankajGupte wrote: > Can you please advice on below issue I am facing while using camel for > implementing sp

Not getting response back when splitter and agreegator pattern implemented in camel

2014-02-21 Thread PankajGupte
Can you please advice on below issue I am facing while using camel for implementing splitter/ aggregator pattern I am using producer template to invoke the route like below response = template.requestBody("direct:start5",req,String.class); My route is like below from("direct:start5").set

RE: context component with seda options

2014-02-21 Thread Cohen, Bruce
Thanks for the speedy response Claus. I gravitated towards using the combination of SEDA and context component because I liked the pseudo-namespace provided by referencing the endpoint using the context in which it was defined, i.e. instead of But if it isn't possible, I'll use vm inste

Re: context component with seda options

2014-02-21 Thread Claus Ibsen
Hi That is what the vm component is for http://camel.apache.org/vm Or the direct-vm http://camel.apache.org/direct-vm On Fri, Feb 21, 2014 at 3:24 PM, Cohen, Bruce wrote: > I'm trying to use the context component with SEDA endpoints. My goal is to > be able to define a SEDA endpoint in one co

context component with seda options

2014-02-21 Thread Cohen, Bruce
I'm trying to use the context component with SEDA endpoints. My goal is to be able to define a SEDA endpoint in one context and have multiple consumers in other contexts consuming from it, is this possible? I have the following two Spring DSL XML configurations: inner.xml

Re: How to pass '{' in simple languge expression?

2014-02-21 Thread Mariusz
Thanks for your ansewer. I'm using 2.12.2 version. As a workaround I have just used '[0]' as placeholder as 'file.dat.[0].gz' string is retrieved from properties file. Mariusz -- View this message in context: http://camel.465427.n5.nabble.com/How-to-pass-in-simple-languge-expression-tp5747738p

Re: How to pass '{' in simple languge expression?

2014-02-21 Thread Claus Ibsen
Hi What version of Camel do you use? You could try \u escape the { } ,eg \u1234 (where 1234 is the numeric value of it) On Fri, Feb 21, 2014 at 11:06 AM, Mariusz wrote: > Hi, > I want to use somethig like this: > > from("file:test?fileName=${bean:Utils.getFileName('file.dat.{0}.gz', > 'DDm

Re: XML DSL hl7codec ACK response

2014-02-21 Thread Claus Ibsen
Hi I wonder if the CDATA is causing a problem? Can you try without it, and just escape the < and > in the constant. On Fri, Feb 21, 2014 at 10:49 AM, sekaijin wrote: > Hi. > > I did a search in the doc and the forum without finding a solution to my > problem. > I have a set route with blueprint

How to invoke webservice via timer by blueprint DSL ?

2014-02-21 Thread nono
How to invoke webservice via timer in blueprint DSL ? Need to call webservice' start method , the method has two string parameter userid and command could anyone give me some hints? java.lang.IllegalArgumentException: Get the wrong parameter size to invoke the out service, Expect size 2, Parame

Handling objects in the rabbitmq component

2014-02-21 Thread Steffen Larsen
Hi There, I have a rabbitmq component that should consume an java POJO object. It works quite fine outside of camel, where I can handle the message as an object (MyObject, done in the spring-rabbitmq lib). When I send my object down to camel it seems that I can’t convert it into an object? Rou

Re: Loan Broker splitting

2014-02-21 Thread Claus Ibsen
Hi You would need to split up and configure this yourself, so the loan broker knows the remote url's for the banks and agency. This is a bit static setup as the example is not prepared for dynamic clustered environment. You would need to configure in this file. Instead of using localhost for the

How to pass '{' in simple languge expression?

2014-02-21 Thread Mariusz
Hi, I want to use somethig like this: from("file:test?fileName=${bean:Utils.getFileName('file.dat.{0}.gz', 'DDmm')}").to(...) Method is executed but there are passed 'null' parameters. Without {0} method is working fine. Please advise. -- View this message in context: http://camel.465427

Loan Broker splitting

2014-02-21 Thread borjom
Hey, How can I split the loan broker tutorial for example to three parts: 1)Bank web service 2)Credit agency 3)Loan broker itself? so that each of the web services could run on some different server(all the stuff is running only in localhost for now).So for example the bank web service runs on so

Re: camel-validator : parser doesn't allow a maxOccurs attribute value to be set greater than the value 5 000

2014-02-21 Thread ABouchama
It works ;), without developping anything ;) with JDK 1.6 and JDK 1.7 I have added in pom.xml the librairies present in the directory lib\endorsed of karaf or JBoss Fuse Thanks guys ;) -- View this message in context: http://camel.465427.n5.nabble.com/camel-validator-parser-doesn-t-allow-a-m

XML DSL hl7codec ACK response

2014-02-21 Thread sekaijin
Hi. I did a search in the doc and the forum without finding a solution to my problem. I have a set route with blueprint and xml I have a MLLP input and I send the raw content (Simple String) to a file. But I can not return an "ACK" to the sender. in java dsl is very simple XML if I put the s

How to implement async http consumer

2014-02-21 Thread Valeriy Molyakov
Hi, I'm looking into possibility to implement lightweight async consumer camel component using servlet 3.0 async api. Camel provides servlet component (camel-servlet) which does not support continuation (async processing). Camel jetty component do support continuation but it starts embedded servle

Re: OOM issue due to MemoryIdempotentRepository

2014-02-21 Thread Chirag Dewan
Hi, I might be misusing the ConsumerTemplate. Given that its a polling consumer,and with File Endpoint it will keep polling for a directory(and not a single file) once started. My requirement is to consume a single file,and a large number of those too. I might want to use the conventional Java

Re: Processor threading model question

2014-02-21 Thread Henryk Konsek
Hi, > The main problem is on my processors threading model. I read the doc and it > describes that most processors should be singleton. But in my case my > processor can not be singleton because it depends on some non-thread-safe > complicate calculation libraries. You can use ThreadLocal to cach

RejectedExecutionException issue in camel 2.10.4

2014-02-21 Thread simafengyun
Hi, I deployed 2 bundles in KARAF2.3.3 cluster. One is client bundle and the other is a service bundle. Thy are deployed in different cluster nodes. Client bundle has a camel route. it just receives message from JMS server and pass the message to service bundle by invoking remote OSGI service i

Re: camel-validator : parser doesn't allow a maxOccurs attribute value to be set greater than the value 5 000

2014-02-21 Thread Grzegorz Grzybek
Hello @ABouchama Here's what worked for me (Oracle JDK 1.7.0_51) Just set your own SchemaFactory. regards Grzegorz Grzybek -- View this message in context: http://camel.465427.n5.nabble.com/camel-validator-parser-doesn-t-allow-a-maxOccurs-attribute-value-to-be-set-greater-than-the-value-5-

Re: out of heap space if remote FTP site has too many files to pick up

2014-02-21 Thread skasish
Following error has been occurred 13:39:40.609 [Camel (camel-1) thread #0 - ftp://admin@localhost:2121/MF] DEBUG o.a.c.c.file.GenericFileProducer - Wrote [D:\temp\GT_aplist_ghiiwb02_apache_20140111.lst] to [Endpoint[file://D:/temp]] 13:39:40.609 [Camel (camel-1) thread #0 - ftp://admin@localhost:2

Re: out of heap space if remote FTP site has too many files to pick up

2014-02-21 Thread Claus Ibsen
You can limit the number of files to pickup in the poll, http://camel.apache.org/file2 See the maxMessagesPerPoll option On Fri, Feb 21, 2014 at 9:13 AM, skasish wrote: > out of heap space if remote FTP site has too many files to pick up. > > Is there configuration problem. > > My simple code is

out of heap space if remote FTP site has too many files to pick up

2014-02-21 Thread skasish
out of heap space if remote FTP site has too many files to pick up. Is there configuration problem. My simple code is given below import org.slf4j.*; import org.apache.camel.*; import org.apache.camel.builder.*; import org.apache.camel.main.Main; import org.apache.camel.component.dataset.*; pub