INT-1726 added auto-startup attribute to JDBC outbound adapter/gateway

This commit is contained in:
Oleg Zhurakousky
2011-01-10 19:38:54 -05:00
parent fee03d435c
commit 8630a10d23
2 changed files with 19 additions and 4 deletions

View File

@@ -199,9 +199,6 @@
<xsd:documentation>
Flag to say that the poller should start automatically on startup (default true).
</xsd:documentation>
<tool:annotation kind="ref">
<tool:expected-type type="org.springframework.integration.core.MessageChannel" />
</tool:annotation>
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
@@ -295,6 +292,15 @@
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="auto-startup" type="xsd:string" default="true">
<xsd:annotation>
<xsd:appinfo>
<xsd:documentation>
Flag to say that the poller should start automatically on startup (default true).
</xsd:documentation>
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
@@ -408,6 +414,15 @@
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="auto-startup" type="xsd:string" default="true">
<xsd:annotation>
<xsd:appinfo>
<xsd:documentation>
Flag to say that the poller should start automatically on startup (default true).
</xsd:documentation>
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

View File

@@ -19,7 +19,7 @@
</int:channel>
<int-jdbc:outbound-gateway query="select * from bazz where id=:headers[id]" update="insert into bazz (id, status, name) values (:headers[id], 0, :payload[foo])"
request-channel="target" reply-channel="output" data-source="dataSource">
request-channel="target" reply-channel="output" data-source="dataSource" auto-startup="true">
<int:poller fixed-rate="1000"/>
</int-jdbc:outbound-gateway>