Re: Consume files periodically or on demand

2013-10-09 Thread Pontus Ullgren
You could create the file consuming route with autoStart(false). Then have a separate "controller" route that starts the first route on incoming message. Have a look at the Controlbus EIP[1] [1] http://camel.apache.org/controlbus.html // Pontus On Wed, Oct 9, 2013 at 10:09 PM, christoffer wrot

Re: Default value for a timer?

2013-11-05 Thread Pontus Ullgren
It will be fired according to the defaults for the timer component which is evry 1000 milisecond. See the documentation[1]. [1] http://camel.apache.org/timer.html // Pontus On Mon, Nov 4, 2013 at 7:07 PM, John D. Ament wrote: > I'm using Camel 2.10.7. We just noticed in our code we have a tim

Re: Read Multiple files or using concurrent consumers in one route

2013-12-10 Thread Pontus Ullgren
Hi, If the directories are subfolders of the same directory then you can use the recursive URI option see the File2 documentation[1]. If the directories are completely different directories in totally different locations I would create multiple routes, one per directory. These can then use a dire

Re: FTP to FTP file transfer through camel with Source Failover

2013-12-17 Thread Pontus Ullgren
Hi, I can see several different solutions to the problem. If files only appear on the backupSourceFTP when the sourceFTP is down you could have one route for each thus camel will always transfer files from both FTP servers. It would be up to the producer to place them on the active one. You coul

Re: Zipping multiple files to one Zip-File

2013-12-28 Thread Pontus Ullgren
Here is a AggregationStrategy, that I'm using in a project, that aggregates all incoming messages into a ZIP file. It uses a temporary file to store the data in between messages. https://gist.github.com/ullgren/8160215 Best regards Pontus On Fri, Dec 27, 2013 at 8:23 PM, alex wrote: > Thank y

Re: Need for XA?

2014-01-04 Thread Pontus Ullgren
It all depends on your requirements and how your database and the system consuming from the second queue is designed. If the write operation to the database and the system consuming from the second queue is idempotent, ie they can both gracefully handle that the same message is processed twice. Th

Re: Load testing for Camel appliation

2014-01-21 Thread Pontus Ullgren
Hi, To add to Jans answer. JMeter can also handle JMS http://jmeter.apache.org/usermanual/build-jms-topic-test-plan.html An alternative to JMeter if your "message channel" is a SOAP or REST endpoint is to use soapUI (with loadUI). http://www.soapui.org/ It also has support for JMS though I neve

Re: camel-dropbox

2014-03-07 Thread Pontus Ullgren
In the the dropbox core API zip file there is a License.txt https://www.dropbox.com/developers/downloads/sdks/core/java/dropbox-java-sdk-1.7.6.zip --- Copyright (c) 2013 Dropbox Inc., http://www.dropbox.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this soft

Re: Dynamic stylesheets and JIRA CAMEL-7129

2014-05-20 Thread Pontus Ullgren
I just updated the XSLT documentation to indicate that the CamelXsltResourceUri has been removed and that dynamic URI should be used instead. Perhaps the information about CamelXsltResourceUri should be completely removed but for now I left it for those users that run a dated version of Camel. //

Re: camel sql component

2014-05-20 Thread Pontus Ullgren
Hello Poyan, You could try something like this to assign a header the value of the body and then use the header name. -- http://camel.apache.org/schema/spring";> id body -- Hope this helps // Pontus On Tue, May

Re: camel sql component

2014-05-21 Thread Pontus Ullgren
the sql statement. > Thanks > > > > > 2014-05-20 23:20 GMT+02:00 Pontus Ullgren : > >> Hello Poyan, >> >> You could try something like this to assign a header the value of the >> body and then use the header name. >> -- >&g

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-16 Thread Pontus Ullgren
Hello, If I remember correctly you should use forward slashes '/' in the path when using the file component to access a UNC path on a windows network. But I could be wrong. I do not have any windows machines available to test. Also when using the file component camel will access the share as the u

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-16 Thread Pontus Ullgren
If you read the documentation there is examples: from("smb://f...@myserver.example.com/sharename?password=secret&localWorkDirectory=/tmp") .to("bean:foo"); Also you can have a look at the unit tests. https://camel-extra.apache-extras.org.codespot.com/git/components/camel-jcifs/src/test/java/org

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-16 Thread Pontus Ullgren
As akoufoudakis say the jcifs component behaves like the File2 or FTP component. You can see some examples in the docs and also the test source code I send links to earlier. If you have questions about camel-jcifs please use the camel-extras mailing list (http://camel-extra.1091541.n5.nabble.com/)

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-17 Thread Pontus Ullgren
Hello, I have in the past successfully used the file component to access a remote windows share. However when doing so the share will be accessed by the user that the camel process is running as. So that user needs permission to read and write on the share. Also it only works when running the came

Re: I want to save the whole reply on disk an read the reply later ?

2014-09-09 Thread Pontus Ullgren
Hi You can use camel cache ( http://camel.apache.org/cache.html) for this purpose. Check example 8 in the documentation. However to be complete it should also contain an otherwise where the cached value is read from the cache. //Pontus On 9 Sep 2014 08:29, "Frankiboy" wrote: > > > > Can someone

Re: Reading queunames from database to camelcontext.xml

2014-09-18 Thread Pontus Ullgren
You can use a custom processor or the content enrich[1] EIP to fetch the queuename from the database and set the CamelJmsDestinationName header. There is a small example in the JMS component[2] documentation. As an alternative you can populate a header (as above) and then use the recipient list[3]

Re: JSch connection issue with Maverick SSHD server

2014-09-20 Thread Pontus Ullgren
Hi Keshav, Looking at SftpOperations.java[1] it is obvious that both these configuration parameters are set automatically when defining a compression level above 0. [1] https://github.com/apache/camel/blob/master/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOpera

Re: Camel SQL component - Insert Operation

2014-11-13 Thread Pontus Ullgren
According to the documentation the syntax should be ":#data" so it looks like you have switched places on the : and # On Fri, Nov 14, 2014 at 3:49 AM, contactreji wrote: > Hi > > I am trying to insert a record into the camel database. I have no errors > when I hard code the value like ** > > > I

Re: New to Camel, adding smtp completion notification using XML DSL

2014-11-14 Thread Pontus Ullgren
Hi, Simply set the body to the content you want in the email. Something like this (pseudo code that is not tested) should do it File ${in.header.CamelFileName} has been processed // Pontus On Thu, Nov 13, 2014 at 4:29 PM, fidoedidoe wrote: > Hi I'm new to camel (so forgive me for ask

Re: host multiple environment from same installation

2014-11-21 Thread Pontus Ullgren
Would be easier to help if you describe what runtime and DSL you was/are using for Camel (and Mule). If your using a servlet container deploying your integration applications as WAR filer and use Spring DSL then you can use this simple trick (http://stackoverflow.com/questions/4221974/external-co

Re: host multiple environment from same installation

2014-11-21 Thread Pontus Ullgren
No but for camel running in tomcat this should work. Which is what I think you asked for ? // Pontus On Fri, Nov 21, 2014 at 1:15 PM, arno noordover wrote: > Pontus, > > We use mule-standalone-3.5.0, so I suppose we don't have a servletContext. > > Arno > > > > -- > View this message in context:

Re: Issue in publishTopicName in mqtt component

2014-12-21 Thread Pontus Ullgren
Just tested this usecase and I can indeed recreate it with the Camel 2.14.1. Have you opened a Jira for this issue already if not I can create one with a test case showing the issue. As a workaround you can add split the route into two with a seda queue between them. On Thu, Dec 11, 20

Re: direct endpoint across camel context

2014-12-31 Thread Pontus Ullgren
I would suggest that you take a look at the direct-vm component. http://camel.apache.org/direct-vm.html Best regards Pontus On 31 Dec 2014 14:49, "leofprince" wrote: > Dear Camel Users, > > We have a couple of camel contexts and have a scenario where we need to > invoke a synchronous call to a r

Re: How to route the file like lst_20140427.tar.gz if the lst_20140427.done file exists

2015-03-12 Thread Pontus Ullgren
I think something like this should work from("file:bar?doneFileName=${file:onlyname.noext}.done"); Have a look at the File Expression Language[1] documentation. [1] http://camel.apache.org/file-language.html // Pontus On Thu, Mar 12, 2015 at 12:53 PM, skasish wrote: > I have to route file wi

XPath with namespaces, Spring DSL and Spring Boot

2017-08-10 Thread Pontus Ullgren
ntext element. Instead route fragment files are imported. Is there any way to get the namespace definitions into the camleContext by defining a @Bean ? Thanks Pontus Ullgren

Re: XPath with namespaces, Spring DSL and Spring Boot

2017-08-11 Thread Pontus Ullgren
es on the outer element. > > On Thu, Aug 10, 2017 at 10:01 AM, Pontus Ullgren > wrote: > > Hi, > > > > I have a problem I've been unable to solve with the combination specified > > in the subject. > > > > The problem is that when using the Spring D

Re: How to stop polling at unreachable (smb) file endpoint

2018-01-03 Thread Pontus Ullgren
on the endpoint. from("smb:DOESNOTEXIST/inputshare?bridgeErrorHandler=true") You can then handle the exceptions that arises in the consumer in a error handler just as with other errors that occur during processing. [1] https://camel-extra.github.io/ Best regards Pontus Ullgren

Re: swagger.json generation without host set to 0.0.0.0

2018-07-18 Thread Pontus Ullgren
these values for each request and not just on startup since two different clients might use different hostnames or even ports to call the same service. Just my €0.02 Best regards Pontus Ullgren On Tue, 17 Jul 2018, 21:47 Claus Ibsen, wrote: > Hi > > We can possible look at allowing to

Re: How to schedule FTP with quartz?

2013-03-18 Thread Pontus Ullgren
Hello Chris, On Mon, Mar 18, 2013 at 8:54 PM, Chris Wolf wrote: > Claus, > > I have a few further questions about CronScheduledRoutePolicy. I > noticed that it has setters such as setRouteStartTime, > setRouteStopTime, each which takes a cron expression string. What I'm > looking for is to be a

Re: Camel Aggregator Strategy Question

2013-03-18 Thread Pontus Ullgren
Hello, The file component will by default poll all files that are available in the directory. You could then use the aggregator EIP [1] and your own custom aggregation strategy to combine the files. Possibly you could also use a custom route policy to restrict the polling of files until all files

Re: How to schedule FTP with quartz?

2013-03-20 Thread Pontus Ullgren
Hello, On Tue, Mar 19, 2013 at 11:22 PM, Chris Wolf wrote: > On Mon, Mar 18, 2013 at 4:57 PM, Pontus Ullgren wrote: >> Hello Chris, >> >> On Mon, Mar 18, 2013 at 8:54 PM, Chris Wolf wrote: >>> Claus, >>> >>> I have a few further questions about

Re: Camel Aggregator Strategy Question

2013-03-20 Thread Pontus Ullgren
Add a transformation from CSV to Map object before the aggregator. Then let the aggregator store a list of maps, or a map of maps, in the exchange body. You can then use this list in any subsequent transformation. It all depends on what it is you intend to do with the data after it has been aggr

Re: Couchdb peer not authenticated exception

2013-03-20 Thread Pontus Ullgren
Hi, Could be that this has to do with the server certificate not beeing trusted by your java process. Check if the sever (hangstrap.iriscouch.com) has a valid certificate and that the root ca cert and any intermediate ca certs is in your trust store. Some browsers will auto-magicaly download the

Re: How to schedule FTP with quartz?

2013-03-23 Thread Pontus Ullgren
thread in onStart/onResume at the end of > > the time period, the route is suspended, but then upon > > the next schedule cron start time, I don't see it being resumed - I > > wonder if the RoutePolicy itself is being suspend too? > > > > Well, I try it your way

Re: How to schedule FTP with quartz?

2013-03-26 Thread Pontus Ullgren
ve as I though - which is - > you only need to suspend the route and all it's components will be > suspended. My suspicion is that components whose Consumers are under > the influence of PollingConsumerPollStrategy may not suspend by only > suspended the route. > >-Chr

Re: How to schedule FTP with quartz?

2013-03-26 Thread Pontus Ullgren
ll be >> suspended. My suspicion is that components whose Consumers are under >> the influence of PollingConsumerPollStrategy may not suspend by only >> suspended the route. >> >>-Chris >> >> >> On Sat, Mar 23, 2013 at 3:15 AM, Pontus Ullg

Re: How to schedule FTP with quartz?

2013-03-26 Thread Pontus Ullgren
pty message solution, however, in my case, the > remote files will intermittently appear > during the 30 minute window time, so we have to keep trying, even > after getting some files. > > On Tue, Mar 26, 2013 at 4:43 PM, Pontus Ullgren wrote: > > Sorry read your message a bit

Re: Conditional routing and local variables

2013-08-19 Thread Pontus Ullgren
.. stuff here... .to(destination): if ( localVar == value) { myRoute.to(additionalDestination); } else { myRoute.to(someotherDestination); } myRoute.to(commonFinalDestination); --- Best regards Pontus Ullgren

Re: Mina BufferDataException when using disconnectOnNoReply option

2013-08-22 Thread Pontus Ullgren
I have never used the mina component so I could be out on thin ice here. But I am not sure about the ';' to separate the parameters. Should it not be '&'? Best regards Pontus Den 21 aug 2013 17:58 skrev "milltj" : > Ok, So I decided to go back to the drawing board and decided to run some > tests

Re: How to Give any java application as a end point in from (....)

2013-08-30 Thread Pontus Ullgren
p://camel.apache.org/direct.html [2] http://camel.apache.org/producertemplate.html [3] http://camel.apache.org/seda.html Best regards Pontus Ullgren On Fri, Aug 30, 2013 at 7:27 PM, jhonny wrote: > getMessage() is called by the java application contiously , where it insert > the messages coniniou

Re: How to Give any java application as a end point in from (....)

2013-09-01 Thread Pontus Ullgren
A simplified answer is that the seda queue is defined when you use it as a from endpoint ie from("seda:start"). To send messages to it in your example simply use the producer template just change so the message is send to the seda uri instead of the direct. Best regards Pontus Tha

Re: Camel JBDC : Connection pooling

2013-09-11 Thread Pontus Ullgren
Not that it has anything to do with Camel but Spring JDBCTemplate does not provide pooling either. Just as with camel-jdbc the Spring JDBCTemplate uses the provided data source and you will need to use a connection pool libraries or get a container managed datasource pool. // Pontus On Wed, Sep

Re: How to keep sending in chronological order even when peer was down for a while

2012-07-26 Thread Pontus Ullgren
Hello, How do you receive the messages from the "external system" is this via messaging (JMS or other means) or some other protocol such as HTTP ? Since you are already comfortable with JMS (or at least you will have to become) why not use a JMS queue to keep the messages on the first JBoss unti

Re: Dynamic generation of Camel routes

2012-07-29 Thread Pontus Ullgren
Hello Joe, Provided that you do not have the routes set up to have autoStartup(false) I do not believe you will have to call camelContext.startRoute(..). I agree that it is strange that the first route seem to shutdown directly. Could you post some more information about your routes or even a sma

Re: Options for creating dynamic filters

2012-07-29 Thread Pontus Ullgren
Hello, The reason that camel does not stop the route directly is that there are inflight messages in the route. Setting the timeout to 1 will shorten the time camel wait for the inflight messages to be processed so there is a risk that by doing this messages will be lost. Another approch could be

Re: soap over jms

2012-07-31 Thread Pontus Ullgren
Hello Bhushan, As Willem say you need to use a topic if you want all messages to go to both endpoints. Or, if you for some legacy reason can not change the destination to a topic, you could create one camel route that simply gets the messages and then use a recipient list[1] to route to two routes

Re: Howto add routes to CamelContext on the fly.

2012-07-31 Thread Pontus Ullgren
/apidocs/org/apache/camel/Exchange.html Best regards Pontus Ullgren On Tue, Jul 31, 2012 at 7:22 PM, bbuzzard wrote: > I'm creating a java class that I want to add the the ActiveMQ-Camel libs that > will periodically query a database for routes and add or remove them from > the active

Re: Scheduled FTP download

2012-08-01 Thread Pontus Ullgren
There is a jira created for this issue and it will be fixed in the next release. Until then you need to patch it yourself. Search the forum or jira and you will find the patch. // Pontus Send from my phone On Aug 1, 2012 12:34 AM, "Lance Walton" wrote: > Hi. > > I've given this a try, and with

Re: Is it possible to create a custom DataFormat to translate a message into a BlobMessage?

2012-08-01 Thread Pontus Ullgren
Hello, An alternative would be to implement your own message converter and add it to the activemq uri. See the jms component page. You will then be handed the session and I think this will save you alot of work. Best regards Pontus Den 2 aug 2012 08:37 skrev "Henryk Konsek" : > Hi Brent, > > > I

Re: Is it possible to create a custom DataFormat to translate a message into a BlobMessage?

2012-08-02 Thread Pontus Ullgren
Hello, Sorry for repeating myself but you should really have a look at doing this in a message converter. First you will not have to cast it to a exchange. And second you will then be handed the same session that is used to create the producer in the component. So you will participate in the same

Re: Is it possible to create a custom DataFormat to translate a message into a BlobMessage?

2012-08-03 Thread Pontus Ullgren
I don't think a Converter is the right choice, if you need a JMS connection > for this. How should the Connector know which broker url should be used? > You cannot inject dependencies into your converter... > > Best, > Christian > > On Fri, Aug 3, 2012 at 8:21 AM, Pontus Ull

Re: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread Pontus Ullgren
regards Pontus Ullgren On Tue, Aug 7, 2012 at 8:32 PM, vishal1981 wrote: > Hi, > In the older documentation for FTP component I found this, > "Consuming a remote FTP server triggered by a route > The FTP consumer is built as a scheduled consumer to be used in the from > route.

Re: Need Help converting XML-CSV(flatfile)

2012-08-10 Thread Pontus Ullgren
Hello, For xml to csv I would simply use xslt. // Pontus Send from my phone Den 10 aug 2012 11:58 skrev "Matheen" : > ok..before i had done conversion from CSV to XML...i had used camel bindy > to > do that. > > 1st Converting CSV file to POJO objects. > > 2nd Converting POJO list to XML using xs

Re: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread Pontus Ullgren
d control route > manipulates to start/stop. > A similar solution would be to implement a poll strategy [3][4] that > is controlled by messages on a separate control route. Returning false > from the begin method will stop the FTP endpoint from actually > polling. > > [1

Re: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread Pontus Ullgren
Vishal Changrani >> Subject: Re: Consuming a remote FTP server triggered by a route in Camel 2.9 >> >> Hello V, >> >> It sound like you are looking for the content enricher (possibly the >> pollEnricher) [1]. If I remember correctly, content enricher with file >&g

Re: Can you create camel routes remotely?

2012-08-11 Thread Pontus Ullgren
you some ideas. [1] http://camel.apache.org/routing-slip.html Best regards Pontus Ullgren On Sat, Aug 11, 2012 at 2:56 PM, aejsmont wrote: > Hi there everyone, > > Sorry if its a silly question but i am a total novice to Camel. > > We are investigating activemq at work and Came

Re: Setting root folder as endpoint - Could not poll endpoint NPE

2012-08-22 Thread Pontus Ullgren
I get the same result on linux. The problem seems to be that ObjectHelper.after(..) returns null when endpointNormalized is "/". // Pontus On Wed, Aug 22, 2012 at 4:24 PM, tonyperrin wrote: > Sure. Mac OSX 10.7.4. Java version 1.6 though also 1.5. Camel I've used > both v 2.7.1 and 2.10.0 and

Re: Setting root folder as endpoint - Could not poll endpoint NPE

2012-08-22 Thread Pontus Ullgren
2012 at 7:25 PM, Pontus Ullgren wrote: > I get the same result on linux. > The problem seems to be that ObjectHelper.after(..) returns null when > endpointNormalized is "/". > > > // Pontus > > On Wed, Aug 22, 2012 at 4:24 PM, tonyperrin wrote: >> Sure. Mac

Re: Periodic route activation use case

2012-08-26 Thread Pontus Ullgren
://camel.apache.org/how-can-i-stop-a-route-from-a-route.html Best regards Pontus Ullgren On Sat, Aug 25, 2012 at 7:13 PM, Ashwin Pejavar wrote: > I have a use-case where I need to consume files at a fixed cron schedule. > > For example, I need my input route to resume everyday at 6AM, pr

Re: Periodic route activation use case

2012-08-26 Thread Pontus Ullgren
am". In the later case you can have a simple file route that moves the files as they come into the inbox. But this is just my $0.02 Best regards Pontus Ullgren On Sun, Aug 26, 2012 at 12:51 PM, Karolis Petrauskas wrote: > Hi, > > My question is maybe not related to the topic

Re: marshalling POJO to JSON

2012-09-01 Thread Pontus Ullgren
Hello, You don't use the Jackson api correctly. You should use one of the writeValue methods to extract the json. Best regards Pontus Ullgren Send from my phone Den 1 sep 2012 00:02 skrev "Marco Mistroni" : > HI all > i have a Jetty-Json route in my camel-app > &g

Re: marshalling POJO to JSON

2012-09-01 Thread Pontus Ullgren
stPrice().getLatestPrice()); if(ptfData != null) { exchange.getOut().setBody(node); } -- // Pontus On Sat, Sep 1, 2012 at 1:35 PM, Marco Mistroni wrote: > thanks a lot Pontus! > > w/kindest regards > marco > > On Sat, Sep 1, 2012 at 9:05

Re: ftp: with option localWorkDirectory

2012-09-10 Thread Pontus Ullgren
--- The first worked and the later gave the same error you are having. I have a test case for this "problem" on my other computer I can push it to a gist tomorrow if you are interested. Best regards Pontus Ullgren On Mon, Sep 10, 2012 at 2:44 PM, Hilde wrote: > Hello *! > &

Re: Using correlationid to isolate jms queues in multiple camelContexts

2012-09-12 Thread Pontus Ullgren
But again: Use two queues. [1] http://camel.apache.org/jms.html [2] https://svn.apache.org/repos/asf/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsSelectorTest.java Best regards Pontus Ullgren On Wed, Sep 12, 2012 at 7:18 PM, garrydias wrote: > Dear friends

Re: Windows 2003 server mount

2012-09-13 Thread Pontus Ullgren
service is running as a user that has permission to access the driver. Or you can try the camel-smb component [1] which lets you specify the user to use when accessing the share. [1] https://github.com/Redpill-Linpro/camel-smb Best regards Pontus Ullgren On Thu, Sep 13, 2012 at 12:40 PM

Re: I created a basic file-unzip camel component...

2012-12-08 Thread Pontus Ullgren
I do not agree with you. The current data formater do support compressing files with the zip alorithm but from what I can tell clarkcb has created a processor that do handle multi-file archives. Something the current data formater does not handle. However Gunnar Hillert has a similar processor: ht

Re: Camel Tracer Component - problem with persistence

2012-12-20 Thread Pontus Ullgren
My experience is that I have still had problems getting later versions (2.9.x) working on JBoss 5.1.0.GA and JBoss 6. So I still use the JBoss resolver to get things working. But then again I've not put that much effort into finding the reason I simply added the resolver and it started working. J

Re: camel-smpp in trx mode

2013-01-13 Thread Pontus Ullgren
On Sat, Jan 12, 2013 at 6:47 PM, Christian Müller wrote: > The smslib model is a bit different. The smslib camel consumer pull the > short messages for the SMSC. And only if a consumer is defined ( > from("smslib://...") ). > In the smpp Camel component, the SMPP library push the short messages (a

Re: camel-smpp in trx mode

2013-01-13 Thread Pontus Ullgren
:19 AM, Pontus Ullgren wrote: > On Sat, Jan 12, 2013 at 6:47 PM, Christian Müller > wrote: >> The smslib model is a bit different. The smslib camel consumer pull the >> short messages for the SMSC. And only if a consumer is defined ( >> from("smslib://...") ). &

Re: camel-smpp in trx mode

2013-01-13 Thread Pontus Ullgren
o log the incomming message at WARN level (delivery > receipt, short message, ...) and reject it. Than the SMSC should try to > redeliver the short message at a later time and the user can fix this > misconfiguration. What do you think? > > Best, > Christian > > On Sun, Jan 13, 2013 a

Re: Event Driven Use Case

2013-02-04 Thread Pontus Ullgren
e database (time outs). 3. Continue to process the exchange. Route C: 1. Use a timer to scan the database for requests that has expired. 2. Clean up the expired entries. // Pontus Ullgren On Sat, Feb 2, 2013 at 9:12 AM, Rakesh Sharma wrote: > I am implementing a flow(route) using camel

Re: Copy Files with doneFile in different Folder

2013-02-26 Thread Pontus Ullgren
(Shamless promo for own project) Or if you are running windows you can look at camel-smb (https://github.com/Redpill-Linpro/camel-smb) // Pontus On Tue, Feb 26, 2013 at 1:13 PM, Willem jiang wrote: > If the source and target directory is not on the same box, you need to check > the camel-ftp or

Problem when "redeploying" routes that uses CronScheduledRoutePolicy

2012-06-27 Thread Pontus Ullgren
modified version of CronScheduledRoutePolicy can be found here: https://gist.github.com/3004189 Before I go and report this as a issue in Jira I just wanted to check with the list if this is by design and the problem is in the way I'm using CronScheduledRoutePolicy ? Best regards Pontus Ullgren

Re: Problem when "redeploying" routes that uses CronScheduledRoutePolicy

2012-06-29 Thread Pontus Ullgren
/camel.apache.org/contributing.html > > > On Wed, Jun 27, 2012 at 4:01 PM, Pontus Ullgren wrote: >> Hello, >> >> We have a application  where we dynamically changes route >> configuration by "redeploying" them. >> >> This is done using the followin

Re: File consumer event based (not polling)

2012-07-02 Thread Pontus Ullgren
that listen for JMS messages and on reception start the first route. Combine this with the sendEmptyMessageWhenIdle option on the file endpoint and you can stop the first route when there are no more files, which is when a empty poll occurs. Best regards Pontus Ullgren On Mon, Jul 2, 201

Re: Testing a Route which de-queues message from Topic in CLIENT_ACKNOWLEDGE mode

2012-07-02 Thread Pontus Ullgren
webinar on fusesource.com ( http://fusesource.com/resources/video-archived-webinars/ ) titled "Are your Apache Camel Routes Ready for Production" where there are some slides that cover the topic of having a embedded broker. Best regards Pontus Ullgren On Mon, Jul 2, 2012 at 6:15 PM, gil

Re: Testing a Route which de-queues message from Topic in CLIENT_ACKNOWLEDGE mode

2012-07-05 Thread Pontus Ullgren
Hi, You can get the statistics from the BorkerService object. To be honest I have never tested this with topics but for a queue the calls are like this. -- ActiveMQDestination queryDest = ActiveMQDestination.createDestination("myQueue",

Camel Samba/JCIFS component

2012-07-06 Thread Pontus Ullgren
s possible. Cheers Pontus Ullgren

Re: Filter and Aggregation Completion

2012-07-06 Thread Pontus Ullgren
Just a quick guess. Since you are filtering out messages from the batch the aggregator will not reach a decision that the batch is completed. The completeion from batch will wait for ALL message to arrive. See section "Using Batch Consumer" on this page http://camel.apache.org/aggregator.html You

Re: Filter and Aggregation Completion

2012-07-06 Thread Pontus Ullgren
Just figured out that in newer version of Camel you set the predicate by calling from("file:/camel/inbox?noop=true") .aggregate().setCompletionPredicate(new Predicate() {...}) Seems like the aggregator page need some TLC . // Pontus On Fri, Jul 6, 2012 at 1:04 PM, Pontus Ullg

Re: looping http fetches of paginated data

2012-07-09 Thread Pontus Ullgren
Hello, You can use loop (http://camel.apache.org/loop.html) and storing information from each request in the exchange. However I personally like to keep my camel routes as simple as possible and avoid building logic such as this into the routes. So I would recommend you to create your own process

Re: looping http fetches of paginated data

2012-07-09 Thread Pontus Ullgren
Just realised that you did not have the number of pages that you needed to fetch before hand but wanted to loop based on a condition. Then loop will not help you. I would go with creating your own processor that does all the collection. // Pontus On Mon, Jul 9, 2012 at 1:07 PM, Pontus Ullgren

Re: completionFromBatchConsumer() and empty messages

2012-07-11 Thread Pontus Ullgren
.to("mock:aggregate"); -- [0] http://camel.apache.org/content-based-router.html Best regards Pontus Ullgren On Wed, Jul 11, 2012 at 3:43 AM, Gordienko, Max wrote: > Hi all, > > I am using a file consumer in the batch mode to consume all the fil

Re: Exact behaviour of Camel Context stop method

2012-07-11 Thread Pontus Ullgren
Pontus Ullgren On Wed, Jul 11, 2012 at 9:10 PM, anand_tech wrote: > If this is the case then when all files have been processed then possibly > what can still exist in the inflight exchange, or is it that when it polls > no file it will keep on returning null(since i have enabled > sendempt

Re: camel+quartz schedulers

2012-07-13 Thread Pontus Ullgren
Hi, For the frequency I belive you can use the Throttler pattern. http://camel.apache.org/throttler.html For volume you can write a RoutePolicy to suspend/resume the routes when certain condtitions met. See http://camel.apache.org/routepolicy.html and http://camel.apache.org/route-throttling-exam

Re: camel+quartz schedulers

2012-07-13 Thread Pontus Ullgren
Ok then I misunderstood your question. In your case a PollingConsumerPollStrategy [1] might be more suitable. But I guess it could also be achieved by using a route policy that starts the FTP route once the correct number of files are present. [1] http://camel.apache.org/polling-consumer.html //

Re: camel+quartz schedulers

2012-07-16 Thread Pontus Ullgren
Hello, The file size is available in the message headers (CamelFileLength). See http://camel.apache.org/file2.html // Pontus On Mon, Jul 16, 2012 at 8:25 AM, Sudhakar.kaithepalli wrote: > Hi... > >How to get file size, which is there in ftp server using camel Exchange? > > > - > Sudhaka

Re: Dynamic generation of Camel routes

2012-07-18 Thread Pontus Ullgren
Hello, What you want to do sound a bit like what we did in a project. I'm not sure that this is a good solution or that it should be treated as "best practice" (in fact I'm quite sure that this is not the best solution) but this is how we solved it. Route recipes are stored in a database. These r

Re: Camel Spring Boot adding XML routes

2016-04-23 Thread Pontus Ullgren
Doh ! Thanks for your quick reply. Pontus Ullgren On Fri, 22 Apr 2016 at 09:59 Luca Burgazzoli wrote: > Looks like the xml definition lacks the from element ;) > --- > Luca Burgazzoli > > > On Thu, Apr 21, 2016 at 10:01 PM, Pontus Ullgren > wrote: > > Hello, >

Re: Problem transfer from SMB to FTP OutMemory Java Heap Space

2016-06-02 Thread Pontus Ullgren
Which version of Camel and Camel Extra are you using ? What heap size have you allocated to the Java process ? Have you tried adding the localWorkDirectory URI option to the smb URI to avoid loading the file content into memory ? Best regard Pontus Ullgren On Thu, 2 Jun 2016 at 11:40 Daniel

Re: Problem transfer from SMB to FTP OutMemory Java Heap Space

2016-06-03 Thread Pontus Ullgren
localWorkDirectory is a directory on the server where your camel route run (in Fuse as you say), localWorkDirectory is also supported in camel-jcifs ( http://camel.apache.org/jcifs.html). // Pontus On Fri, 3 Jun 2016 at 08:12 Daniel Pompa wrote: > Hi Pontus, sorry Im new in Fuse. The Camel ve

Re: Problem transfer from SMB to FTP OutMemory Java Heap Space

2016-06-03 Thread Pontus Ullgren
regards Pontus Ullgren On Fri, 3 Jun 2016 at 15:17 Hans Orbaan wrote: > Hi, > > You should mount your share and use the file:// component to avoid out of > memory errors. There is something wrong with camel-jcifs. It will go out of > memory (threads I guess, not memory, but s

Re: XML Configuration with Spring boot

2016-06-03 Thread Pontus Ullgren
Hi, For beans you can place your beans in a separate spring xml in src/main/resources and import it in your FatJarRouter using the @Import(..) annotation. @SpringBootApplication @ImportResource( "beans.xml" ) public class MyFatJarRouter extends FatJarRouter { ... // Pontus On Sat, 4 Jun 2016 a

Re: Trying to use the TarSplitter ...

2016-06-08 Thread Pontus Ullgren
You can try to convert the input stream to the desired format using convertBodyTo before the debug processor. http://camel.apache.org/convertbodyto.html Best regards Pontus On Wed, 8 Jun 2016, 11:46 nicolasduminil, < nicolas.dumi...@simplex-software.fr> wrote: > Hello, > > I need to process a .

Re: Trying to use the TarSplitter ...

2016-06-08 Thread Pontus Ullgren
Yes agree, I also get the same behaviour from a similare route when running Camel 2.17.1. Could you create a issue in Jira for this. // Pontus On Wed, 8 Jun 2016 at 17:23 nicolasduminil < nicolas.dumi...@simplex-software.fr> wrote: > Hello, > > Thanks for your reply. So, what you're saying is

Re: Trying to use the TarSplitter ...

2016-06-09 Thread Pontus Ullgren
No sorry none of the work-arounds I tested seemed to work. To be honest I've never used the TarSplitter myself in any project. My initial answer was simply based on the class hierarchy of TarElementInputStreamWrapper and expericne from the ZipFile component. Any way for reference could you post a

Re: Is there Camel integration with the Spread Toolkit ?

2016-07-22 Thread Pontus Ullgren
beans. Or even build you own spread camel component. Best regards Pontus Ullgren Den fre 22 juli 2016 17:06jkam...@caci.com skrev: > On to my next fun task. I'm being asked to integrate messages being > generated > from a Spread Toolkit <http://www.spread.org/index.html>

IDE for newer Camel versions using Camel Spring Boot

2016-10-23 Thread Pontus Ullgren
Hi, I know about JBoss Tools Camel Tooling and been using it. It works great as long as we stayed with the RedHat supported versions of Camel and JBoss Fuse. But lately we have moved away from this and going with Camel Spring Boot and more up to date versions of Camel. The main reason for this is

Re: smb cannot connect to server

2016-10-28 Thread Pontus Ullgren
the resolveOrder property to first use DNS resolution (see the documentation https://jcifs.samba.org/src/docs/resolver.html). Best regards Pontus Ullgren On Fri, 28 Oct 2016 at 20:05 Peter J Nelson wrote: > Camel: 2.16.3, camel-jcifs: 2.15.0 (latest) > > I am using jCIFS and attempting t

  1   2   >