sjohn
I need to display data from multiple adapters on one web page. How do I code this?
Dario Crivelli
The Web Client Library does not support this.
You can only open one streaming connection at a time and specify one Metadata/Data Adapter pair.
Using an aggregated Data Adapter is always the suggested technique.
However, if you really need to work around this limitation, you could open two streaming connections from two different Master Push-Pages of your front-end and refer from other Push-Page to only one of the two. Any mixing of the data from the two Data Adapters on the same page should be handled manually.
Still, you would have to consider that browsers put a limit on the connections open from the same host at the same time; so, you had better use different hostnames for the two connections.
Note that the next major release of Lightstreamer will finally introduce the support for distinct Data Adapters in the same streaming connection.
eduramires
Hi Dario,
I found this issue and this is a very important question for me. I'll use at least 4 different Data Adapters in a single page (like a homebroker's panel with quotes, news, book and orders).
LightStreamer has already has support for multiples Data Adapter?
Alessandro Alinone
Hi eduramires,
Support for multiple Data Adapter within the same session was due for the next major release of Lightstreamer. But, considered the high number of requests we are receiving, we have decided to anticipate it, by releasing a new minor release. We don't have a date for it yet, but expect in the next few weeks.
In the meanwhile, are you sure you need four different physical adapters and you cannot merge them into one single adapter? Based on the item name, you adapter could route the subscription requests to quotes, news, book and orders.
eduramires
Hi Alessandro,
I didn't know if it would be possible to do a merge of these different informations in one single adapter. If I do that, can I create, for example, 4 differents OvewriteTables, each one with a particular group, schema and subscription type and the LS Server will manage the data for them?
Alessandro Alinone
Eduramires,
Absolutely yes. You can have as many different tables as you want in your pages, and LS takes care of multiplexing their updates within a single session.
timhuck
Hi Allesandro,
Is there an ETA on the release to enable multiple adaptor connections per page ?
Ta,
Tim
Alessandro Alinone
Hi Tim,
Lightstreamer Server v.3.5 will do the trick.
It is currently in the final testing and packaging phases. If no significant delays happen, the public release shoul ba available before the end of June 2008.
Cheers,
Alessandro
alfred.chan
Hi Alessandro,
Would I know the latest update about the release of Lightstreamer Server v.3.5?
Will it be related soon?
Regards,
Alfred
Alessandro Alinone
Alfred,
Yes, we are very close to the release of Lightstreamer Server v.3.5 and updates SDKs. It will be out in the course of this month.
Thanks for the patience!
Cheers
Alessandro
mhasan
we are using lightstreamer 5.1.1, is it support multiple data adapters with single metadata adapter. any example or reference would be very helpful.
we have four different schemas and want to use four data adapters for those schemas. how we can achieve it. if we use one adapter we have to merge all scheams which we don't want.
thanks.
Gianluca Finocchiaro
Hi mhasan,
please refer to the
"Full Version of the Portfolio Demo", as an example that shows how to integrate two Adapters in the same Adapter Set.
Regards,
Gianluca