<!-- Camel JMSProducer to be able to send messages to a remote Active MQ server --> <bean id="jms" class="org.apache.activemq.camel.component.ActiveMQComponent"> <property name="brokerURL" value="tcp://localhost:61616" />
</bean> <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="tcp://localhost:61616" /> </bean> <bean id="transactionManager" class="org.springframework.jms.connection.JmsTransactionManager"> <property name="connectionFactory" ref="connectionFactory" /> </bean> http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Thu, Oct 15, 2009 at 9:21 AM, Ryan Stewart <rds6...@gmail.com> wrote: > > > Mick Knutson-3 wrote: > > > > If you use Spring, you can have Spring start an embedded broker for you > > in > > a unit test like: > > > > > http://www.baselogic.com/blog/java/testing-activemq-virtualtopics-using-camel-and-junit > > > > I'm not quite sure what you're getting at. I don't see anywhere in that > post > that you start up a broker. This is a fine reference for starting and > embedded broker: > http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html > > I've done something like that using a BrokerService in unit tests, but what > I'm looking for here is a way to start a standalone ActiveMQ broker that's > running a little bit of custom code. The plugin seems ideal for this, and > it > was extremely easy to configure, but when I add the extra beans, supported > by the custom code, to the activmemq.xml, this problem arises. > -- > View this message in context: > http://www.nabble.com/Maven-%2B-ActiveMQ-%2B-my-own-code-tp25907487p25908531.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >