https://github.com/strongloop/loopback-connector-mqlight
LoopBack connector for IBM MQSeries
https://github.com/strongloop/loopback-connector-mqlight
Last synced: 7 months ago
JSON representation
LoopBack connector for IBM MQSeries
- Host: GitHub
- URL: https://github.com/strongloop/loopback-connector-mqlight
- Owner: strongloop
- License: other
- Created: 2016-05-31T14:59:29.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T16:17:02.000Z (over 6 years ago)
- Last Synced: 2025-04-07T01:05:26.232Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 73.2 KB
- Stars: 3
- Watchers: 15
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# loopback-connector-mqlight
[IBM MQ Light®](https://developer.ibm.com/messaging/mq-light/) is a simple yet powerful AMQP-based messaging API. The `loopback-connector-mqlight` module is the Loopback connector for IBM MQ Light.
The LoopBack MQ Light connector supports:
- All [create, retrieve, update, and delete operations](http://loopback.io/doc/en/lb2/Creating-updating-and-deleting-data.html).
- Sending messages to and receiving messages from IBM MQ Light.
## Installation
Enter the following in the top-level directory of your LoopBack application:
```
$ npm install loopback-connector-mqlight --save
```
The `--save` option adds the dependency to the applications `package.json` file.
## Configuration
Use the [data source generator](http://loopback.io/doc/en/lb2/Data-source-generator.html) to add the MQ Light data source to your application. The resulting entry in the application's `server/datasources.json` will look something like this:
```js
"mymq": {
"name": "mymq",
"connector": "mqlight"
}
```
Edit `server/datasources.json` to add other supported properties as required:
```js
"mydb": {
"name": "mymq",
"connector": "mqlight",
"username": ,
"password": ,
"service":
}
```
The following table describes the connector properties.
Property | Type | Description
---------------| --------| --------
service | String | Connection URI for MQ Light service
username | String | MQ Light service username
password | String | MQ Light service password associated with the username above
Examples can be found in the test directory.
## Testing
Start a local MQ Light server:
```shell
$ $MQLIGHT_HOME/mqlight-start
```
> You can download a free copy at https://developer.ibm.com/messaging/mq-light/.
Then run the tests:
```shell
$ npm test
```
> We run tests against the latest developer builds. Early access builds are not
> guaranteed to pass (use at your own risk).