Results 1 to 2 of 2

Thread: Example of a Fanout exchange

Hybrid View

  1. #1

    Default 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?

  2. #2
    Join Date
    Nov 2009
    Location
    France, Lyon
    Posts
    4

    Default

    <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
  •