Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 驼峰连接到带有额外参数的RabbitMQ队列_Java_Rabbitmq_Apache Camel - Fatal编程技术网

Java 驼峰连接到带有额外参数的RabbitMQ队列

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配置将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/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 &amp;
 you should replace & to &amp;