Results 1 to 5 of 5

Hybrid View

  1. #1
    Member
    Join Date
    Mar 2007
    Location
    Bangalore
    Posts
    2

    Thanks

    Hi Friends,

    Thanks a lot for your support. I m now able to understand the architecture.

    For my case, I just pass the name of the user to the adapter (to which it is subscribed). The server manages sending it only to him.

    I have two more questions -

    1) I tried modifying the engine creation to include username/password as follows
    engineRef.context.setDebugAlertsOnClientError(debu gAlerts);
    engineRef.context.setRemoteAlertsOnClientError(tru e);
    engineRef.connection.setUserName("cookie");
    engineRef.connection.setPassword("password");
    engineRef.connection.setLSHost(host);
    engineRef.connection.setLSPort(port);
    engineRef.connection.setAdapterName("STOCKLISTJMSD EMO");
    engineRef.changeStatus("STREAMING");
    but I always get null for username argument in the following functions
    LiteralBasedProvider::getItems
    LiteralBasedProvider::getSchema
    and username/password is null in the following function
    LiteralBasedProvider::notifyUser

    Am I going wrong somewhere?

    2) Is there any other way of creating a client implementation to subscribe and receive messages from the server without using NonVisualTable control?

    Thanks,

    Vishnu

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Hi Vishnu

    The username argument is supposed not to be passed as null in this case.
    Is it possible that the Engine is already streaming when "setUserName" is called?
    Are you using "createEngine" or the old "loadEngine" in order to load the Engine?
    May you please check Lightstreamer Server log? You should be able to find your username logged.

    I Assume that, in your second question, you are looking for an alternative to using "NonVisualTable" still in the context of an HTML front-end. Then the answer is no; subscribing to items is only made through the definition of a table object.
    Other types of table objects do exist, as listed in the Javascript API JSDocs: they all are "visual tables" and can be used in order to take advantage of Lightstreamer-provided management of the visualization of the data in the table cells.

    Dario

 

 

Similar Threads

  1. Get data specific to each User by passing parameters
    By leonardodar in forum Adapter SDKs
    Replies: 3
    Last Post: March 16th, 2011, 09:45 AM
  2. User specific data example
    By zeos in forum Adapter SDKs
    Replies: 1
    Last Post: January 28th, 2010, 09:41 AM
  3. General data and User specific data
    By mnenchev in forum Adapter SDKs
    Replies: 5
    Last Post: September 1st, 2009, 09:36 AM
  4. Request-Response APIs
    By sundaramlaxman in forum Client SDKs
    Replies: 4
    Last Post: February 21st, 2007, 02:11 PM
  5. User-specific push
    By rmusco in forum General
    Replies: 8
    Last Post: February 2nd, 2007, 05:29 PM

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 10:43 AM.