ibmresearchuk / node-red-bluemix-nodes

A collection of node-red nodes for the IBM Bluemix platform
Apache License 2.0
33 stars 36 forks source link

MQLight node can't detect IBM MessageHub service #59

Open chanjc opened 8 years ago

chanjc commented 8 years ago

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.

dceejay commented 8 years ago

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 commented 8 years ago

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.