-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support properties for vm consumers (#644)
- Loading branch information
Showing
6 changed files
with
102 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
mule-migration-tool-library/src/test/resources/mule/apps/vm/vm-inbound-17-original.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" | ||
xsi:schemaLocation=" | ||
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd | ||
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd"> | ||
|
||
<vm:connector name="vmConnector" numberOfConcurrentTransactedReceivers="${max.vm.thread.count}"> | ||
<vm:queue-profile maxOutstandingMessages="2"/> | ||
</vm:connector> | ||
|
||
<flow name="flow"> | ||
<vm:inbound-endpoint path="in" exchange-pattern="request-response" /> | ||
<logger/> | ||
</flow> | ||
|
||
</mule> |
27 changes: 27 additions & 0 deletions
27
mule-migration-tool-library/src/test/resources/mule/apps/vm/vm-inbound-17.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" | ||
xmlns:compatibility="http://www.mulesoft.org/schema/mule/compatibility" | ||
xsi:schemaLocation=" | ||
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd | ||
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd"> | ||
|
||
<vm:config name="vmConnector"> | ||
<vm:queues> | ||
<vm:queue queueName="in" queueType="TRANSIENT" maxOutstandingMessages="2"/> | ||
</vm:queues> | ||
</vm:config> | ||
|
||
<flow name="flow" maxConcurrency="${max.vm.thread.count}"> | ||
<vm:listener config-ref="vmConnector" queueName="in" numberOfConsumers="${max.vm.thread.count}" > | ||
<vm:response> | ||
<vm:content>#[output application/java --- {'_vmTransportMode': true, 'payload': payload.^raw, 'mimeType': payload.^mimeType, 'session': vars.compatibility_outboundProperties['MULE_SESSION']}]</vm:content> | ||
</vm:response> | ||
</vm:listener> | ||
<compatibility:attributes-to-inbound-properties/> | ||
<logger/> | ||
<compatibility:outbound-properties-to-var consumeStreams="true"/> | ||
</flow> | ||
|
||
</mule> |
22 changes: 22 additions & 0 deletions
22
mule-migration-tool-library/src/test/resources/mule/apps/vm/vm-inbound-18-original.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" | ||
xsi:schemaLocation=" | ||
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd | ||
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd"> | ||
|
||
<vm:connector name="vmConnector"> | ||
<receiver-threading-profile | ||
maxThreadsActive="${max.receiver.threads}" /> | ||
<dispatcher-threading-profile | ||
maxThreadsActive="${max.dispatcher.threads}" /> | ||
<vm:queue-profile maxOutstandingMessages="${max.outstanding.messages}"/> | ||
</vm:connector> | ||
|
||
<flow name="flow"> | ||
<vm:inbound-endpoint path="in" exchange-pattern="request-response" /> | ||
<logger/> | ||
</flow> | ||
|
||
</mule> |
27 changes: 27 additions & 0 deletions
27
mule-migration-tool-library/src/test/resources/mule/apps/vm/vm-inbound-18.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" | ||
xmlns:compatibility="http://www.mulesoft.org/schema/mule/compatibility" | ||
xsi:schemaLocation=" | ||
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd | ||
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd"> | ||
|
||
<vm:config name="vmConnector"> | ||
<vm:queues> | ||
<vm:queue queueName="in" queueType="TRANSIENT" maxOutstandingMessages="${max.outstanding.messages}"/> | ||
</vm:queues> | ||
</vm:config> | ||
|
||
<flow name="flow" maxConcurrency="${max.receiver.threads}"> | ||
<vm:listener config-ref="vmConnector" queueName="in" numberOfConsumers="${max.receiver.threads}" > | ||
<vm:response> | ||
<vm:content>#[output application/java --- {'_vmTransportMode': true, 'payload': payload.^raw, 'mimeType': payload.^mimeType, 'session': vars.compatibility_outboundProperties['MULE_SESSION']}]</vm:content> | ||
</vm:response> | ||
</vm:listener> | ||
<compatibility:attributes-to-inbound-properties/> | ||
<logger/> | ||
<compatibility:outbound-properties-to-var consumeStreams="true"/> | ||
</flow> | ||
|
||
</mule> |