Re: xslt: TransformerException: include href is empty

2013-04-03 Thread Claus Ibsen
Hi What Camel version do you use? And have you tried upgrading to a newer release? We have fixed some issues loading resources with the xslt component. On Wed, Apr 3, 2013 at 4:59 PM, per.ce...@gmail.com wrote: > Hi > > Have a problem when I use xlst and have a xls that contains the function > d

Re: Way to determine if Route is running or not

2013-04-03 Thread Claus Ibsen
Hi Yes there is an org.apache.camel.spi.InflightRepository which you can get from CamelContext. There is a size method to return if there is any inflight messages for the given route id. Also form JMX you can see these numbers on the route mbeans. On Wed, Apr 3, 2013 at 10:21 PM, vishal1981 w

Re: Delete files in SFTP, only when route completed successfully

2013-04-03 Thread Claus Ibsen
The file is being deleted at the end of the route. If the exchange does not have any exceptions at the end of the route. So it depends what exceptions is being thrown and how - if you handle that. You do not post much details about your route and what exception is thrown etc. Generally when askin

Re: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.activemq.camel.converter]

2013-04-03 Thread sarfaraj
I am able to resolved this. It's due to my application error. -- View this message in context: http://camel.465427.n5.nabble.com/Failed-to-load-type-converters-because-of-Cannot-find-any-type-converter-classes-from-the-following--tp5730293p5730309.html Sent from the Camel - Users mailing list

Re: Delete files in SFTP, only when route completed successfully

2013-04-03 Thread sarfaraj
Or do I need to remove "delete=true" from SFTP consumer and explicitly delete when route completed successfully ? There is no other way to do so ? -- View this message in context: http://camel.465427.n5.nabble.com/Delete-files-in-SFTP-only-when-route-completed-successfully-tp5730295p5730308.ht

Re: Problem with Camel Jpa Component and Container Managed Transaction

2013-04-03 Thread doxumd
Hi Claus Thanks for your quick reply. I've added dependencies to aries and now I have a new issue :( [ Blueprint Extender: 1] BlueprintContainerImpl INFO Bundle RouteTest is waiting for dependencies [(&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=jpa-example-pu))(

Delete files in SFTP, only when route completed successfully

2013-04-03 Thread sarfaraj
Hi, I have a route with SFTP consumer. I added delete=true in SFTP component. What happen now, if we got exception in route still its deleting the file. I want to delete only when it success not in Exception case.. Any idea please ? /Sarfaraj -- View this message in context: http://camel.46

Re: placeholder in from uri

2013-04-03 Thread Claus Ibsen
Yes that is supported. See this FAQ why you can't use springs ${ } directly http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html And I guess you have already seen some of the information on http://camel.apache.org/using-propertyplaceholder.html On Thu, Apr 4, 2013

Camel-AMQP connection factory

2013-04-03 Thread Gnanaguru S
Hello, I am trying to do a simple use case to test camel-amqp. Gladly activemq 5.8 has the support for AMQP. How can I specify the connection settings for connecting to ActiveMQ using camel-amqp ? Please find my route below, I think there should be a right way to configure AMQP. http://came

Re: CronSchedulePolicy with cxf endpoint

2013-04-03 Thread Richa
We are stopping the route dynamically using a shutdown processor based on some business conditions. Basically, shutdown processor has the below code: exchange.getContext().stopRoute(RouteID,6,TimeUnit.MILLISECONDS); This results in the following log statement on the console: "Graceful shutdo

Re: placeholder in from uri

2013-04-03 Thread Olivier Lamy
Ok for the nested properties. But my other question concerns usage of property in from uri. Is that supported ? It looks the scheme is a minimum. 2013/4/3 Claus Ibsen : > Hi > > You can use {{ }} in the .properties file then Camel will pick that up. > > Support for using nested Spring ${ } is b

Re: CronSchedulePolicy with cxf endpoint

2013-04-03 Thread Christian Müller
I miss the "routeStopTime" configuration [1]. Otherwise the route is still running. Do I miss something? [1] http://camel.apache.org/cronscheduledroutepolicy.html Best, Christian On Wed, Apr 3, 2013 at 8:51 AM, Richa wrote: > My route looks like this: > > CronScheduledRoutePolicy cronSchedule

Re: Camel/JMS with Atomikos UserTransactionManager not consuming Messages

2013-04-03 Thread Christian Müller
I use the following configuration [1] (with ActiveMQ). [1] https://github.com/muellerc/camel-in-transaction/blob/master/src/test/resources/META-INF/spring/JmsAndJdbcXATransactionSampleWithAtomikosTest-context.xml Best, Christian On Wed, Apr 3, 2013 at 4:31 PM, yxzhao wrote: > Hi All, > > We

Re: It is possible with Camel to use dynamic consumer? **after context start**

2013-04-03 Thread Chris Wolf
Sorry, but I'm still a little confused... Can you compare and contrast EventDrivenPollingConsumer vs. ScheduledBatchPollingConsumer? They both seem to support reading multiple times in an exchange... Thanks, Chris On Wed, Apr 3, 2013 at 5:07 AM, Claus Ibsen wrote: > You may want to see a litt

Way to determine if Route is running or not

2013-04-03 Thread vishal1981
Hi, Is there a way to query the CamelContext to find out if a route is running or not, as in, if a route is currently processing an exchange or a consumer endpoint of the route such as FTP or File is in the process of retrieving a file. I modify the routes with certain settings from the UI. Hence I

Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.activemq.camel.converter]

2013-04-03 Thread sarfaraj
Hi, I got following error I am usning servicemix 4.4.2 V, which has camel 2.8.5. Could someone tell me what is wrong with my app ? >> 19:14:36,454 | ERROR | ExtenderThread-4 | ContextLoaderListener| 76 - org.springframework.osgi.extender - 1.2.1 | Application co

Dynamic routing in Camel

2013-04-03 Thread mayank.gupta
Hi All , I am using Spring DSL for routing in Camel. I have to route the messages from transmitter(processor) to multiple queues in which one queue is map to one circle at a time. So for that i have to create routes for each queue.Is there any way to pass the queue name dynamically in the ? so w

Re: Transactional batching

2013-04-03 Thread Scott England-Sullivan
Hi Ben, Currently only SJMS (2.11.0) has support for batching of JMS transactions (local only, no XA). The consumer has natural batch support meaning that you set the number of messages you would like read before issuing a commit. You can also specify a timeout, default is 5000ms, to keep the co

Re: Deleting MQ Temporary Queue

2013-04-03 Thread PhilBurress
For MQ we had to create a temporary dynamic model queue, which is specified in the queue connection factory. Example from one of our integration tests: ... and in the route... So it uses the same model queue each time. It appears that Camel will attempt to reuse the temporary queues it creates an

Re: Camel routing issue

2013-04-03 Thread Prabu
Hi Chris, I used your code.But i am getting following compilation error lder.java:92: cannot find symbol symbol : method setHeader(java.lang.String,java.lang.String) location: class org.apache.camel.model.ChoiceDefinition .otherwise().setHeader("MyHeader","sdfsdf") *Note: *I

xslt: TransformerException: include href is empty

2013-04-03 Thread per.ce...@gmail.com
Hi Have a problem when I use xlst and have a xls that contains the function document(‘’). For ex. This gives an exception like: javax.xml.transform.TransformerException: include href is empty I have tried to use saxon, according to http://camel.465427.n5.nabble.com/xslt-error-with-document-td5

Re: spring-ws timeout question

2013-04-03 Thread Smith-John
Hi, unfortunately I didn't find a answer to my question. In the spring ws documentation I read something about timeout settings and callbacks. But the question is: how does camel use/apply this things exactly. Does camel maybe just set the timeout to infinite or does camel use callback possibiliti

Camel/JMS with Atomikos UserTransactionManager not consuming Messages

2013-04-03 Thread yxzhao
Hi All, We have an app using Camel to schedule jobs and Atomikos to manage transactions accessing IBM MQ queues and Oracle DB. Once a while message consuming routes stop consuming messages completely without indication of any abnormal conditions. Does anyone out there experience this or something

Callback after startup from org.apache.camel.main.Main afterStart()

2013-04-03 Thread Andrew Bailey
I have a use case, where I require a fast startup time for camel and wish to avoid classpath scanning. I use the Main class however it appears that its not possible to obtain a ProducerTemplate template = getCamelTemplate(); before calling the run method. (it produces an ArrayOutOfBounds exception

Enable to use default scope beans

2013-04-03 Thread Gardella juan
Hi, For example I have a bean: @Component("myBean") public class MyBean{ public void foo(){ } } And the route: from("...").to("bean:myBean") And works, but if I change the visibilty of MyBean to package fails: @Component("myBean") class MyBean{ public void foo(){ } } The route fa

Re: Splitter, Aggregation and Timeouts

2013-04-03 Thread dtauzell
Thanks, Is there a way to have the multicast send some sort of parameter to the direct endpoints so they can all act slightly differently based on that? Based on the incoming message I will look up N "member ids". Each of those ids will result in a message being sent to an external web service

Re: It is possible with Camel to use dynamic consumer? **after context start**

2013-04-03 Thread Chris Wolf
I actually was basing my current attempts based on what I read on that page. I thought if you used a ScheduledPollingConsumer, that it would loop for you and didn't need a while-loop. I will just try plain PollingConsumer in a while-loop. BTW, I found the ticket for dynamic URIs for FTP consumer

Re: placeholder in from uri

2013-04-03 Thread Claus Ibsen
Hi You can use {{ }} in the .properties file then Camel will pick that up. Support for using nested Spring ${ } is being tracked by https://issues.apache.org/jira/browse/CAMEL-6233 And added in upcoming releases. On Wed, Apr 3, 2013 at 1:50 PM, Olivier Lamy wrote: > Hi, > > I'd like to be abl

placeholder in from uri

2013-04-03 Thread Olivier Lamy
Hi, I'd like to be able to use something like: But I have issues with that. Exception: Caused by: org.apache.camel.NoSuchEndpointException: No endpoint could be found for: {{productImport.uri.location}}, please check your classpath contains the needed Camel component jar. more details availabl

Re: How to consume old file first in SFTP ?

2013-04-03 Thread sarfaraj
Ok, If I use "sortBy=reverse:file:modified" then it will take old file first then latest ...right ? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-consume-old-file-first-in-SFTP-tp5730253p5730267.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to consume old file first in SFTP ?

2013-04-03 Thread sarfaraj
But looks like "sortBy=file:modified" consumed the old file first and ""sortBy=reverse:file:modified" consumed the latest first. I got confused now :) I need to use *"sortBy=file:modified"* to consumed old file right ? Please confirm ? -- View this message in context: http://camel.465427.n5.

camel-elasticsearch option to connect to remote cluster

2013-04-03 Thread barthorre
Hi there, I was wondering if there is an option (or should be implemented) to be able to connect to a remote cluster. It should provide the same functionality like that java api for ES: new TransportClient(settings).addTransportAddress(new InetSocketTransportAddress(ip, 9300)) I tried to run a

Re: spring-ws timeout question

2013-04-03 Thread Claus Ibsen
Hi Did you find a solution to this? I would take a look at the spring ws documentation to find details about timeout support. Then its often a matter of having the camel-spring-ws component configure that timeout option. And if something is missing in camel-spring-ws, we can add that to the comp

Re: FTP2: use SFTP with private key not stored in file

2013-04-03 Thread Claus Ibsen
Hi I am not sure. Though we love contributions, so feel free to log a JIRA and/or work on a patch to add this functionality. For example with some interface that allows end users to implement a custom code how to obtain their keys. http://camel.apache.org/contributing.html On Fri, Mar 15, 2013 at

Re: how to do a registry of type: javax.sql.DataSource

2013-04-03 Thread Claus Ibsen
Yes you can use the bind method on the Main class to bind a bean to the registry. On Sun, Mar 24, 2013 at 10:09 AM, pitabwire wrote: > Hi Mr claus you could just bind the datasource to the default camel runner if > you are not using any containers to run your route as shown below. > > > > packa

Re: It is possible with Camel to use dynamic consumer? **after context start**

2013-04-03 Thread Claus Ibsen
You may want to see a little about consumer template here http://camel.apache.org/polling-consumer.html Notice the the consumer template polls one message at a time. If you want to "download all available files" you would need to run the code in a while loop as the example on that link. Though y

Re: Camel file component preMove creates directory before read lock acquired?

2013-04-03 Thread Claus Ibsen
Yeah the current logic is that preMove will move the file first. I guess we could consider acquiring the lock first, and then do the preMove afterwards. I have logged a ticket about this https://issues.apache.org/jira/browse/CAMEL-6235 On Mon, Apr 1, 2013 at 8:37 PM, icemanltd wrote: > This beh

Re: How to consume old file first in SFTP ?

2013-04-03 Thread Claus Ibsen
Hi Some ftp clients cannot get the modification timestamp very precisely. Maybe only it can get hours and minutes. You can try enabling the tracer http://camel.apache.org/tracer And look for the CamelFileLastModified header which has the modification timestamp, and see what values it has for the

Re: Problem with Camel Jpa Component and Container Managed Transaction

2013-04-03 Thread Claus Ibsen
Hi You would need to add to the classpath the Aries JPA JARs that has that JPA stuff you use. I am not sure which one has it but there is a bunch of Aries JPA JARs http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.aries.jpa%22 On Wed, Apr 3, 2013 at 9:49 AM, doxumd wrote: > I need yo

Re: Problem with Camel Jpa Component and Container Managed Transaction

2013-04-03 Thread doxumd
I need your help, I'm using pretty much the same example with a RouteTest class and it does not work as expected because of the following line : Bundle RouteTest is waiting for namespace handlers [http://aries.apache.org/xmlns/jpa/v1.1.0] I'm using the following blueprint.xml : http://www.osg

Re: Problem with Camel Jpa Component and Container Managed Transaction

2013-04-03 Thread doxumd
I need your help, I'm using pretty much the same example with a RouteTest class and it does not work as expected because of the following line : Bundle RouteTest is waiting for namespace handlers [http://aries.apache.org/xmlns/jpa/v1.1.0] -- View this message in context: http://camel.465427

Re: Only one cxf endpoint exposed using non-Spring CXF servlet

2013-04-03 Thread helander
Since I got no feedback on this, I wonder if I might have better luck with posting this on the CXF User list? Anyone that has successfully used the CXF non-spring servlet in combination with Camel CXF consumers and that are willing to share how you made it to work? Thanks Lars -- View this me