Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Complete
-
None
Description
Hi,
Our use case is, a request is received on http, which contains request parameters that we want to use to create and
execute a query on mongoDB and process the response.
We tries achieving this using "mongodb:inbound-channel-adapter", and found we restrictions.
1) Is there a way to use "mongodb:inbound-channel-adapter", without any POLLER.
2) And also is there a way to invoke "mongodb:inbound-channel-adapter" from a "http:inbound-gateway" element?
Please suggest.
<int-http:inbound-gateway id="PRICE-IG-Gateway" path="/price/stores/v1/10001" request-channel="PRICE-IG-request-channel" reply-channel="PRICE-IG-response-channel" supported-methods="GET" reply-timeout="1000" payload-expression="#queryParam"> </int-http:inbound-gateway> <int-mongodb:inbound-channel-adapter id="priceInboundAdapter" channel="PRICE-IG-response-channel" query="<expression>" entity-class="domain.PriceOutputVO" collection-name="price" mongodb-factory="mongoDbFactory" mongo-converter="mongoConverter" query-expression=""> <int:poller fixed-rate="0" max-messages-per-poll="1" /> </int-mongodb:inbound-channel-adapter>
P.S: Using Spring version: 3.2.6.RELEASE
Thanks,
Shwetha