home / infca / mq-light (navigation links) I found an island in your arms, Country in your eyes
Arms that chain, Eyes that lied

Instalacio | Codi | AMQP products : Rabbit | Dubtes Links | End

MQ light

Homepage, Docs, Tutorial, feedback/forum

Amunt! Top Amunt!
MQ light - what is it ?

IBM MQ Light provides a messaging runtime that developers can install, configure, and use to write applications in just a few minutes, enabling developers to quickly create scalable and responsive application.

MQ Light enables developers to build scalable, responsive applications without the usual MQ administration and configuration requirements.

MQ Light is available both as an on-premise component (using AMQP) or as a Bluemix Service (using either AMQP or JMS).

MQ Light uses theOASIS Standard AMQP 1.0 wire protocol. The Node.JS client we havepublished at npmjs.orgis based on theQpid Proton project.

homepage

System requirements

Win 8 not supported yet

Win requirement : (Guest account)

Instalació

Supported platforms :

W7

First, download product :

190.952.045 IBM-MQ-Light-Linux-x64-developer-1.0.0.1.tar.gz 218.788.698 IBM-MQ-Light-Windows-x64-developer-1.0.0.1.zip

No install is necessary to run MQ Light - just uncompress the downloaded file.

Directory of c:\eines\mqlight-developer-1.0.0.1 07-11-14 10:11 <DIR> iso-swid 14-10-14 20:35 <DIR> license 14-10-14 20:35 86.344 mqlight-config.exe 14-10-14 20:35 86.344 mqlight-start.exe 14-10-14 20:35 86.344 mqlight-stop.exe 07-11-14 10:11 <DIR> properties 07-11-14 10:11 <DIR> runtime

To start working with the MQ Light Node.js API, install it using the node package manager:

c:\> npm install -g mqlight npm http 200 https://registry.npmjs.org/abbrev/-/abbrev-1.0.5.tgz C:\Users\IBM_ADMIN\AppData\Roaming\npm\mqlight-debug -> C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mqlight\bin\mqlight-debug.js mqlight@1.0.2014091001 C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mqlight ??? hashmap@1.1.0 ??? node-uuid@1.4.1 ??? nopt@2.2.1 (abbrev@1.0.5) ??? moment@2.7.0 ??? npmlog@0.0.6 (ansi@0.2.1) c:\>
Linux

Pending (for the moment)


Amunt! Top Amunt!
Getting started with MQ Light
  1. install MQ Light Node.js API to your working directory using npm: npm install mqlight@1.0 {\\T430\JavaScript\mqtt}
  2. add the following import statement to any Node.js source files that call the API: var mqlight = require('mqlight');
  3. install MQ Light SDK (225 MB)
  4. use the mqlight-start command to start the messaging runtime environment

Developer [*****], community, samples and "started"


Amunt! Top Amunt!
Configuracio

c:\Eines\mqlight-developer-1.0.0.1> mqlight-config.exe Usage: mqlight-config [OPTION] [-h|-?] Options: --security Sets or disables the security credentials for MQ Light -v, --version Display MQ Light version information
Configuration files

Security configuration file (and server) : If you look in the appdata/wlp/servers/defaultServer directory you'll see a server.xml file and a security.xml file. The security.xml file should only exist if you have security enabled.


Amunt! Top Amunt!
Operaci

Use the mqlight-startcommand to start the messaging runtime environment.

Starting MQ Light......... Enable user name/password security? (You can change this later) (Y/N):n Enable SSL security? (You can change this later) (Y/N):n Security configuration updated. .................. ### Welcome to IBM MQ Light ### MQ Light UI running at http://localhost:9180/#page=docs MQ Light Server ready to use at amqp://localhost:5672 License Type: Developer - you are running a developer version of MQ Light. Please leave feedback at http://ibm.biz/mqlight-forum

The localhost admin page opens : http://localhost:9180/#page=docs

Samples get installed into

Directory of c:\Users\<user>\AppData\Roaming\npm\node_modules\mqlight\samples 07-11-14 10:21 6.288 recv.js 07-11-14 10:21 6.338 send.js 07-11-14 10:21 7.955 uiworkout.js

Run the samples, as send:

c:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mqlight\samples>node send.js Connected to amqp://localhost:5672 using client-id send_580e7cb Sending to: public Hello World!

And receive:

c:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mqlight\samples>node recv.js Connected to amqp://localhost:5672 using client-id recv_fe1f239 Subscribed to pattern: public Hello World!

You can monitor the message flow using the "Messages" tab in http://localhost:9180/#page=home

Use the mqlight-stopcommand to stop the messaging runtime environment.

Shutting down MQ Light......... MQ Light UI stopped MQ Light Server stopped Shutdown completed

Amunt! Top Amunt!
Codi

Add the following import statement to any node.js source files that call the API:

var mqlight = require("mqlight");

url

Receive using node.js
var mqlight = require('mqlight'); var recvClient = mqlight.createClient({service: 'amqp://localhost'}); recvClient.on('started', function() { recvClient.subscribe('news/technology'); recvClient.on('message', function(data, delivery) { console.log(data); }); }); recvClient.start();
Send using node.js
var mqlight = require('mqlight'); var sendClient = mqlight.createClient({service: 'amqp://localhost'}); sendClient.on('started', function() { sendClient.send('news/technology', 'Hello World!'); }); sendClient.start();
The Worker-offload pattern

tutorial

Bon codi

  1. lent
  2. rapid
Another send/rcv

video


Amunt! Top Amunt!
Diagnostics

To collect diagnostics:
Could you run the command runmqras.cmd command located in your MQ Light installation under runtime/bin/. This will create a zip file which you can then send to us by FTP


Amunt! Top Amunt!
AMQP

AMQP homepage, intro, architecture, real world products, ISO specs & pdf, FAQs (see wire-level protocol vs JMS), video (3min)

what is AMQP

The AMQP Network protocol defines:

AMQP Products

A standard is no use without products, and there are is a choice of excellent AMQP technology suppliers. Commercially available AMQP products and support offerings; please check their web sites for details...

AMQP & SOA

Use AMQP to Deliver on Service Oriented Architecture (at last!)

Rabbit

Getting_Started_with_RabbitMQ_and_CloudAMQP.pdf

Article divulgatiu Async with Rabbit

Cloud : free if


Amunt! Top Amunt!
MQ and MQ Light

MQ support for MQ Light (Beta) now available


Amunt! Top Amunt!
Dubtes

Amunt! Top Amunt!
Links

Ep ! Valid HTML 4.01!   Valid CSS! Escriu-me !
Updated 20151104 (a)  
Uf !