If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Just now i could get understand about Lightstreamer and its adapter and client files. Too much of thanks to you. Based on this i have to develop stock market rates to client. We are developing application for bullion client. In that we are getting market rates from one third party application and we will add some of the margin and will display to users. Now i used ajax with settimeout() function to read file and display to client browser for every 200 mil second. Please give me some ideas to do this using lightstreamer. I got some basic points if you give some ideas means i can improve my application using lightstreamer.

And also i'm getting error in my php coding like
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\lightsample

You can refer to this demo (the source code of the example is also provided) which shows a simple Stock-List client updated with real-time data generated by a simulator and injected via Lightstreamer. We provide example of the Adapter implementation both in Java and in C#.NET.

Specifically about your case, you should build a Data Adapter that connects with the third-party application to receive the market rates and generate Items to which clients subscribe and receive all updates in real time.

Do you mean that to every different users you should apply different margins or the margins are the same for all the clients?
Based on this response there could be some different implementation choices.

About "Maximum execution time ..." error please you can refer to this previous post:

Hi,

the file is intended to be launched from a command line as
Code:

php filename.php

you can certainly try to run it as a page but

you may have problems due to the php.ini configurations (not sure about this, it's some time since I had to work with php)
the file contains a while(true) but the php runtime has a limit in the execution time, after that the execution will be stopped

HTH

but if you have no chance to run the PHP code from a command line and not as a page I do not have better suggestions than your solution of increase the timeout.

If the create_session.js fails the most likely reason is that the Lightstreamer server is not listening on the specified port; this can happen if the startup procedure fails or never completes.
But in your case, that involve remote Adapters, as long as a connection to a remote Metadata Adapter is still missing, all client requests will be refused.

So, please check if the Lightstreamer server is started normally and that all the remote Adapters (port: 6650, 6651, 6652) are connected properly. If it is the case you can also post here some snippets of server log.

How to check all the remote Adapters (port: 6650, 6651, 6652) are connected properly in Lightstreamer. I used to monitor this like http://localhost:8880/monitor/ But i couldn't check.There is no option to view port

And i have one more doubt how to send response with different values for multiple client.

1)In my case clients are separated by groups. If i connect all the clients with lightstreamer how can i identify clients belonging groups.
2)How to send client id to server(ie: User id) based on the client id how to send response for respected clients

In a case like yours, that involves private messaging, you just need to add a little bit of implementation in your Metadata Adapter.

We assume that on the client side you set the user ID by this function. On the adapter side, with the NotifyUser method you can identify the user and assign him to the correct group. Then in the GetItems method you can customize the Item (i.e. "MyItem" became "MyItem_GroupA" or "MyItem_GroupB" depending on which group the user belongs).

Now you can feed the item "MyItem_GroupA", "MyItem_GroupB", ... independently with the quotes appropriately corrected and users will receive only those of their group in a transparent way.

For a further discussion on the topic of private messages, please take a look at this thread.