Skip to content

Commit

Permalink
Fix IBM MQ kamelets to use general MQConnectionFactory
Browse files Browse the repository at this point in the history
* Currently it uses MQQueueConnectionFactory, which is specific for Queues. It should use MQConnectionFactory, which can be used for queues and topics.
* Add a default property `serverPort: 1414`
* Fix the [yaml dsl routes used in camel 3.15](https://camel.apache.org/manual/camel-3x-upgrade-guide-3_15.html#_camel_yaml_dsl)

Fix #921
  • Loading branch information
claudio4j authored and oscerd committed May 11, 2022
1 parent 4de6361 commit 555bbab
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions kamelets/jms-ibm-mq-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
title: "IBM MQ Server Port"
description: "IBM MQ Server port"
type: integer
example: 1414
default: 1414
destinationType:
title: "Destination Type"
description: "The JMS destination type (queue or topic)"
Expand Down Expand Up @@ -95,7 +95,7 @@ spec:
template:
beans:
- name: wmqConnectionFactory
type: "#class:com.ibm.mq.jms.MQQueueConnectionFactory"
type: "#class:com.ibm.mq.jms.MQConnectionFactory"
property:
- key: XMSC_WMQ_HOST_NAME
value: '{{serverName}}'
Expand Down
4 changes: 2 additions & 2 deletions kamelets/jms-ibm-mq-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
title: "IBM MQ Server Port"
description: "IBM MQ Server port"
type: integer
example: 1414
default: 1414
destinationType:
title: "Destination Type"
description: "The JMS destination type (queue or topic)"
Expand Down Expand Up @@ -95,7 +95,7 @@ spec:
template:
beans:
- name: wmqConnectionFactory
type: "#class:com.ibm.mq.jms.MQQueueConnectionFactory"
type: "#class:com.ibm.mq.jms.MQConnectionFactory"
property:
- key: XMSC_WMQ_HOST_NAME
value: '{{serverName}}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
title: "IBM MQ Server Port"
description: "IBM MQ Server port"
type: integer
example: 1414
default: 1414
destinationType:
title: "Destination Type"
description: "The JMS destination type (queue or topic)"
Expand Down Expand Up @@ -95,7 +95,7 @@ spec:
template:
beans:
- name: wmqConnectionFactory
type: "#class:com.ibm.mq.jms.MQQueueConnectionFactory"
type: "#class:com.ibm.mq.jms.MQConnectionFactory"
property:
- key: XMSC_WMQ_HOST_NAME
value: '{{serverName}}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
title: "IBM MQ Server Port"
description: "IBM MQ Server port"
type: integer
example: 1414
default: 1414
destinationType:
title: "Destination Type"
description: "The JMS destination type (queue or topic)"
Expand Down Expand Up @@ -95,7 +95,7 @@ spec:
template:
beans:
- name: wmqConnectionFactory
type: "#class:com.ibm.mq.jms.MQQueueConnectionFactory"
type: "#class:com.ibm.mq.jms.MQConnectionFactory"
property:
- key: XMSC_WMQ_HOST_NAME
value: '{{serverName}}'
Expand Down
24 changes: 12 additions & 12 deletions templates/bindings/core/jms-ibm-mq-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
parameters:
period: 1000
message: "Hello Camel to IBM MQ"
steps:
- to:
uri: "kamelet:jms-ibm-mq-sink"
parameters:
serverName: "10.103.41.245"
serverPort: "1414"
destinationType: "queue"
destinationName: "DEV.QUEUE.1"
queueManager: QM1
channel: DEV.APP.SVRCONN
username: app
password: passw0rd
steps:
- to:
uri: "kamelet:jms-ibm-mq-sink"
parameters:
serverName: "10.105.157.79"
serverPort: "1414"
destinationType: "queue"
destinationName: "DEV.QUEUE.1"
queueManager: QM1
channel: DEV.APP.SVRCONN
username: app
password: passw0rd
8 changes: 4 additions & 4 deletions templates/bindings/core/jms-ibm-mq-source-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
from:
uri: "kamelet:jms-ibm-mq-source"
parameters:
serverName: "10.103.41.245"
serverName: "10.105.157.79"
serverPort: "1414"
destinationType: "queue"
destinationName: "DEV.QUEUE.1"
queueManager: QM1
channel: DEV.APP.SVRCONN
username: app
password: passw0rd
steps:
- to:
uri: kamelet:log-sink
steps:
- to:
uri: kamelet:log-sink

0 comments on commit 555bbab

Please sign in to comment.