Thanks for the help so far, but I still have a few issues.

When I add the <bean id="jms" ...> as Claus advised, I get a log entry that
says that karaf can't find "org.apache.activemq.camel.component".  To remedy
this, I  attempted to do the following at the karaf client CLI:

karaf@root> osgi:install -s mvn:org.apache.activemq/activemq-camel/5.5.0

The response is a complaint that the URL cannot be resolved.

Am I on the right track?  if not, from where can I get
"org.apache.activemq.camel.component"?

Thanks

On 8 September 2011 23:09, Claus Ibsen <[email protected]> wrote:

> Hi
>
> Yeah you need to Camel which JMS Broker to use.
>
> I assume you are using Apache ActiveMQ which can be embedded easily,
> in one of the machines.
>
> So basically you just have to add a <bean id="jms" ...> as shown here
> http://camel.apache.org/activemq
>
>  <bean id="jms"
>      class="org.apache.activemq.camel.component.ActiveMQComponent">
>      <property name="brokerURL" value="tcp://somehost:61616"/>
>   </bean>
>
> And then you need to set the brokerURL to the IP of the target broker.
>
>
>
> On Fri, Sep 9, 2011 at 3:04 AM, Geoffry Roberts
> <[email protected]> wrote:
> > Thanks for the quick response.
> >
> > Did you mean I should define a connection factory pointing to machine B?
>  I
> > ask this because on machine A camel and activemq are in the same jvm.
> > On 8 September 2011 16:58, Johan Edstrom <[email protected]> wrote:
> >>
> >> 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
> >>
> >
> >
> >
> > --
> > Geoffry Roberts
> >
> >
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [email protected]
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>



-- 
Geoffry Roberts

Reply via email to