Results 1 to 2 of 2
  1. #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

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Bologna, Italy
    Posts
    102
    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

  1. Tibco proxy pass issue
    By vdhinesh in forum Client SDKs
    Replies: 1
    Last Post: December 7th, 2009, 01:36 PM
  2. Tibco Gi Demo
    By saleem145 in forum Client SDKs
    Replies: 2
    Last Post: September 24th, 2009, 12:01 PM
  3. Tibco sample Code
    By wmolde in forum Client SDKs
    Replies: 5
    Last Post: September 24th, 2009, 11:59 AM
  4. Tibco Rv data adapter
    By ericrosevear in forum General
    Replies: 3
    Last Post: June 18th, 2008, 11:41 AM
  5. Tibco pausing with Lightstreamer
    By Cerogil in forum Client SDKs
    Replies: 1
    Last Post: January 23rd, 2007, 06:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 09:33 AM.