-
February 28th, 2018, 10:03 AM
#1
Connect Tibco EMS
Hi,
I am trying to listen Tibco ems queue, but couldn,t connect it. here is sample code:
var jms = require('lightstreamer-jms-client');
jms.ConnectionFactory.createConnection("https://server:7222", "TIBCO", null, null, {
onConnectionCreated: function(conn) {
conn.setExceptionListener({
onException: function(exception) {
// Handle exceptions here
}
});
var session = conn.createSession(false, "AUTO_ACK");
var queue = session.createQueue("wf.application.Output");
var producer = session.createProducer(queue, null);
var msg = session.createTextMessage("some text");
producer.send(msg);
conn.start();
},
onConnectionFailed: function(errorCode, errorMessage) {
// Handle server errors here, e.g.:
alert("Server error: " + errorCode + " " + errorMessage);
},
onLSClient: function(lsClient) {
// Add connection status logging (optional)
lsClient.addListener({
onStatusChange: function(newStatus) {
console.log(newStatus);
}
});
}
});
Please help me if I am doing some this wrong.
Thanks
Similar Threads
-
By vdhinesh in forum Client SDKs
Replies: 1
Last Post: December 7th, 2009, 12:36 PM
-
By saleem145 in forum Client SDKs
Replies: 2
Last Post: September 24th, 2009, 11:01 AM
-
By wmolde in forum Client SDKs
Replies: 5
Last Post: September 24th, 2009, 10:59 AM
-
By ericrosevear in forum General
Replies: 3
Last Post: June 18th, 2008, 10:41 AM
-
By Cerogil in forum Client SDKs
Replies: 1
Last Post: January 23rd, 2007, 05:16 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:14 AM.
Bookmarks