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 (a

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.routePoli

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.cs

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

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: > H

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://came

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 | TRA

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 C

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 co

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 co

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

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

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

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

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 a

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 st

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) ba

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 FT

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. Ca

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(JmsMessageTyp

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

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 p

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:qu

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()