-
February 28th, 2018, 11: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
-
March 1st, 2018, 09:46 AM
#2
Good morning,
unfortunately you can't connect directly to TIBCO EMS from a JavaScript client using the JMS Extender APIs: you need a JMS Extender instance running on the back-end. The JMS Extender acts as a gateway, the JavaScript client connects to the JMS Extender, which in turn connects to TIBCO EMS.
You can download the JMS Extender distribution from our download page. Follow the GETTING STARTED.TXT document, which already includes steps for configuring TIBCO EMS as a back-end JMS broker.
Once your JMS Extender instance is up and running, in your code above you just need to change the server URL from https://server:7222 to the address of your JMS Extender. The code itself looks correct, you should see your message delivered to the wf.application.Output queue.
Note: we have a forum section dedicated to the JMS Extender and its client APIs. In case you should open a new thread just recall to post it there, so we keep discussions in topic. You can continue this thread here.
Let us know if you need any other help.
Best regards,
Gianluca
Similar Threads
-
By vdhinesh in forum Client SDKs
Replies: 1
Last Post: December 7th, 2009, 01:36 PM
-
By saleem145 in forum Client SDKs
Replies: 2
Last Post: September 24th, 2009, 12:01 PM
-
By wmolde in forum Client SDKs
Replies: 5
Last Post: September 24th, 2009, 11:59 AM
-
By ericrosevear in forum General
Replies: 3
Last Post: June 18th, 2008, 11:41 AM
-
By Cerogil in forum Client SDKs
Replies: 1
Last Post: January 23rd, 2007, 06: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 02:10 AM.
Bookmarks