|
home /
infca /
mq-light
(navigation links)
|
I found an island in your arms, Country in your eyes
Arms that chain, Eyes that lied
|
MQ light
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 :
- windows : win 7 SP1 pro (x86-64), win server 2008 std (x86-64)
- linux : Ubuntu 12.04 LTS (x86-64), rhes 6 (x86-64) - requisite : libuuid package
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)
Getting started with MQ Light
- install MQ Light Node.js API to your working directory using npm: npm install mqlight@1.0 {\\T430\JavaScript\mqtt}
- add the following import statement to any Node.js source files that call the API: var mqlight = require('mqlight');
- install
MQ Light SDK (225 MB)
- use the mqlight-start command to start the messaging runtime environment
Developer [*****],
community,
samples and "started"
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.
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
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
- lent
- rapid
Another send/rcv
video
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
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:
- A peer to peer protocol; though normally in AMQP one peer is playing the role of a client application and the other peer is playing the role of s trusted message routing and delivery service, or broker
- How to connect to services, including a method for failing over connections to alternative services
- A mechanism to enable peers to discover one another's capabilities
- Comprehensive security mechanisms, including SSL and Kerberos for seamless end-to-end confidentiality
- How to multiplex a TCP/IP connection in order that multiple conversations may happen over one TCP/IP connection. This greatly simplifies firewall management.
- How to address a source of messages with the network peer, and to specify which messages are of interest
- The lifecycle of a message through fetching, processing, and acknowledgement. AMQP makes it very clear when responsibility for a message is transferred from one peer to another thereby enhancing reliability
- How to enhance performance, if desired, by pre-fetching messages across the network ready for the client to process without delay
- A way of processing batches of messages within a transaction
- A mechanism to allow a complete message transfer from login to logout in one network packet for lightweight applications
- Very capable flow control, which enables consumers of messages to slow producers to a manageable speed, and which enable different workloads to proceed in parallel at different rates over one connection
- Mechanisms for resuming message transfers when connections are lost and re-established; for example in the event of service failover or intermittent connectivity
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...
- Apache Qpid, anApacheproject
- Fedora LinuxAMQP Infrastructure
- IIT Software's SwiftMQis a enterprise grade JMS messaging product with full support for AMQP 1.0
- INETCO's AMQP protocol analyzer
- JORAM: open reliable asynchronous messaging, 100% pure Java implementation of JMS
- Kaazing's AMQP Web Client
- Microsoft's Windows Azure Service Bus
- JBossA-MQbyRed Hatbuilt fromQpid
- StormMQa cloud hosted messaging service based on AMQP -
wiki,
website
- VMware IncRabbitMQ; also supported by SpringSource
- 0MQ
- ActiveMQ
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
- max 100 queues
- max 10.000 queued messages
- max idle queue time 28 days
- max 1M msgs/month
- max 20 connections
Dubtes
- deployment options :
In the future there will be support for deploying MQ Light applications using IBM MQ
url
-
currently there is no mechanism for MQ Light to connect directly to MQ
{Alan Chatt, MQ Light Forum}
- com saber el estat del mq-light ? Tenim mqlight-start.exe i mqlight-stop.exe
-
how to use the Apache Qpid proton clients to talk to MQ Light
-
a sample on using Qpid Proton API to MQ Light
- que fa MQTT al MQ-Light ?
The MQXR service that comes with MQ does a local bridge between MQTT and MQ.
So I'm expecting, or suggesting, or guessing, that the MQXR service that comes with MQLight does the same thing for MQLight.
-
Typically node.js connects to an MQLight server identified by host and port
Replace this by the AMQP channel of MQ8.0.0.2 giving the MQ host and the port for the AMQP channel
Direct connection achieved