Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jul 2007
    Location
    ha noi
    Posts
    11

    explain about classes :Burst.cs,ExternalFeed.cs,StockList.cs

    hi all
    i have developed data adapters for .Net and SQL server, but i I'm having diffuculties understanding about classes :Burst.cs, ExternalFeed.cs, StockList.cs of the demo example DotNetStockListDemo, can anyone help me to explain about them.Thanks

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    ExternalFeed.cs is a simulator. It generates stock updates and passes them to a class implementing IExternalFeedListener.
    StockList.cs implements IExternalFeedListener to listen generated events from the ExternalFeed instance and implements IDataProvider to be used as a DataAdapter and so to pass data to Lightstreamer.
    Burst.cs implements IDataProvider so that it can be used as a different DataAdapter. It generates data on its own but with a heavier load on the machine.

    Those are just example that generates their data. In real cases you will probably get the data from an external feed (in your case the SQL server).

  3. #3
    Member
    Join Date
    Jul 2007
    Location
    ha noi
    Posts
    11
    thanks for the info, now i can get data from Sqlserver.
    but i have still one problem : in the example demo stocklistdemo for data adapter .Net,(for data adapter .java is good) i click stock name(for example :CVS Asia) to shown popup in form index.html , it has 3 errors :
    1> SLDpopup7 1 :10:53:23,760 ER positionXAxis this is a not valid value for positionXaxis:"NaN", please use a number.
    2> SLDpopup7 2 :10:53:23,760 ER positionXAxis this is a not valid value for positionXaxis:"NaN", please use a number.
    3>SLpopup7 3 : :10:53:23,760 ER callback exception Invalid argument.
    thrown by your callback
    function onChartUpdate(item,upOb)
    {
    -------
    -------
    }
    and the graph don't appear.

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hello,

    I think there is a problem on date formatting.
    In the java adapter the date is formatted as "HH:mm:ss" by the SimpleDateFormat class.
    Please check if on your environment the dotNet adapter generates something similar or not.

    You can do the check adapter side (ExternalFeed.cs)


    or web client side (index.html)

  5. #5
    Member
    Join Date
    Jul 2007
    Location
    ha noi
    Posts
    11
    Thanks Mone. i found my problem as your answer.

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi hungn,

    please if you could post your solution (ie what have you done to format the date as expected by the front-end), it could be useful for someone else.

  7. #7
    Member
    Join Date
    Jul 2007
    Location
    ha noi
    Posts
    11
    hi Mone
    in .Net the date is formatted as "HH:mm:ss PM(AM)"
    in ExternalFeed.cs : I remove the string(PM or AM ) in the string Time.

  8. #8
    Member
    Join Date
    Apr 2008
    Location
    Hanoi
    Posts
    1
    I can't find the Burst.cs file in DotNetStockListDemo. And would you show me an example that gets UPDATED DATA from database (such as SQL) !
    Thanks very much !

  9. #9
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    We recently removed burst.cs, as it was unrelated to the StockListDemo example and might be confusing. You can find it attached; however, it does not demonstrate getting data from a database.
    In fact, we have no examples of this kind available.
    Attached Files Attached Files

 

 

Similar Threads

  1. Stocklist JMS demo with WebSphere MQ
    By sharathbabuk in forum General
    Replies: 8
    Last Post: July 30th, 2010, 04:18 PM
  2. 2 ArrayList for two pages ?? (StockList example)
    By mohamida in forum Adapter APIs
    Replies: 2
    Last Post: November 17th, 2009, 03:46 PM
  3. Replies: 8
    Last Post: May 22nd, 2008, 06:01 AM
  4. Replies: 4
    Last Post: March 19th, 2008, 11:10 AM
  5. Replies: 16
    Last Post: February 13th, 2008, 10:01 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 08:51 PM.