Thanks for the reply. When looking at the the second link I noticed this: "If you want to include some Java routing rules, then just add your jar to somewhere inside ActiveMQ's lib directory."
Where is this lib directory. In my JBoss deploy directory I have a dir called activemq-ra-1.4.rar as explained here http://activemq.apache.org/integrating-apache-activemq-with-jboss.html http://activemq.apache.org/integrating-apache-activemq-with-jboss.html . This doesn't contain a lib directory or an activemq.xml file. Is it a case of dropping any jars in the activemq-ra-1.4.rar dir or the activemq.xml file to get this to work? Claus Ibsen-2 wrote: > > Hi > Camel is shipped out of the box with ActiveMQ. > > There should be an active mq configuraiton file that is a spring XML file. > In this XML file you just add a camelcontext and then you get Camel > started. > If not mistaking there might be a Camel sample already in this file. > > Something like this: > http://activemq.apache.org/xml-configuration.html > > And a bit info on this FAQ > http://activemq.apache.org/how-should-i-package-applications-using-camel-and-activemq.html > > > > On Tue, Jun 16, 2009 at 5:36 PM, chu_man_fu <[email protected]> wrote: > >> >> Hello forum, >> >> I am a newbie to ActiveMQ and Camel and I have a few questions which I am >> unable to fathom out myself. >> Firstly I will explain what I am trying to achieve. I need to create a >> messaging system over internet protocols. The messages need to be >> filtered >> based on content and sent to the appropiate Queue/Topic. >> I want to use ActiveMQ as my messaging provider and Camel to do the >> filtering/re-routing etc... All this then needs to sit in JBoss. A client >> application will connect to the Queues/Topics and download the messages. >> In >> time this will also need to send messages back to the server. >> I have ActiveMQ installed in JBoss 4.2.2.GA and it works fine. >> How do I get intergrate Camel into it? I understand that this is already >> included in ActiveMQ but I can't see how to control Camel routing. I >> created >> an MBean to sit in JBoss and configure a simple routing based on some >> example code from the fuse project. I have noticed that this uses >> CamelContext.start(). I don't want the MBean to do this, I want JBoss to >> start this up. When this is called I get multiple exception messages, one >> of >> which is: >> >> Failed to start ActiveMQ JMS Message Broker. Reason: >> javax.management.InstanceAlreadyExistsException: >> >> JBoss has already started ActiveMQ! I never wanted Camel to start it >> also. >> >> Is there a way of attaching Camel to the current ActiveMQ broker? >> >> I appologies if this is confusing, like I say I am a newbie and maybe >> barking up the wrong tree. >> >> Best Regards >> Chris Mitchell >> -- >> View this message in context: >> http://www.nabble.com/JBoss-%2B-ActiveMQ-%2B-Camel-%2B-Newbie-tp24056976p24056976.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > > -- > Claus Ibsen > Apache Camel Committer > > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > > -- View this message in context: http://www.nabble.com/JBoss-%2B-ActiveMQ-%2B-Camel-%2B-Newbie-tp24056976p24070733.html Sent from the Camel - Users mailing list archive at Nabble.com.
