You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by yuneki <yu...@nate.com> on 2012/12/12 07:07:29 UTC

can i configure ActiveMQ in Camel with JAVA

hi

i'm newbie. 

We making very lightweight File&DB integrate server with camel only used
JAVA DSL


i think.. it embed ActiveMQ in ours Solution(camel based, next time it calls
FDI)

but i cant ActiveMQ configuration repo DB, path, etc...


i made CustomComponent CLASS extends ActiveMQComponent
its only configure poolling , Connection set
and added to camelContext with "activemq" named instead of ActiveMQComponent

i'm in stuck why i cant do configuration DB, path, etc.. ?
i tried googling googling.. goo goo goo
but that says only spring based XML configure . TT

plz help me~



--
View this message in context: http://camel.465427.n5.nabble.com/can-i-configure-ActiveMQ-in-Camel-with-JAVA-tp5723934.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: can i configure ActiveMQ in Camel with JAVA

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Dec 12, 2012 at 7:07 AM, yuneki <yu...@nate.com> wrote:
>
> hi
>
> i'm newbie.
>
> We making very lightweight File&DB integrate server with camel only used
> JAVA DSL
>
>
> i think.. it embed ActiveMQ in ours Solution(camel based, next time it calls
> FDI)
>
> but i cant ActiveMQ configuration repo DB, path, etc...
>
>
> i made CustomComponent CLASS extends ActiveMQComponent
> its only configure poolling , Connection set
> and added to camelContext with "activemq" named instead of ActiveMQComponent
>
> i'm in stuck why i cant do configuration DB, path, etc.. ?
> i tried googling googling.. goo goo goo
> but that says only spring based XML configure . TT
>
> plz help me~
>

You can configure the ActiveMQ or JMS component using the getter/setter.

And there is also a JmsConfiguration class that has all the options you can set.
And then you can set this configuration on the ActiveMQ or JMS component.

So what you can do in XML you can do in Java. Just take a 2nd look.

Also many of the unit tests of camel-jms etc is using java code.
https://svn.apache.org/repos/asf/camel/trunk/components/camel-jms/src/test/java/

>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/can-i-configure-ActiveMQ-in-Camel-with-JAVA-tp5723934.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen