Took spring-integration-amqp from the sandbox for a test drive.
I was able to get the amqp:inbound-channel-adapter to work but I'm having issues with the amqp:outbound-channel-adapter.
Here is my configuration (ommiting rabbit config section):
I know the inbound-channel-adapter is working because when I send messages to the queue they are being picked up and the service activator triggered.HTML Code:<int-amqp:outbound-channel-adapter channel="amqpOutChannel" exchange-name="hello.world.queue" routing-key="hello.world.queue" amqp-template="rabbitTemplate"/> <int:channel id="amqpOutChannel"/> <int:gateway id="messageSender" default-request-channel="amqpOutChannel" service-interface="org.spring.integration.amqp.MessageSender"/> <int-amqp:inbound-channel-adapter channel="amqpInChannel" queue-name="hello.world.queue" connection-factory="connectionFactory"/> <int:channel id="amqpInChannel"/> <int:service-activator id="messagePrinter" ref="messagePrinterService" input-channel="amqpInChannel" method="printMessage"/> <bean id="messagePrinterService" class="org.spring.integration.amqp.MessagePrinterService"/>
When I send a message through the message gateway I expect the outbound-channel-adapter to pick it up and send it to the queue but this is NOT happening.
If I replace the outbound-channel-adapter with a <stdout-channel-adapter> I can see the message being printed in the console.
So, the message is making it to the "amqpOutChannel" but for some reason the <amqp:outbound-channel-adapter> seems to not pick it up or some how the message is not making it to the queue because when I pull from the queue I get "null".
Anyone experienced something similar? Am I doing something wrong or missing something in the configuration?
Thanks,
Nick.


Reply With Quote
. I was sending the message out to the "hello.world.queue" exchange when there was no such a exchange configured.
