Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keyang/tkejms
tkejms message dispatcher
https://github.com/keyang/tkejms
Last synced: about 1 month ago
JSON representation
tkejms message dispatcher
- Host: GitHub
- URL: https://github.com/keyang/tkejms
- Owner: Keyang
- Created: 2014-05-07T15:11:10.000Z (over 10 years ago)
- Default Branch: develop
- Last Pushed: 2014-05-07T16:47:24.000Z (over 10 years ago)
- Last Synced: 2024-10-15T15:35:59.345Z (3 months ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#TKE JMS Message Dispatcher
This module connects to ActiveMQ bridge which connects to TKE JMS provider.#Usage
##Installation
In package.json add following entry:
```
"tkejms":"https://github.com/Keyang/tkejms/archive/master.zip"
```
This will download the latest version of dispatcher.##API
```js
var tkejms=require("tkejms")({
"amq_host":"127.0.0.1", //activemq server host
"amq_port":61613, //activemq server port
"tke_antenna_queue":"/queue/jms/TKEAntennaInQueue" //TKE JMS queue name
});tkejms.on("amq_msg_ticket",function(jsonObj, employeeId){
//process the raw ticket json data
});tkejms.on("amq_msg_basedata",function(jsonObj, employeeId){
//process the raw basedata json data
});//action could be Added / ? /? todo: finish this
tkejms.on("parsed_ticket",function(jsonObj, action, employeeId){
//process the parsed ticket json data
});tkejms.on("parsed_employee_ticket",function(jsonObj, action, employeeId){
//process the parsed employee_ticket json data
});tkejms.on("parsed_product_ticket",function(jsonObj, action, employeeId){
//process the parsed product_ticket json data
});tkejms.on("parsed_task",function(jsonObj, action, employeeId){
//process the parsed task json data
});```
#Change Log