| Commit in servicemix/base/src/main/release/examples/rss-binding on MAIN | |||
| servicemix.xml | +42 | -34 | 1.2 -> 1.3 |
added snippet macros
servicemix/base/src/main/release/examples/rss-binding
diff -u -r1.2 -r1.3 --- servicemix.xml 13 Aug 2005 10:33:55 -0000 1.2 +++ servicemix.xml 18 Aug 2005 08:59:47 -0000 1.3 @@ -4,51 +4,59 @@
<!-- the JBI container --> <container id="jbi">
-
+
<components>
+ <!-- START SNIPPET: rss -->
<!-- lets poll for updates to news sites -->
- <component id="rss" service="my:rss" class="org.servicemix.components.rss.RssPollingComponent" destinationService="my:trace"> - <property name="outputType" value = "rss_2.0" /> - <property name="monitorInterval" value = "10"/> - <property name="lastPolledDate"><value>2005/aug/10</value></property> - - - <property name="urlStrings"> - <list> - <value>http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml</value> - <value>http://rss.cnn.com/rss/cnn_topstories.rss</value> - </list>
+ <component id="rss" service="my:rss" class="org.servicemix.components.rss.RssPollingComponent" + destinationService="my:trace"> + <property name="outputType" value="rss_2.0"/> + <property name="monitorInterval" value="10"/> + <property name="lastPolledDate"> + <value>2005/aug/10</value> + </property> + + + <property name="urlStrings"> + <list> + <value>http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml</value> + <value>http://rss.cnn.com/rss/cnn_topstories.rss</value> + </list>
</property>
</component>
+ <!-- END SNIPPET: rss -->
- <!-- Route the event to a trace component that just outputs the event to the console -->
+ <!-- Route the event to a trace component that just outputs the event to the console -->
<component id="trace" service="my:trace" class="org.servicemix.components.util.StreamWriterComponent"/>
</components>
</container>
+ <!-- Custom editor for the Date variable lastPolledDate so we can see immediate output --> + <bean id="customEditorConfigurer" + class="org.springframework.beans.factory.config.CustomEditorConfigurer"> + <property name="customEditors"> + <map> + + <entry key="java.util.Date"> + <bean class="org.springframework.beans.propertyeditors.CustomDateEditor"> + <constructor-arg index="0"> + <bean class="java.text.SimpleDateFormat"> + <constructor-arg> + <value>yyyy/MMM/dd</value> + </constructor-arg> + </bean> + </constructor-arg> + <constructor-arg index="1"> + <value>true</value> + </constructor-arg> + </bean> + </entry> + + </map> + </property> + </bean>
- <!-- Custom editor for the Date variable lastPolledDate so we can see immediate output --> - <bean id="customEditorConfigurer" - class="org.springframework.beans.factory.config.CustomEditorConfigurer"> - <property name="customEditors"> - <map> - - <entry key="java.util.Date"> - <bean class="org.springframework.beans.propertyeditors.CustomDateEditor"> - <constructor-arg index="0"> - <bean class="java.text.SimpleDateFormat"> - <constructor-arg><value>yyyy/MMM/dd</value></constructor-arg> - </bean> - </constructor-arg> - <constructor-arg index="1"><value>true</value></constructor-arg> - </bean> - </entry> - - </map> - </property> - </bean> -
</beans>
