node-red-bluemix-nodes icon indicating copy to clipboard operation
node-red-bluemix-nodes copied to clipboard

MQLight node can't detect IBM MessageHub service

Open chanjc opened this issue 9 years ago • 2 comments

Hi,

I want to consume and publish message from/to IBM Message Hub service but unfortunately the current MQLight node (from the node-red-bluemix-nodes) only able to detect "MQ Light service". I'm using the MQLight node that come with the default Bluemix.

Thanks.

chanjc avatar Sep 01 '16 06:09 chanjc

Hi, indeed - as designed it is MQLight only :-) but yes Messagehub does have a compatibility mode so we ought to try and detect that also.

(Meanwhile there are some specific messagehub nodes from contributors available via npm.

dceejay avatar Sep 01 '16 18:09 dceejay

OK - so yes it's fairly painless to add the autodetection and let it use Messagehub as well/instead. BUT... there is a slight gotcha. At present Message hub requires that a pre-defined topic MQLight is already defined on the service... If not the underlying npm module barfs badly (throws an async exception that we cannot catch), such that Node-RED will then refuse to re-start...

So I have raised this with that team - and once they resolve that then I will update this.

dceejay avatar Sep 05 '16 09:09 dceejay