Results 1 to 8 of 8

Hybrid View

  1. #1
    Member
    Join Date
    Dec 2011
    Location
    colombo
    Posts
    5
    Thank You very much DarioCrivelli. I have configured lightstreamer and my web project. now stocklistDemo is working with my web project. how i can send my backend stock data to lightstreamer and view those in web browser. (Currently data provide by another server when new order place.) How i can send those data to lightstreamer.
    Thanks in Advance...

    Regards
    Pradeep
    (knowledge is power when it applied.)

  2. #2
    Member
    Join Date
    Dec 2011
    Location
    colombo
    Posts
    5

    How to write my own stock list data adapter

    I looked at demo stock list data adapter given with light streamer and try to write my own data adapter.In my project when order submit to back end server, it gives massage that should push to each client(web browser). So how i can write my own data adapter to retrieve massage and send it to light streamer server.
    Thanks in Advance

    Regards
    Pradeep

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Sorry, we don't provide facilities for the integration of any specific back-end system to the Data Adapter interface, though we are working on doing something for the future.

    If JMS is available in your J2EE environment to request data to your back-end, then coding a java Data Adapter which accesses JMS would be an advisable approach.
    Note that we provide a sample implementation of the StockListDemo Data Adapter based on JMS;
    it is in DOCS-SDKs\sdk_adapter_java\examples\StockListDemo_JMS_D ataAdapter in the distribution package.

  4. #4
    Member
    Join Date
    May 2012
    Location
    Berlin
    Posts
    1

    Push your own quotes to the clients is very simple...

    At first...thanks for lightstreamer...what a great solution!
    Today i finished the development of my own DataAdapter with the possibility of injecting my own realtime data (quotes and portfolio updates).
    It is really simple, so let me share some infos about it.

    The quotes and portfolio informations are part of a trading application and will be updated realtime. This application is the "backend". I added a TCP Server to the backend. This server broadcasts the desired informations to all connected clients. This is the point where lightstreamer comes into the play. Like in the HelloWorld example the subscribe method will create a new thread which will manage the communication with the handleItem.
    This thread will create a new TCP Clientsocket and connects to the TCP server of the backend. The rest is easy. The receive thread of the clients splits the received messages in fields which represent the different fields in the <div> containers. Like in the HelloWorldExample all fields will be added to a map which maps the fieldname to the content. The listener.smartUpdate method provides the mechanism of hand over the data to the handleItem.

    Schema:

    |-----------------Lightstreamserver------------|--------Network-------|-----------Backend------------------------------|
    DataAdapter <-> "FrontendConnector"<------------------------>"BackendConnector"<->Coresystem

    FrontendConnector = TCP Client
    BackendConnector = TCP Server

    Regard!
    exchange1973

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Hi Exchange1973, thanks for sharing your thoughts!

    -Alessandro

 

 

Similar Threads

  1. Could not connect to light streamer server
    By bponnappan in forum Adapter SDKs
    Replies: 1
    Last Post: July 5th, 2012, 09:38 AM
  2. J2EE app to push message via LS w/o JMS
    By atamel in forum General
    Replies: 3
    Last Post: August 9th, 2010, 02:09 PM
  3. Launch LS application.
    By karthik in forum Client SDKs
    Replies: 3
    Last Post: July 7th, 2010, 10:43 AM
  4. Replies: 5
    Last Post: September 8th, 2009, 03:07 PM
  5. Integrating with a J2EE Application Server
    By mvelik in forum General
    Replies: 6
    Last Post: December 9th, 2006, 11:46 AM

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 03:14 AM.