[rabbitmq-discuss] RabbitMQ and Spring

Dave Syer david_syer at hotmail.com
Thu Aug 4 13:18:05 BST 2011


> Is there a possibility to set the ReplyTimeout for the
>  template.receive function? The template.setReplyTimeout is only for
>  the template.sendAndReceive function.

There is a JIRA ticket for that
(https://jira.springsource.org/browse/AMQP-71, resolved as Won't Fix).
We can't implement it without unintended consequences because there is
no concept of a blocking receive with timeout in the AMQP protocol

> But I need different Queues for sending an receiving.

sendAndReceive uses different queues for sending and receiving.

> By the way template.sendAndReceive isn't working anyway for me.

Can you be more specific?

> In addition my Queue is auto-delete and not durable, but it isn't
> deleted after the last message is read.

Auto-delete queues are only removed when the Channel is closed (which
might be never if you use a CachingConnectionFactory.  You need an
exclusive queue to have it delete when not in use, and then you need
to use basicConsume, not basicGet to receive the message.  The whole
point of sendAdnReceive is to remove the burden of managing that.

> I get no compilation error, but these errors are very annoying.

There should be no XSD problems at runtime because Spring finds the
schema on the classpath.  From what you say this is the case.  So your
problem is in your XML editor, and all you need to do is find a way to
configure your editor to find the schema somewhere. how you do that
must depend on the editor.  If you use SpringSource ToolSuite it
should work (but you might need to use an explicit version number in
your schema declaration - i.e. */spring-rabbit-1.0.xsd).


More information about the rabbitmq-discuss mailing list