Java 驼峰连接到带有额外参数的RabbitMQ队列
我想通过xml配置将Camel路由与RabbitMQ集成 我需要听来自MYPRETTYQ的信息,这在拉比已经存在Java 驼峰连接到带有额外参数的RabbitMQ队列,java,rabbitmq,apache-camel,Java,Rabbitmq,Apache Camel,我想通过xml配置将Camel路由与RabbitMQ集成 我需要听来自MYPRETTYQ的信息,这在拉比已经存在 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:xsi="http://www.w3.org/2001/
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
<camelContext id="camelId" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="rabbitmq://localhost:5672/direct?queue=MYPRETTYQ&autoDelete=false&skipQueueDeclare=true"/>
<log message="File: ${body}"/>
</route>
</camelContext>
我试着把“&”改成“;”然而,它会导致无效的行为。而不是被解析为params行
queue=MYPRETTYQ;autoDelete=false;skipQueueDeclare=true
创建具有此名称的新队列
我不知所措,因为所有URI示例都表明使用“&”是传递参数的正确方法。感谢您的帮助太好了!工作得很有魅力
you should replace & to &
you should replace & to &