JSR-233 and Camel-Script in OSGi environment (servicemix)

2013-12-13 Thread Stephan Burkard
Hi Camel users

Unfortunately I had to embed Camel 2.9 in an OSGi bundle since our platform
version is currently 2.8 and that version suffers from a bug with
errorhandling.

However, when the route of that bundle gets the first message, camel-script
tries to create a script engine for javascript (although I only use
simple-statements?!?). That fails with the error message "No script engine
could be created for: js".

I tried to provide the package "com.sun.script.javascript" in the
system-bundle via custom.properties file of servicemix. That works fine and
the import-package-statement of my bundle seems to be fulfilled on bundle
startup. But the error message on consumption remains, I guess because of
different classloaders.

How can I provide a javascript script-engine to the embedded Camel 2.9
version. Is there an osgi-bundle I can also embed that provides the engine?

Thanks
Stephan


Camel FTP consumer + socketFactory not work correctly

2013-12-13 Thread alexey-s
Hi

Camel FTP consumer + socketFactory not work correctly

There is a real FTP server with authorization .
ftp://free:free @ ftp.zakupki.gov.ru: 21 /

The company stands proxy squid. Use HTTP Basic authentication.

Work with FTP being timer .
read.routePolicy.startTime = 0 2/ 5 *** ?
read.routePolicy.stopTime = 0 0 /5 ***?


The first time the process starts and runs properly authorized .
Time authorization 12:07:01,018

After a few minutes prosess stops. At this time, the file is not yet fully
loaded.
You receive an error NullPointerException.

The next cycle is run without using the parameter
   & ftpClient.socketFactory = # socketFactory
Connection time 12:12:11,038


Journal of applied camel-ftp.log
  


Aleksey



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-FTP-consumer-socketFactory-not-work-correctly-tp5744716.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Facing problem in regex when used in Simple Expression Language

2013-12-13 Thread Bharath
Hi,

I have a simple route in which it will transfer a file from one file
endpoint to other file endpoint as below



${file:name.noext} regex 
'([^_]*).*'.${file:ext}



For example if i place a file "abcd_20131209.csv" in /mnt/input i should get
abcd.csv in /mnt/output
but the output file name what i am getting is "abcd_20131209 regex
'([^_]*).*'.csv"

Am i missing something in the regex?

Can someone help me out in this?

Camel Version - 2.10.0


Cheers!!!
Bharath.R



--
View this message in context: 
http://camel.465427.n5.nabble.com/Facing-problem-in-regex-when-used-in-Simple-Expression-Language-tp5744717.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel FTP consumer + socketFactory not work correctly

2013-12-13 Thread alexey-s
Forgot to specify. Camel 2.12.2
source code ProxySoketFactory: 
https://github.com/alexey-su/camel-ftpext/tree/master/src/main/java/org/apache/commons/net/proxy

  


Aleksey



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-FTP-consumer-socketFactory-not-work-correctly-tp5744716p5744718.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: JSR-233 and Camel-Script in OSGi environment (servicemix)

2013-12-13 Thread Claus Ibsen
Hi

I suggest to find another way with SMX 4.5.x and wait for SMX 4.6
which uses latest releases of all sorts. Usually OSGi is tricky and we
fix once in a while some gremlins to get stuff working in OSGi. And
Camel 2.9 is just too old.



On Fri, Dec 13, 2013 at 9:44 AM, Stephan Burkard  wrote:
> Hi Camel users
>
> Unfortunately I had to embed Camel 2.9 in an OSGi bundle since our platform
> version is currently 2.8 and that version suffers from a bug with
> errorhandling.
>
> However, when the route of that bundle gets the first message, camel-script
> tries to create a script engine for javascript (although I only use
> simple-statements?!?). That fails with the error message "No script engine
> could be created for: js".
>
> I tried to provide the package "com.sun.script.javascript" in the
> system-bundle via custom.properties file of servicemix. That works fine and
> the import-package-statement of my bundle seems to be fulfilled on bundle
> startup. But the error message on consumption remains, I guess because of
> different classloaders.
>
> How can I provide a javascript script-engine to the embedded Camel 2.9
> version. Is there an osgi-bundle I can also embed that provides the engine?
>
> Thanks
> Stephan



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


Re: Archive files using apache camel

2013-12-13 Thread Claire
Hi, Thank you guys.

I achieved this using scheduler task at OS level by some batch script file. 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Archive-files-using-apache-camel-tp5744649p5744720.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Reading file using camel

2013-12-13 Thread Claire
Hi, Sorry, it was my mistake for syntax error :(

Thank you anyway =D



--
View this message in context: 
http://camel.465427.n5.nabble.com/Reading-file-using-camel-tp5744653p5744721.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Passing value from one bean to one bean

2013-12-13 Thread Claire
Hi,

I have been trying to pass one value from one bean to one bean.

** // this
bean return test1. So I would like to pass that value (test1) into another
bean. I wonder if there is a way I can pass that value which I got from
another bean?

Thanks




--
View this message in context: 
http://camel.465427.n5.nabble.com/Passing-value-from-one-bean-to-one-bean-tp5744722.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel FTP consumer + socketFactory not work correctly

2013-12-13 Thread alexey-s
Exploring the magazine saw different objects

-- first start
12:07:01,016 | TRACE | ... | FtpOperations |
ponent.file.remote.FtpOperations   71 | 115 - org.apache.camel.camel-ftp -
2.12.2 | Connecting using FTPClient:
org.apache.commons.net.ftp.FTPClient@32b02753

-- second start
12:12:44,090 | TRACE | ... | FtpOperations |
ponent.file.remote.FtpOperations   71 | 115 - org.apache.camel.camel-ftp -
2.12.2 | Connecting using FTPClient:
org.apache.commons.net.ftp.FTPClient@3ccbebf3


Re-create the object FTPClient does not establish parameters.



Aleksey



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-FTP-consumer-socketFactory-not-work-correctly-tp5744716p5744723.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Bypass control of producer/consumer of an endpoint

2013-12-13 Thread Charles Moulliard
Hi,

Is there a way to by pass the control verifying that a producer/consumer
exist on a by example "direct" component when CamelContext is started ? Why
such question ? In certain use cases, we will call the "direct" component
using a ProducerTemplate in a java bean and not directly from another Camel
Route.

Regards,

-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io


Re: Passing value from one bean to one bean

2013-12-13 Thread Ravindra.Godbole


Claire  wrote:


Hi,

I have been trying to pass one value from one bean to one bean.

** // this
bean return test1. So I would like to pass that value (test1) into another
bean. I wonder if there is a way I can pass that value which I got from
another bean?

Thanks




--
View this message in context: 
http://camel.465427.n5.nabble.com/Passing-value-from-one-bean-to-one-bean-tp5744722.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful.


Re: Passing value from one bean to one bean

2013-12-13 Thread Ravindra.Godbole


Claire  wrote:


Hi,

I have been trying to pass one value from one bean to one bean.

** // this
bean return test1. So I would like to pass that value (test1) into another
bean. I wonder if there is a way I can pass that value which I got from
another bean?

Thanks




--
View this message in context: 
http://camel.465427.n5.nabble.com/Passing-value-from-one-bean-to-one-bean-tp5744722.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful.


Re: Camel-maven-plugin 2.12.1 Problem

2013-12-13 Thread Ravindra.Godbole


atiato  wrote:


Kind reminder ...



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-maven-plugin-2-12-1-Problem-tp5744328p5744713.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful.


Re: Camel-maven-plugin 2.12.1 Problem

2013-12-13 Thread Ravindra.Godbole


atiato  wrote:


Kind reminder ...



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-maven-plugin-2-12-1-Problem-tp5744328p5744713.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful.


Re: Camel-maven-plugin 2.12.1 Problem

2013-12-13 Thread Ravindra.Godbole


atiato  wrote:


Kind reminder ...



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-maven-plugin-2-12-1-Problem-tp5744328p5744713.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful.


Acknowledgement to topic only after process commits

2013-12-13 Thread Sri
Hi, 

I wanted to do a batch update on my solr indexing for the incoming messages.
I am using aggregator to do a batch and update and commit into solr.

By the way I am reading if from topic.  I want to send acknowledgement to
the topic only if it succesfully commits into the solr otherwise not so that
I won't loose documents if it is the commit is not successful. 

But here the acknowledge is sent as soon as aggregator takes it from the
topic/

is there any way that I delay sending acknowledgement only after I
successful commit.



Thanks in advance for your help
Sri



--
View this message in context: 
http://camel.465427.n5.nabble.com/Acknowledgement-to-topic-only-after-process-commits-tp5744732.html
Sent from the Camel - Users mailing list archive at Nabble.com.


How to call remote soap web service from a application using apache camel

2013-12-13 Thread reena upadhyay
Hi,

I have a  apache cxf soap service deployed on a web container tomcat.

The web service is is published on TOMCAT on URL:

http://localhost:8181/exemplar/Quote?wsdl

This wsdl has several web service operations exposed.
I want to call web service method findQuote(int quoteId) from a external 
application using apache camel.

Please guide me how to invoke a soap web service by passing request parameter 
and how to get the response in apache camel.

If anybody have a piece of code for this use case, then it would be of really 
very great help for me.

Thanks in advance.

  

Re: TimeOut - ExchangeTimedOutException

2013-12-13 Thread Syed
Thanks, I am able to resolve by setting the options in query string as below.

 

Regards
Jawahar



--
View this message in context: 
http://camel.465427.n5.nabble.com/TimeOut-ExchangeTimedOutException-tp5744516p5744735.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Setting exchange out body

2013-12-13 Thread johndoe1
In a processor I have code similar to this:

Car car = new Car();
List cars = new ArrayList();
cars.add(car);

exchange.getOut().setBody(cars, List.class);

The exchange goes to a jms queue that is processed in another processor. But
calling exchange.getIn().getBody() in this processor returns a string (seams
like the toString method of the list is called) instead of the list.

What should be done, so the message body remains a list when inspected in
the next processor?

Thank you,




--
View this message in context: 
http://camel.465427.n5.nabble.com/Setting-exchange-out-body-tp5744737.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Setting exchange out body

2013-12-13 Thread johndoe1
It seams like the jmsConfiguration for the component has the message type set
to text:
jmsConfiguration.setJmsMessageType(JmsMessageType.Text);

Probably this explains why the body of the exchange is received as text. Is
there a way to override the message type on a per message (or per endpoint)
basis, instead of setting it at configuration level?

Thank you



--
View this message in context: 
http://camel.465427.n5.nabble.com/Setting-exchange-out-body-tp5744737p5744739.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Email Alerts Upon FTP Failure

2013-12-13 Thread funkymonk
Thanks to all for your help.  I've done some reading and unfortunately much
of the content is way over my head   I'm a sys admin with no development
background.  As stated previously, I have several basic routes in the
Blueprint XML format.  Most of my routes grab a remote file and place it on
a FTP server, or something basic like that.  I'd like to get an email if a
route fails.  Can this be done easily within the confines of the Blueprint
XML format?   Or do I have to know Java to make this happen?

For added context, my routes essentially look like this:  



 
   ftp://user@blah blah
  





--
View this message in context: 
http://camel.465427.n5.nabble.com/Email-Alerts-Upon-FTP-Failure-tp5744376p5744742.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Access another CamelContext

2013-12-13 Thread Hilderich
Dear Camel Support Team,

We have about 3 bundles running in an OSGi-Container (Karaf) and each has
its own
CamelContext - we are using Aries Blueprint by the way. 
Now we have the requirement to stop a route from another CamelContext. 
Furthermore this CamelContext is defined in another bundle. Can I take
access to 
this CamelContext and stop the route?

Can this be done and what is here the best practice? I was thinking about a
OSGi-Service.

Many thanks and kind regards
Hilderich 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Access-another-CamelContext-tp5744744.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Setting exchange out body

2013-12-13 Thread Taariq Levack
Sure, check the camel-jms page[1] for options, there's jmsMessageType.

[1] http://camel.apache.org/jms.html

> On 13 Dec 2013, at 16:49, johndoe1  wrote:
> 
> It seams like the jmsConfiguration for the component has the message type set
> to text:
> jmsConfiguration.setJmsMessageType(JmsMessageType.Text);
> 
> Probably this explains why the body of the exchange is received as text. Is
> there a way to override the message type on a per message (or per endpoint)
> basis, instead of setting it at configuration level?
> 
> Thank you
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Setting-exchange-out-body-tp5744737p5744739.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Facing problem in regex when used in Simple Expression Language

2013-12-13 Thread kraythe .
${file:name.noext}.regex '([^_]*).*'.${file:ext}

Regex is a method call on the string return from the file:name.noext


*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
*


On Fri, Dec 13, 2013 at 2:57 AM, Bharath  wrote:

> Hi,
>
> I have a simple route in which it will transfer a file from one file
> endpoint to other file endpoint as below
>
> 
> 
> ${file:name.noext} regex
> '([^_]*).*'.${file:ext}
> 
> 
>
> For example if i place a file "abcd_20131209.csv" in /mnt/input i should
> get
> abcd.csv in /mnt/output
> but the output file name what i am getting is "abcd_20131209 regex
> '([^_]*).*'.csv"
>
> Am i missing something in the regex?
>
> Can someone help me out in this?
>
> Camel Version - 2.10.0
>
>
> Cheers!!!
> Bharath.R
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Facing-problem-in-regex-when-used-in-Simple-Expression-Language-tp5744717.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Ideas on how to structure route (alternatives to direct:...)

2013-12-13 Thread richie.rivi...@gmail.com
Hi All,

I've got two main routes in my application. An import route and an export
route.

At the end of my import route i say... .to("direct:import");

Then at the start of my export i say ... .from("direct:import")

Pretty standard stuff.

Yesterday I had to change my application to run about 5 post processing
routes that execute sql queries to run after the import and before the
export. I did this using the sql component. This worked fine. But i had to
link them all up using the direct component.

i.e.
to(direct)>from(direct),(direct)>from(direct),(direct)>from(direct),(direct)>from(direct)
etc

It's starting to get ugly now

Can anyone give me some ideas on how to structure my routes to make it a bit
nicer. Really there are three parts to my application now..

An import route, some post processing and an export route. Is there a way
that I can have some sort of container route for all my post processing
routes? They can't all run parallel because some of the sql queries are
dependent on each other.

My original thought was just to have one routeBuilder with many from and to
definitions...

from("direct:import").to("sql:query1")

from("direct:import").to("sql:query2")

from("direct:import").to("sql:query3")

But I found out yesterday you can't do this. I get a camel error saying
multiple routes are linked to "direct:import".

thanks for your help





--
View this message in context: 
http://camel.465427.n5.nabble.com/Ideas-on-how-to-structure-route-alternatives-to-direct-tp5744748.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Ideas on how to structure route (alternatives to direct:...)

2013-12-13 Thread Taariq Levack
Hi
I don't see from your example what you're really doing, I have an idea but I 
can't see it working, maybe post the actual ugly routes.

You can also consider a recipient list for all your SQL stuff, or multicast, it 
doesn't have to be in parallel.
Eg from("direct:import").multicast().to("sql:query1", "sql:query2")

Taariq

> On 13 Dec 2013, at 23:46, "richie.rivi...@gmail.com" 
>  wrote:
> 
> Hi All,
> 
> I've got two main routes in my application. An import route and an export
> route.
> 
> At the end of my import route i say... .to("direct:import");
> 
> Then at the start of my export i say ... .from("direct:import")
> 
> Pretty standard stuff.
> 
> Yesterday I had to change my application to run about 5 post processing
> routes that execute sql queries to run after the import and before the
> export. I did this using the sql component. This worked fine. But i had to
> link them all up using the direct component.
> 
> i.e.
> to(direct)>from(direct),(direct)>from(direct),(direct)>from(direct),(direct)>from(direct)
> etc
> 
> It's starting to get ugly now
> 
> Can anyone give me some ideas on how to structure my routes to make it a bit
> nicer. Really there are three parts to my application now..
> 
> An import route, some post processing and an export route. Is there a way
> that I can have some sort of container route for all my post processing
> routes? They can't all run parallel because some of the sql queries are
> dependent on each other.
> 
> My original thought was just to have one routeBuilder with many from and to
> definitions...
> 
> from("direct:import").to("sql:query1")
> 
> from("direct:import").to("sql:query2")
> 
> from("direct:import").to("sql:query3")
> 
> But I found out yesterday you can't do this. I get a camel error saying
> multiple routes are linked to "direct:import".
> 
> thanks for your help
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Ideas-on-how-to-structure-route-alternatives-to-direct-tp5744748.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Ideas on how to structure route (alternatives to direct:...)

2013-12-13 Thread richie.rivi...@gmail.com
the mullticast example you posted looks good. I thought multi cast was just
for parallel. Now that I know it's not i'll look into it.

So with the multicast example you posted does it do them in order? I'll have
a read of doco. Here are the post processing routes...

public void configure() throws Exception {
LOG.debug("Executing 
ItemImportPostProcessingConfigurableItemsRoute ...");


from("direct:itemImportRoute")
.routeId("itemImportPostProcessingConfigurableItemsRoute")
.autoStartup(true)  
.startupOrder(2) 
.shutdownRoute(ShutdownRoute.Defer)
.errorHandler(deadLetterChannel("log:dead")
.retryAttemptedLogLevel(LoggingLevel.ERROR))
.setHeader("notProcessed", constant(DaoConstants.NOT_PROCESSED))
.to("sql:{{sql.notProcessed}}?dataSourceRef=dataSource")
.to("sqlComponentSelectInputProcessor")
.to("sql:{{sql.configurableScenarioOne}}")
.to("sqlComponentSelectInputProcessor")
.to("sql:{{sql.updateConfigurableScenarioOne}}")
  
.to("direct:itemImportPostProcessingConfigurableItemsRoute");
}
}




public void configure() throws Exception {
LOG.debug("Executing ItemImportPostProcessingSimpleItemsRoute 
...");
from("direct:itemImportPostProcessingConfigurableItemsRoute")
.routeId("itemImportPostProcessingSimpleItemsRoute")
.autoStartup(true)  
.startupOrder(3) 
.shutdownRoute(ShutdownRoute.Defer)
.errorHandler(deadLetterChannel("log:dead")
.retryAttemptedLogLevel(LoggingLevel.ERROR))
.setHeader("notProcessed", constant(DaoConstants.NOT_PROCESSED))
.to("sql:{{sql.notProcessed}}?dataSourceRef=dataSource")
.to("sqlComponentSelectInputProcessor")
.to("sql:{{sql.simpleScenarioOne}}")
.to("sqlComponentSelectInputProcessor")
.to("sql:{{sql.updateSimpleScenarioOne}}")
.to("direct:itemImportPostProcessingSimpleItemsRoute");
}


public void configure() throws Exception {
LOG.debug("Executing
ItemImportPostProcessingVisibleInCatAndSearchItemsRoute ...");
from("direct:itemImportPostProcessingSimpleItemsRoute")

.routeId("itemImportPostProcessingVisibleInCatAndSearchItemsRoute")
.autoStartup(true)  
.startupOrder(4) 
.shutdownRoute(ShutdownRoute.Defer)
.errorHandler(deadLetterChannel("log:dead")
.retryAttemptedLogLevel(LoggingLevel.ERROR))
.setHeader("notProcessed", constant(DaoConstants.NOT_PROCESSED))
.to("sql:{{sql.notProcessed}}?dataSourceRef=dataSource")
.to("sqlComponentSelectInputProcessor")
.to("sql:{{sql.visibleInSearchAndCatalog}}")
.to("sqlComponentSelectInputProcessor")
.to("sql:{{sql.updateVisibleInSearchAndCatalog}}")  
  

.to("direct:itemImportPostProcessingVisibleInCatAndSearchItemsRoute");

}


public void configure() throws Exception {
LOG.debug("Executing 
ItemImportPostProcessingNotVisibleItemsRoute ...");

from("direct:itemImportPostProcessingVisibleInCatAndSearchItemsRoute")
.routeId("itemImportPostProcessingNotVisibleItemsRoute")
.autoStartup(true)  
.startupOrder(5) 
.shutdownRoute(ShutdownRoute.Defer)
.errorHandler(deadLetterChannel("log:dead")
.retryAttemptedLogLevel(LoggingLevel.ERROR))
.setHeader("notProcessed", constant(DaoConstants.NOT_PROCESSED))
.to("sql:{{sql.notProcessed}}?dataSourceRef=dataSource")
.to("sqlComponentSelectInputProcessor")
.to("sql:{{sql.visibleInSearchAndCatalog}}")
.to("sqlComponentSelectInputProcessor")
.to("sql:{{sql.updateVisibleInSearchAndCatalog}}")  
  
.to("direct:itemImportPostProcessingNotVisibleItemsRoute");

}



--
View this message in context: 
http://camel.465427.n5.nabble.com/Ideas-on-how-to-structure-route-alternatives-to-direct-tp5744748p5744752.html
Sent from the Camel - Users mailing list archive at Nabble.com.