Results 1 to 10 of 10
  1. #1

    Newbie Question: How to connect adapter with the web server on Linux?

    Hey,

    So I have installed Apache web server on my Linux machine. I do not understand how to get my sample client code running. Kindly help me out here. The path /var/www/ has a sample index.html page whereby if I enter "localhost" on the browser I can see this sample page which shows my web server is up and working.

    Now , my Lightstreamer home folder is in the /home/Lightstreamer/ path. Now where should I place my data adapter which is in my Lightsteamer folder in order to connect with my web server and what should I enter as my browser url to test the client code. The ports & the paths to be entered to test a sample adapter-client code & when to start the LS server is kind of confusing me. I'm sorry I know it's a really basic question & probable I've missed reading something out in the docs.

    Thank you,
    Priyanka

  2. #2
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi Priyanka,

    Lightstreamer is also a webserver itself, therefore (at least for simple prototyping) you don't need anything else. My suggestion is to follow a simple demo in order to getting familiar with basic concepts and procedures.

    Let us know.
    Thanks and Regards,

    Gianluca

  3. #3
    Hey,

    I tried the simple demo example using Lightstreamer as a webserver. I can see the client page on "localhost:8080" on my browser but with no data(items & its contents) in it. On the other end, I can see Lightstreamer server up with the data adapters ready. Am I messing up something with regard to the 2 adapter.xml files( one common to all projects & one inside the Stocklist project) & the index.html file?

    Kindly help.
    Thank you,
    Priyanka

  4. #4
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi,

    you also need to deploy a client side application relative to the Stock Adapter demo. Here a complete list of the HTML clients.
    Simply follow the instructions for one of them, then come back to us for any specific issues you may have in executing the demo.

    Regards.
    Gianluca

  5. #5
    Hey,

    Yes I did follow these codes and its steps. But when I try to run a client code on my localhost, it shows the real time web-server as disconnected which I am unable to figure out.

    Thanks for helping though
    Priyanka

  6. #6
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Which client example did you deploy?

  7. #7
    Hey,

    StockList Demo - Basic HTML client.

    Thanks,
    Priyanka

  8. #8
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Ok,

    provided that you have deployed all StockList Basic HTML Client files under /home/Lightstreamer/pages/StockListDemo_Basic (along with require.js and lightstreamer.js files to put under /home/Lightstreamer/pages/StockListDemo_Basic/js), so you should point your browser to http://localhost:8080/StockListDemo_basic/, and watch real time data populating the grid.

    Let me know.
    Gianluca

  9. #9
    Hey,

    A quick doubt,

    Can you explain me a little in detail what does "DemoCommonCollection" stands for

    lsClient.connectionSharing.enableSharing("DemoComm onConnection", "ATTACH", "CREATE"); in the javascript client example and do I need to change it?

    Thank you,
    Priyanka
    Last edited by Priyanka; May 12th, 2016 at 01:32 PM.

  10. #10
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    You can get more details about connection sharing at the following urls:

    1. Lightstreamer.enableSharing method documentation
    2. ConnectionSharing class documentation


    Such feature is useful if your front-end includes more than one LishtstreamerClient instance that wants to connect and subscribe to the same server, otherwise you may simply ignore it.

    Regards
    Gianluca

 

 

Similar Threads

  1. Newbie Java Remote Adapter question
    By webmons in forum Adapter SDKs
    Replies: 3
    Last Post: March 7th, 2013, 10:30 AM
  2. Single Linux server with 2 IP addresses
    By anselme in forum General
    Replies: 4
    Last Post: March 30th, 2012, 09:37 AM
  3. newbie ask: Web client by pre-installed locally?
    By chenxun in forum Client SDKs
    Replies: 1
    Last Post: July 1st, 2010, 03:51 PM
  4. Problem with stopping LS server in Linux
    By quanhm in forum General
    Replies: 1
    Last Post: November 16th, 2007, 12:32 PM
  5. LightStreamer and Sockets - newbie question
    By jsharpe in forum Adapter SDKs
    Replies: 3
    Last Post: September 28th, 2006, 03:03 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 05:31 PM.