Re: Add new route runtime

2013-10-17 Thread lassesvestergaard
Great. Thanks for your comments. I am actually creating the application as a webapplication (jsf), and I'm using Tomcat for that. This means that I know about auto deploying war file. As I see it, the problem is that I can't just deploy a new war when ever I want to insert a new route (written in P

Add new route runtime

2013-10-16 Thread lassesvestergaard
Hi all. I simply can't get my head around this issue. Let's say I have a running native java application that has a running camelcontext. I deploy this application on a production server somewhere. In the meantime I want to develop and test new routes in my own local development environment. When

Conceptual understanding of altering routes runtime

2013-09-04 Thread lassesvestergaard
Hi all. This is a spinoff of a previous post: http://camel.465427.n5.nabble.com/Change-timer-runtime-td5738484.html I decided to start a new thread, because I think this question is of a more general character. First of all, I ran into a problem regarding how to update a camel route runtime. My

Re: Change timer runtime

2013-09-03 Thread lassesvestergaard
Hi guys. Thanks for your replies. I will look further into the route policy area. In relation to this issue I have an other problem. I use the jdbc component to retrieve data from the Microsoft database. When I set the body, I do that by writing something like: setBody(constant("sql_sentence")).

Re: Change timer runtime

2013-09-03 Thread lassesvestergaard
Hi Claus. Thanks for helping me out. I still don't get it, to be honest. This is my code: public class AffaldVarme extends RouteBuilder { int latestID=1; String resourceID="some_id"; @Override public void configure() throws Exception { from("timer://foo?period=1m")

Change timer runtime

2013-09-02 Thread lassesvestergaard
Hi all. I have a problem regarding changing the timer period on the fly. My concrete problem is that I have around 1.200.000 historic records I need to extract at one time, and the database table is updated every 24 hours. Furthermore I'm extracting from a Microsoft SQL database. My preliminary t

Re: Exception when trying to create a route including jdbc:sqlserver

2013-08-22 Thread lassesvestergaard
Great! That worked, thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Exception-when-trying-to-create-a-route-including-jdbc-sqlserver-tp5737657p5737749.html Sent from the Camel - Users mailing list archive at Nabble.com.

Exception when trying to create a route including jdbc:sqlserver

2013-08-21 Thread lassesvestergaard
Hi all. I'm having a problem when trying to create a route where I get data from a microsoft sql server. My problem seems to be that the route want an other bean than I provide ( Found bean com.microsoft.sqlserver.jdbc.SQLServerConnection expected type was: interface javax.sql.DataSource). The sta

Re: jsf and apache camel

2013-07-26 Thread lassesvestergaard
Ok. I have some clarifying questions then :-) jstrachan wrote > I think you're confusing anonymous processors with DI beans. A data > format is mostly just a bean which needs to be registered in some > registry (JNDI, spring, guice, whatever). Those are outside of the > camel DSL and camel looks

Re: jsf and apache camel

2013-07-22 Thread lassesvestergaard
Thank you very much James. I ended up using JSF. I found out how to integrate Camel into a JSF application. I'm not sure it's the best way, but it seems to work (please enlighten me if you know a better solution). What I did is making a new managed bean (in JSF 2.0), that is application scoped, a

jsf and apache camel

2013-07-17 Thread lassesvestergaard
Hi all. I'm learning camel and jsf at the same time. What I want to do is to create a jsf web application where it is possible to create, edit and delete routes. This means that I need to have camel running in the background for ever. I want to put camel inside a war, and when the application is d

Re: Cannot change directory to: ". Code: 550 on FTP component

2013-06-26 Thread lassesvestergaard
I also log in a root level ("/") -- View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-Code-550-on-FTP-component-tp5734612p5734794.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Cannot change directory to: ". Code: 550 on FTP component

2013-06-25 Thread lassesvestergaard
The code I posted is just the latest for my current project. I have tried specifying a specific subdir without recursive=true, and that works. It seems that I can't get the actual folders (if I traverse a single folder I can't list subfolders, only files). When I use recursive=true it traverses dow

Re: Cannot change directory to: ". Code: 550 on FTP component

2013-06-25 Thread lassesvestergaard
Hi Bengt. Yes, I'm able to specify a subfolder in my URI. As far as I can see, it works fine as a producer if I specify a subfolder. What I have ended up doing is: from("ftp://host.com?password=tiktak&binary=true&consumer.delay=1&recursive=true";) .to("file://inbox");

Re: Cannot change directory to: ". Code: 550 on FTP component

2013-06-24 Thread lassesvestergaard
Hi all. I managed to get it working by upgrading to commons-net 3.3 (thanks). I didn't know how to do this in Maven, but it seems that you just make a specific dependency for commons-net in your POM, and then the implicit commons-net dependency disappears. I don't know if this also go for making a

Cannot change directory to: ". Code: 550 on FTP component

2013-06-23 Thread lassesvestergaard
Hi all. My first post here. I have been trying to learn Apache camel for a while now, and I think I get the basics. Currently I'm working with the FTP component, but there seems to be a problem. Here is my route: from("ftp://usern...@host.com?password=hidden&binary=true";).process( new Proc