How many threads are used in mule when moving across request-response inbound-endpoints? -
i trying undersand threading model used in mule. mule docs quote:
if using synchronous processing, same thread used carry message way through mule
so if recieve message on http request-response inbound endoint , send inbound-endpoint, vm inbound enpoint using request-response. 1 thread being used or 2 threads being used? 1 http connector pool , 1 vm pool?
example:
<flow> <http:inbound-endpoint exchange-pattern="request-response" address="xxx" /> <vm:outbound-endpoint exchange-pattern="request-response"address="vm://zzz" /> </flow> <flow> <vm:inbound-endpoint exchange-pattern="request-response"address="vm://zzz" /> ... </flow>
if inbound endpoints use request-response same thread used across flows. can check out in console output. in case you'll have output like
-- flow1 [[threadtest].connector.http.mule.default.receiver.02] org.mule.api.processor.loggermessageprocessor: / [[threadtest].connector.http.mule.default.receiver.02] org.mule.lifecycle.abstractlifecyclemanager: initialising: 'connector.vm.mule.default.dispatcher.1269236931'. object is: vmmessagedispatcher [[threadtest].connector.http.mule.default.receiver.02] org.mule.lifecycle.abstractlifecyclemanager: starting: 'connector.vm.mule.default.dispatcher.1269236931'. object is: vmmessagedispatcher -- flow2 [[threadtest].connector.http.mule.default.receiver.02] org.mule.api.processor.loggermessageprocessor: /
where [[threadtest].connector.http.mule.default.receiver.02]
name of thread used process message
Comments
Post a Comment