Am able to set-up a cluster as per mule documentation using mule-ha-bundle-2.0 but with two nodes in two different machines connected in the same network and can deploy a flow having vm and logger as below.
<flow name="vmc-flow" doc:name="vmc-jc-flow">
<vm:inbound-endpoint exchange-pattern="one-way"
path="vmq1" doc:name="vmq1-listner" />
<logger
message="Request hit to server: #[server.host] at time: #[server.dateTime] from the flow: #[flow.name] with payload: #[payload] and message id : #[message.id.toString()]"
level="INFO" doc:name="log-info" />
</flow>
now my question is: how to push messages to that particular vm-queue?
I have a used another (below) mule application which is again deployed on the same cluster but those are not consumed by the listener 'vmq1'
<spring:beans>
<context:property-placeholder location="test-cluster-app.properties" />
</spring:beans>
<flow name="test-vmc-invoke" doc:name="test-vmc-invoke">
<http:inbound-endpoint exchange-pattern="request-response"
host="${http.host}" port="${http.port}" doc:name="HTTP" path="${http.path}" />
<expression-filter expression="#[payload !='favicon.ico']"
doc:name="filter-favicon" />
<set-payload value="#[string:from http]" doc:name="set-payload" />
<logger
message="sending message to vmq1 at time #[server.dateTime], flow #[flow.name]"
level="INFO" doc:name="log-info" />
<vm:outbound-endpoint exchange-pattern="one-way"
path="vmq1" doc:name="vmq1-dispatcher">
</vm:outbound-endpoint>
</flow>
Note: Am able to hit the http and push messages to 'vmq1'
Please help me in understanding where am i going wrong.