Hi Yeah when doing JMS then Camel is using Spring JMS underneath. So SPRING_HOME is there to add some .jars from spring that is needed. That's just it.
On Mon, Jan 12, 2009 at 5:32 PM, Glenn Macgregor <gmacgre...@pocketkings.ie> wrote: > Claus, > > Great, thanks! > > I am looking at the example, trying to run it using ant (I have not installed > maven). I have ActiveMQ installed and running, > but the ant task fails due to SPRING_HOME not being set. I thought Camel (or > maybe ActiveMQ) was a sprint implementation, > do I also need some kind of spring framework as well? > > Thanks > > Glenn > > -----Original Message----- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: 12 January 2009 16:07 > To: camel-user@activemq.apache.org > Subject: Re: Newbie -- File endpoint > > Hi > > Welcome on the Camel ride. > > Yes that is possible. If you have downloaded the Camel distribution > there are some examples in the examples folder. > > There is such an example as your use case however the route is in Java > code. But it could be done in Spring XML and thus no java code at all. > > The example is: > camel-example-spring > > The spring XML file is in src/main/resources/META-INF/spring > > It setup an AcitveMQ and a CamelContext, that is all you need to get > Camel running. > > CamelContext points to a package where Camel should find classes that > are RouteBuilder so it can add the routing. > Check the single java file with the Java code for routing. You can > then later change that to pure Spring XML > > There is a README.TXT that explains how to compile, run etc. > > And then get back on the user forum, we are here to help and listen to users. > > > On Mon, Jan 12, 2009 at 4:48 PM, Glenn Macgregor > <gmacgre...@pocketkings.ie> wrote: >> Hi All, >> >> I am just getting into Camel and ActiveMQ, trying to understand what they do >> and how each component works. As a simple test >> I would like to use ActiveMQ/Camel to watch a directory on machine A and >> send the contents of any file that is dropped into that directory >> to machine B where it prints out the message, which is the contents of the >> file. >> >> Can I do this with no code, just using spring XML configuration? >> >> Camel and ActiveMQ look very cool, I am excited to gain more understanding >> and get more involved. >> >> Thanks >> >> Glenn >> > > > > -- > > /Claus Ibsen > Apache Camel Committer > Blog: http://davsclaus.blogspot.com/ > -- /Claus Ibsen Apache Camel Committer Blog: http://davsclaus.blogspot.com/