Ниже приводится файл пружинно-config.xmlКак слушать на activemq с помощью верблюда и весны?
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:camel="http://camel.apache.org/schema/spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<camel:camelContext id="camelContextApp" autoStartup="true">
<camel:route id="firstRoute" autoStartup="true">
<camel:from uri="activemq:queue:alwin-queue.queue" />
<camel:process ref="testProcessor" />
</camel:route>
</camel:camelContext>
<bean id="testProcessor" class="com.alwindoss.learncamel.TestProcessor">
</bean>
.
.
.
</beans>
Поскольку я поставил autoStartup = «истинный» Я ожидаю, что контекст должен быть запущен. Но как мне запустить приложение. Даже если у меня есть главное Что я буду делать в основном. Все, что я хочу, чтобы мое приложение выполнялось, находится в этом файле конфигурации spring-config.
Примечание: в методе процесса TestProcessor :: Я просто распечатать заявление