You need to define a connection factory, jms component etc if you are connecting to an external entity.
On Sep 8, 2011, at 18:36, Geoffry Roberts <[email protected]> wrote: > All, > > I'm just getting started with Karaf and am having a small issue. It seems > blueprint has replaced or is replacing spring. I'm trying to use blueprint > but most examples show spring. > > Using Karaf 2.2.2 > > I want to use camel to send a file from one machine to another. A file gets > created on machine A and camel is supposed to moved it to machine B. > > On machine A camel: polls for a new file then writes it's contents to a jms > queue. > On machine B camel: reads the file from a jms queue and writes it to a local > directory. > > Sounds simple! > > Camel reads the file well enough, but does not appear to be writing it to the > jms queue. The activemq web console never shows any activity. > > Here is the xml file I am placing in the karaf deploy directory on machine A. > Do I have this right? > > <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"> > <camelContext xmlns="http://camel.apache.org/schema/blueprint"> > <route> > <from uri="file:/home/karaf?noop=true" /> > <to uri="jms:queue:biofiles" /> > <!-- If I do this, the file does appear in standard out: <to > uri="stream:out" /> --> > </route> > </camelContext> > </blueprint> > > I have karaf setup and working on both machines. I have installed the > following camel and activemq features: > activemq > activemq-blueprint > activemq-web-console > camel > camel-blueprint > camel-jms > Thanks in advance. > -- > Geoffry Roberts >
