-
Nov 4th, 2010, 12:49 PM
#1
Example of a Fanout exchange
Would it be possible to see an example of a Fanout exchange setup where Spring AMQP is tasked on the producer and consumer with setting up the proper exchange/queues/bindings?
-
Nov 26th, 2010, 06:49 AM
#2
<bean name="twm3.queue" class="org.springframework.amqp.core.Queue">
<constructor-arg value="twm3.Deiquoo2.queue.request"/>
<property name="durable" value="true"/>
<property name="autoDelete" value="false"/>
<property name="exclusive" value="false"/>
</bean>
<bean name="vasp022.exchange" class="org.springframework.amqp.core.FanoutExchang e">
<constructor-arg value="vasp.022.Ooyoh7ae.exchange.fanout"/>
<property name="durable" value="true"/>
<property name="autoDelete" value="false"/>
</bean>
<bean class="org.springframework.amqp.core.Binding">
<constructor-arg ref="twm3.queue"/>
<constructor-arg ref="vasp022.exchange"/>
</bean>
By this config all messages which are sent to 'vasp.022.Ooyoh7ae.exchange.fanout' exchange will be routed to 'twm3.Deiquoo2.queue.request' queue
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules