Permalink
Browse files

Adding a usefull dispatcher to core config.

  • Loading branch information...
1 parent 65a0cb2 commit e48d9cc57f10807ac459fc8e67058ab717fea9b5 Anand Kesari committed Jan 27, 2011
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/main/resources/s4_core_conf_typical.xml
View
20 src/main/resources/s4_core_conf_typical.xml
@@ -123,4 +123,24 @@
<property name="peContainer" ref="peContainer"/>
<property name="minimumMemory" value="52428800"/>
</bean>
+
+
+
+
+ <!-- Some useful beans related to client-adapter for apps -->
+
+ <!-- Dispatcher to send to all adapter nodes. -->
+ <bean id="dispatcherToClientAdapters" class="io.s4.dispatcher.Dispatcher" init-method="init">
+ <property name="partitioners">
+ <list>
+ <ref bean="broadcastPartitioner"/>
+ </list>
+ </property>
+ <property name="eventEmitter" ref="commLayerEmitterToAdapter"/>
+ <property name="loggerName" value="s4"/>
+ </bean>
+
+ <!-- Partitioner to achieve broadcast -->
+ <bean id="broadcastPartitioner" class="io.s4.dispatcher.partitioner.BroadcastPartitioner"/>
+
</beans>

0 comments on commit e48d9cc

Please sign in to comment.