Sinchronize a route with JPA and a route with SFTP component

2013-01-21 Thread calamita.agost...@libero.it
Hi, I'm new to Apache Camel. I'm trying to use Camel to convert some records from a db table to a csv file. After csv file creation, with another route, I will send it by beans sftp camel component. The route user is: from(jpa:com.italtel.esc.db.synchro.ClientTableEntity?

RE: how to set attachment headers in camel exchange?

2013-01-21 Thread cww1769
Yes, you are right; I made a mistake about the LOG object:( Thanks! The setting works and my problem has been solved! From: Willem.Jiang [via Camel] [mailto:ml-node+s465427n5725857...@n5.nabble.com] Sent: 2013年1月21日 13:41 To: CHEN Wei V Subject: Re: how to set

Camel Routing using Java DSL in Servlet without Spring

2013-01-21 Thread CamelNewbieUser
Hi Geeks, Outline of the task: 1. I have a simple web application with index.jsp as welcome page having one text input box and submit button, which is used to POST the parameter from index.jsp to Servlet 2. This servlet is invoking one method routing which has CamelContext initialization and

Re: Camel Routing using Java DSL in Servlet without Spring

2013-01-21 Thread Claus Ibsen
Hi See this example http://camel.apache.org/servlet-tomcat-example.html And from Camel 2.11 onwards you can do this without Spring, or the likes to bootstap your app http://camel.apache.org/servlet-tomcat-no-spring-example.html On Mon, Jan 21, 2013 at 11:10 AM, CamelNewbieUser

Upgrade QuickFix/J to 1.5.3

2013-01-21 Thread Bengt Rodehav
I noticed that camel-quickfix still uses version 1.5.2 of QuickFix/J. It would be nice if it could be updated to version 1.5.3 (released 2012-12-10) in preparation for the Camel 2.11 release. Version 1.5.3 of QuickFix/J includes support for the latest versions of the Fix standard (Fix 5.0 SP1 and

Re: Upgrade QuickFix/J to 1.5.3

2013-01-21 Thread Claus Ibsen
On Mon, Jan 21, 2013 at 1:20 PM, Bengt Rodehav be...@rodehav.com wrote: I noticed that camel-quickfix still uses version 1.5.2 of QuickFix/J. It would be nice if it could be updated to version 1.5.3 (released 2012-12-10) in preparation for the Camel 2.11 release. Version 1.5.3 of QuickFix/J

Re: How to avoid that with camel cxf

2013-01-21 Thread Willem jiang
After some discussion with Charles, it turns out the fault message is not set up rightly, and we don't need to add the extra classes created to extend Exceptions into the JAXB context as CXFEndpoint does as the CXF fault out interceptor chain will take care of Fault message for us. If you want

Re: How to force http consuming route to run only once?

2013-01-21 Thread Henryk Konsek
I think you can change your route from pulling request to direct producer mode. Just a little addition to Willem's answer. If you need to issue HTTP request on demand (for example once) do not use HTTP pull consumer, as you don't want to scan the endpoint continuously. Instead trigger the

Re: Sinchronize a route with JPA and a route with SFTP component

2013-01-21 Thread Henryk Konsek
Hi, I can I discover that first route has finished the polling ? JPA consumer works in a batch [1] mode. It means that you can refer to the following exchange properties in your route: * CamelBatchSize * CamelBatchIndex * CamelBatchComplete You are interested in the last one (which will be

Re: Upgrade QuickFix/J to 1.5.3

2013-01-21 Thread Bengt Rodehav
I can only find the 1.5.2 version at maven central - not the 1.5.3 version. Will you ask the servicemix team or did you want me to do that? /Bengt 2013/1/21 Claus Ibsen claus.ib...@gmail.com On Mon, Jan 21, 2013 at 1:20 PM, Bengt Rodehav be...@rodehav.com wrote: I noticed that

Re: Upgrade QuickFix/J to 1.5.3

2013-01-21 Thread Claus Ibsen
On Mon, Jan 21, 2013 at 5:00 PM, Bengt Rodehav be...@rodehav.com wrote: I can only find the 1.5.2 version at maven central - not the 1.5.3 version. Will you ask the servicemix team or did you want me to do that? Feel free to log the ticket. It wont make it in Camel 2.11, as the bundle release

How to do conditional entity persistence in JPA Consumer

2013-01-21 Thread Chris Wolf
I recently changed a schema to be more normalized by factoring out a column of type varchar2 that takes one of only a few dozen, but long values, so I created a lookup table for these strings and replaced the sting-valued column in the main entity with a foreign-key valued column, referencing the

Re: Upgrade QuickFix/J to 1.5.3

2013-01-21 Thread Bengt Rodehav
https://issues.apache.org/jira/browse/CAMEL-5990 /Bengt 2013/1/21 Claus Ibsen claus.ib...@gmail.com On Mon, Jan 21, 2013 at 5:00 PM, Bengt Rodehav be...@rodehav.com wrote: I can only find the 1.5.2 version at maven central - not the 1.5.3 version. Will you ask the servicemix team or did

Re: How to do conditional entity persistence in JPA Producer

2013-01-21 Thread Chris Wolf
(corrected Subject:) On Mon, Jan 21, 2013 at 12:11 PM, Chris Wolf cwolf.a...@gmail.com wrote: I recently changed a schema to be more normalized by factoring out a column of type varchar2 that takes one of only a few dozen, but long values, so I created a lookup table for these strings and

Re: How to do conditional entity persistence in JPA Consumer

2013-01-21 Thread Christian Müller
I would do this all together in a single bean... Best, Christian Sent from a mobile device Am 21.01.2013 18:12 schrieb Chris Wolf cwolf.a...@gmail.com: I recently changed a schema to be more normalized by factoring out a column of type varchar2 that takes one of only a few dozen, but long

Advice on solution wanted

2013-01-21 Thread helander
Given the following scenario, what would the best solution be. Given is: - A remote SOAP service is available over a JMS transport. - The service is described by a WSDL. - I generate an interface class (wsdl port type) from the wsdl using wsdl2java (cxf-codegen-plugin) - Applications that

Re: How to do conditional entity persistence in JPA Consumer

2013-01-21 Thread Chris Wolf
Hello Christian, So forget about the jpa: endpoint and just do the persistence and conditional logic, including getting the EntityManager within the bean? Thanks, -Chris On Mon, Jan 21, 2013 at 1:42 PM, Christian Müller christian.muel...@gmail.com wrote: I would do this all together in a

Re: Upgrade QuickFix/J to 1.5.3

2013-01-21 Thread Christian Müller
https://issues.apache.org/jira/browse/SMX4-1366 Best, Christian On Mon, Jan 21, 2013 at 7:32 PM, Bengt Rodehav be...@rodehav.com wrote: https://issues.apache.org/jira/browse/CAMEL-5990 /Bengt 2013/1/21 Claus Ibsen claus.ib...@gmail.com On Mon, Jan 21, 2013 at 5:00 PM, Bengt Rodehav

Re: Upgrade QuickFix/J to 1.5.3

2013-01-21 Thread Bengt Rodehav
Perfect, /Bengt 2013/1/21 Christian Müller christian.muel...@gmail.com https://issues.apache.org/jira/browse/SMX4-1366 Best, Christian On Mon, Jan 21, 2013 at 7:32 PM, Bengt Rodehav be...@rodehav.com wrote: https://issues.apache.org/jira/browse/CAMEL-5990 /Bengt 2013/1/21

Re: [CAMEL-3.0] Start moving forward

2013-01-21 Thread Christian Müller
Hi Hadrian! Please find my comments inline. Best, Christian On Thu, Jan 17, 2013 at 2:47 PM, Hadrian Zbarcea hzbar...@gmail.com wrote: Christian, Thanks for taking the initiative and restarting the process for Camel 3.0. The good news imho is that we're under no pressure and we can take

HL7 component works in Eclipse IDE but not when exported to JAR

2013-01-21 Thread StanZ
Hi, This is my first post to this forum. Appreciate any help. I have a program that processes inbound HL7 V2.4 data using Camel and the HL7 component from File to my Java bean for DB storing. I've added Mina and ActiveMQ JMS components also to process streaming data and return an ACK/NAK

Re: Camel QuartzComponent failed on recreating endpoint

2013-01-21 Thread garrydias
It´s a nice approach. I solved my problem setting camel quartz endpoint as stateful. But this comes at a high cost. With around 1500 jobs I lost 18MB in heap memory because my Exchanges have around 25kb. Trying to solve the memory issue, I changed the RamJobStore to JdbcJobStore but Quartz also

Re: How to do conditional entity persistence in JPA Consumer

2013-01-21 Thread Christian Müller
Yes. You can set up your EntityManager using Spring/Blueprint and inject it into your bean. In your bean you can use the EntityManager to query/update/create entities. IMO, it's simpler to do it in this way instead of modeling a Camel route which query the database first, use a CBR to route the

Re: HL7 component works in Eclipse IDE but not when exported to JAR

2013-01-21 Thread Christian Ohr
Did you check/debug what happens inside com.eagleriversolutions.app.erspoc.hl7v2.ProcessHl7V24Message#transformHl7Message? The bad log reports the error after the bean is called. cheers Christian 2013-01-20 21:58:54,878 DEBUG Camel (camel-1) thread #1 - JmsConsumer[hl7]

Re: How to force http consuming route to run only once?

2013-01-21 Thread Christian Schäfer
Thanks Willem, thanks Henryk for your suggestions. Will try that to find out what makes most sense. In fact, I tried the following which seemed to work from(timer:httpRequestTrigger?repeatCount=1).to(http.. Isthere actually a real use case where from(http://...) makes sense? Whats are the

Re: HL7 component works in Eclipse IDE but not when exported to JAR

2013-01-21 Thread StanZ
When I step through and debug in Eclipse it is fine. I've added print statements to the console to list various values extracted from the MSH HAPI and it fails when attempting to print the first data from the DATE field in the MSH header when running the JAR. But in Eclipse it goes through just

Re: Camel 2.10.3 ExchangeHelper.getMandatoryInBody is deprecated

2013-01-21 Thread Christian Müller
Thanks for reporting Geoffrey! I raised a JIRA for it to make sure we don't forget it: https://issues.apache.org/jira/browse/CAMEL-5991 Best, Christian On Thu, Jan 17, 2013 at 3:14 PM, Gershaw, Geoffrey geoffrey.gers...@credit-suisse.com wrote: Hello All, Apologies for the childishly

Re: How to avoid that with camel cxf

2013-01-21 Thread Charles Moulliard
Additional question about FAULT usage Camel allows to set the property setFault(true/false) on the IN or OUT exchange. This mechanism (I think so) is inherited from Camel 1.x and was coming from JBI specification (NMR). As setFault() property is not really used today (as we can intercept

Re: How to avoid that with camel cxf

2013-01-21 Thread Willem jiang
Hi Charles, Setting the Fault message could avoid the ErrorHandler retry action in the camel route. As the exception will be intercepted by the ErrorHandler by default. Fault message means you don't want to camel error handler to kick in. -- Willem Jiang Red Hat, Inc. FuseSource is now part

Re: Quartz component and context endpoint cache

2013-01-21 Thread Claus Ibsen
Hi That could indeed indicate a bug in Camel. Fell free to log a JIRA ticket in the issue tracker http://camel.apache.org/support On Mon, Jan 21, 2013 at 4:52 PM, Denis Delangle denis.delangle...@gmail.com wrote: Hello, Using camel-quartz in my camel based application (V 2.10.3), I