Re: Camel converters chaining.

2012-09-14 Thread Claus Ibsen
On Thu, Sep 13, 2012 at 5:03 PM, solimo rob...@budzko.eu wrote: Claus Ibsen-2 wrote Chained converters can be tricky as they can become non optimal, if the intermediate conversion takes time/memory etc. It would instead often be better to have A - C directly as converter. True! Claus

Re: How does a Camel component update change existing routes

2012-09-14 Thread Claus Ibsen
On Thu, Sep 13, 2012 at 5:42 PM, shindito atanas.shin...@gmail.com wrote: So, I have two types of routes: 1) from vm:... to jms:topic.. 2) from jms:topic... to user processor I've tried restarting the routes while changing the component - after that the second type of routes still consume

Re: Need a example for Camel Bindy

2012-09-14 Thread Charles Moulliard
This is an interesting example (that we could improve) and add it the camel examples list (http://svn.apache.org/repos/asf/camel/trunk/examples/). On Fri, Sep 14, 2012 at 4:29 AM, santoshjoshi santoshjoshi2...@gmail.comwrote: Hi, I have created a small Camel Bindy Example for camel Users.

Re: convertBodyTo(org.w3c.dom.Document.class) fails

2012-09-14 Thread sarfaraj
You meant to say there is nothing similar to fragment=true in camel convertToBody ? We cant remove xml declaration ? Strange :( /Sarfaraj -- View this message in context: http://camel.465427.n5.nabble.com/convertBodyTo-org-w3c-dom-Document-class-fails-tp5029460p5719341.html Sent from the

Re: Apache Karaf and camel-fop

2012-09-14 Thread Maruan Sahyoun
OK - some further testing shows that camel-fop works fine if you run camel standalone. So the issue is when running inside an OSGI container. I'll do some more investigation. Is there someone around using camel-fop inside Karaf or ServiceMix? Any hints? Thanks for all the help so far. I'm very

Re: Apache Karaf and camel-fop

2012-09-14 Thread Claus Ibsen
On Fri, Sep 14, 2012 at 9:19 AM, Maruan Sahyoun sahy...@fileaffairs.de wrote: OK - some further testing shows that camel-fop works fine if you run camel standalone. So the issue is when running inside an OSGI container. I'll do some more investigation. Is there someone around using camel-fop

Re: Apache Karaf and camel-fop

2012-09-14 Thread Maruan Sahyoun
I installed the dependencies via osgi:install from that repository which enabled the Camel route to deploy (defined via Blueprint xml). But when I tried to submit data I got the error java.lang.UnsupportedOperationException: Don't know how to handle application/pdf as an output format. Neither

Re: Camel vs BPEL

2012-09-14 Thread Claus Ibsen
On Fri, Sep 14, 2012 at 2:20 AM, realice real...@gmail.com wrote: quick update-- my attempt to use the camel has been shutdown :( I argued with all my might and basically presented all the stuff you guys mentioned, but then again I'm just a mere developer, not like somebody higher up in the

Re: How does a Camel component update change existing routes

2012-09-14 Thread shindito
Yep, it's about the camel vm component. I'm using 2.9.0. But yesterday I've managed to resolve the issue: It seems that after cameContext restart previously created producerTemplates are no longer valid since they've been created by the camecontext with the old component . . . If I create a new

Re: convertBodyTo(org.w3c.dom.Document.class) fails

2012-09-14 Thread Charles Moulliard
Absolutely. On Fri, Sep 14, 2012 at 8:38 AM, sarfaraj sarfarajsay...@gmail.com wrote: You meant to say there is nothing similar to fragment=true in camel convertToBody ? We cant remove xml declaration ? Strange :( /Sarfaraj -- View this message in context:

Re: Apache Karaf and camel-fop

2012-09-14 Thread Maruan Sahyoun
I should have mentioned that I did as you suggested using features:install for camel and camel-fop (as well as camel-blueprint etc.) Am 14.09.2012 um 09:36 schrieb Claus Ibsen: Hi If you use Karaf / SMX then there is a camel-fop feature you can use to install. That is the recommended

Re: oracle BPEL vs camel

2012-09-14 Thread Charles Moulliard
Never forget that with a BPEL engine, all the steps (= status change ) defined in a Process must be saved in a DB. With Camel a process could be a camel route or a collection of camel routes and one camel exchange (= message) can pass though a collection of processors (= steps defined in a BPEL

Re: oracle BPEL vs camel

2012-09-14 Thread Magnus Palmér
As an integration platform I think this article should will scare some people: http://www.jayway.com/2010/05/07/xslt-transformations-in-oracle-service-bus In Sweden it has also been notoriously hard to find competence on Oracle, even from Oracle themselves.

Re: Cannot stop inputstream during ftp transfer

2012-09-14 Thread jmh
Hi Claus, I use camel 2.7.1 Yes I run Camel in OSGi container (Felix) apache-servicemix-4.4.0-fuse-00-43 I stop only the bundle (stop bundleId) but the JVM is still alive J-M -- View this message in context:

Re: Cannot stop inputstream during ftp transfer

2012-09-14 Thread jmh
Hi Calus, I use Camel 2.7.1 Yes, Camel is embedded in OSGi container Felix (apache-servicemix-4.4.0-fuse-00-43) I stop Camel with the OSGi command stop bundleId so the JVM is still running J-M -- View this message in context:

Re: Cannot stop inputstream during ftp transfer

2012-09-14 Thread Claus Ibsen
On Fri, Sep 14, 2012 at 1:18 PM, jmh jeanmarc.her...@nrb.be wrote: Hi Calus, I use Camel 2.7.1 Yes, Camel is embedded in OSGi container Felix (apache-servicemix-4.4.0-fuse-00-43) I stop Camel with the OSGi command stop bundleId so the JVM is still running Can you enable DEBUG or TRACE

Re: FTP-Consumer: Handle UnknowHostException

2012-09-14 Thread Claus Ibsen
Hi Use a custom poll strategy or enable the bridge error handler option. On Fri, Sep 14, 2012 at 1:50 PM, Hilde hilde.sch...@yahoo.de wrote: Hello everybody! We have created a ftp consumer route dynamically as follow: The thing is the configured endpoint cannot handle the situation if

Re: Camel vs BPEL

2012-09-14 Thread Henryk Konsek
Hi, can anyone give some really good convincing stuff that why should we use camel over BPEL? Call me stupid, but BPEL is too complex for me. :) If I want to orchestrate two WS endpoints and perform some transformation on the data, I would like to express this with a few lines of DSL. I'm

Re: Need a example for Camel Bindy

2012-09-14 Thread santoshjoshi
Hi Charles, How should i improve and commit this example. Regards Santosh Joshi Charles Moulliard-2 wrote This is an interesting example (that we could improve) and add it the camel examples list (http://svn.apache.org/repos/asf/camel/trunk/examples/). On Fri, Sep 14, 2012 at 4:29 AM,

Re: Distributed transaction in camel route

2012-09-14 Thread James Carman
Christian, Also, what we're looking to do is use non-XA WebSphere MQ connections. So, we need to figure out how to configure this stuff using non-XA JMS, but still have it behave correctly. We are using DBCP's managed pool support for the data sources. We believe that's working okay. Thanks,

Re: Need a example for Camel Bindy

2012-09-14 Thread Charles Moulliard
Can you contact me next week (ch0...@gmail.com) to discuss that please. On Fri, Sep 14, 2012 at 3:26 PM, santoshjoshi santoshjoshi2...@gmail.comwrote: Hi Charles, How should i improve and commit this example. Regards Santosh Joshi Charles Moulliard-2 wrote This is an interesting

Re: Camel vs BPEL

2012-09-14 Thread Donald Whytock
Something that's gelled from conversations I've had at my workplace is that there's a perception difference between commercial software and FOSS. Yes, I was one of those that, in this very thread, said Camel's a lot cheaper. But that's at least partly because I for one use it in personal hobbies

Camel sftp

2012-09-14 Thread Jonas Lanzendörfer
Hi there, I am very new to Camel and try to solve the following problem. I have files on Server A and want to copy them to Server B and then read the content and save the content to a database. I want to process every file only once… I started to set up a camel route like this:

Re: FTP-Consumer: Handle UnknowHostException

2012-09-14 Thread Hilde
Hello Claus! For your approaches I was very glad. The option /consumer.bridgeErrorHandler=true/ was exactly what I was looking for. However the onException(Exception.class) inside the ftp consumer route is not reached! I don't know why. When I would follow your poll strategy approach I would

Processing large files in Camel

2012-09-14 Thread gramanero
I am attempting to understand how the Camel File/File2 component works as I have a need to use this type of capability in an upcoming project. Goal: Write a Camel spring-based route that will detect files in a folder structure, wait until the entire file has been written, and place an entry onto

Re: Processing large files in Camel

2012-09-14 Thread gramanero
Sorry, once more piece of information...the appearing and disappearing of the .camelLock file is continuous. It never stops unless I stop the route. Also, I am running on Windows 7 O.S. -- View this message in context:

Data Transform to Bean

2012-09-14 Thread Chandra Kalirasa
Hi: I am new to camel. I have text files (.txt) which contains Employee info. I need to map employee info fields into Beans. Is there any mapping/data transform to bean in Camel? Please advise. Thank you, Chandra Sample text file:

RE: Cannot stop inputstream during ftp transfer

2012-09-14 Thread jmh
Hi Claus, Here is the logs, I don't see that the FTP transfer is stopped after the 20 sec timeout Any idea ? J-M 17:53:06,955 | TRACE | d #342 - Threads | RemoteFileProducer | 77 - org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Writing using tempNameFile:

Re: Processing large files in Camel

2012-09-14 Thread gramanero
I found this in the log as it relates to the issue with the .camelLock file. Looks like there is a java.lang.NullPointerException being thrown. No clue as to why this is happening though. Fri Sep 14 2012 12:43:21 GMT-0400 (Eastern Daylight Time) ERROR Failed delivery for exchangeId:

Re: Data Transform to Bean

2012-09-14 Thread santoshjoshi
Hi Chandra, You can use Camel Bindy Component. http://camel.apache.org/bindy.html http://camel.apache.org/bindy.html Regards Santosh Joshi Chandra Kalirasa wrote Hi: I am new to camel. I have text files (.txt) which contains Employee info. I need to map employee info fields into

I want to build a camel route programmatically...

2012-09-14 Thread e0richt
Hi I am newbie with Camel and it seems to be very powerful framework. One thing that I haven't found out yet is that how can you create routes programmatically? I want to do something like this: camel = new DefaultCamelContext(); camel.addRoutes(new RouteBuilder() { @Override

Re: Camel vs BPEL

2012-09-14 Thread Bruno Borges
IMHO, BPEL is about Business Process, and Camel is about Message Processing, although both can be used for the same thing (business or message). But what about human tasks in the middle? Persistence is important because your process may not be atomic. So if you go for Camel or any other product

Re: I want to build a camel route programmatically...

2012-09-14 Thread Christian Müller
Checkout this link: http://camel.apache.org/running-camel-standalone.html Best, Christian On Fri, Sep 14, 2012 at 6:50 PM, e0richt e0ri...@yahoo.com wrote: Hi I am newbie with Camel and it seems to be very powerful framework. One thing that I haven't found out yet is that how can you

Re: I want to build a camel route programmatically...

2012-09-14 Thread Donald Whytock
You don't have to do the loop yourself. You can use a Pipeline processor, as described at http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/processor/Pipeline.html Don On Fri, Sep 14, 2012 at 5:14 PM, Christian Müller christian.muel...@gmail.com wrote: Checkout this

SQLComponent batch=true issues?

2012-09-14 Thread rjh-sgc
.to(sql:select id,ssn from user?dataSourceRef=dataSource) .to(sql:insert into dest (id, ssn) values (# , #)?batch=truedataSourceRef=dataSource); I trying to pull all records from the user table and put it into the dest table. There are 2 rows in the user table. When i run this code, I get the