If I were in Java, I'd try creating a local JMS broker and running all this 
code on the same machine to get started:

>     <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
>         <property name="connectionFactory">
>             <bean class="org.apache.activemq.ActiveMQConnectionFactory">
>                 <property name="brokerURL" value="tcp://0.0.0.0:61616"/>
>             </bean>
>         </property>
>     </bean>

When you want to put things on the queue, use the JMS component.  It will have 
been configured as above:

>         from("cxf:bean:exampleCxfEndpoint")
>         .to("jms:queue:queuename");

Do you have a copy of Camel In Action?  It will save you more time than the 
cost of the book.  

Brian

On Dec 23, 2011, at 6:45 AM, ricardofaccioli wrote:

> Brian I`m already done this.. And like you said.. I view the garbage stuff.
> 
> If I`m only create a component of activemq in camel, my  grails web app
> don`t start. 
> I need create a broker service in a adm too ?
> 
> like:
> 
> **I`m adm app
> 
> 
> Broker brk = new Broker();
> brk.addConnect("tcp://localhost:61610")
> brk.start();
> 
> 
> Or I`m only need create a component to connect a external broker ?
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Connecting-a-External-ActiveMQ-tp5095680p5096996.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to