node-red-contrib-ls-jms
Version:
Node-RED nodes to send and receive jms messages leveraging lightstreamer jms extender (https://lightstreamer.com/ls-jms-features)
61 lines (57 loc) • 2.29 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('ls-jms-in', {
category: 'input',
color: '#B6CF87',
defaults: {
lightstreamerJmsConfig: {value:"", type:"ls-jms-config"},
name: {value: ''},
destinationType: {value: ''},
destination: {value: ''}
},
inputs: 0,
outputs: 1,
icon: 'ls_jms.png',
label: function() {
return this.name && this.name.length ? this.name : 'ls-jms-in';
}
});
</script>
<script type="text/x-red" data-template-name="ls-jms-in">
<div class="form-row">
<label for="node-input-lightstreamerJmsConfig"><i class="icon-bookmark"></i> Lightstreamer JMS Config</label>
<input type="text" id="node-input-lightstreamerJmsConfig" placeholder="">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-destinationType"><i class="icon-file"></i> Destination Type</label>
<select id="node-input-destinationType">
<option value="Topic">Topic</option>
<option value="Queue">Queue</option>
</select>
</div>
<div class="form-row">
<label for="node-input-destination"><i class="icon-bullseye"></i> Destination</label>
<input type="text" id="node-input-destination" placeholder="Destination">
</div>
</script>
<script type="text/x-red" data-help-name="ls-jms-in">
<p>A simple node that receives JMS messages leveraging lightstreamer jms extender</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">string | buffer</span>
</dt>
<dd> jms message received. </dd>
</dl>
<h3>Details</h3>
<p><code>msg.payload</code> is used as the payload of the received JMS message.
The received JMS message will be handled as a TextMessage Object.</p>
<h3>References</h3>
<ul>
<li><a>Lightstream JMS Extender</a> - full description of <code>JMS Api</code> provided to the node js</li>
<li><a>GitHub</a> - the nodes github repository</li>
</ul>
</script>