Results 1 to 4 of 4

Thread: Doubts

  1. #1
    Member
    Join Date
    Dec 2007
    Location
    São Paulo
    Posts
    9

    Doubts

    Hi,
    I developed custom metadata and data adapters using .NET. I also developed a StandAlone application that connects with the LS Proxies. The connection seems to be succesfully estabilished with no problems, but there're no updates in web page. If you look to the log text below, you'll see some messages saying that the NetStockListMetadata pass through 3 steps (starting, connecting and connected). The same doesn't happen with the NetStockListData.

    ------------------------
    Lightstreamer Server starting in Moderato edition
    27-Fev-08 15:09:01,426 |WARN |LightstreamerLogger.monitoring |main |JMX management features not available with the current license
    27-Fev-08 15:09:01,456 |INFO |LightstreamerLogger.init |main |Started HTML Adaptor for JMX on port 6666
    27-Fev-08 15:09:01,479 |INFO |LightstreamerLogger.init |main |Started JMXMP Connector for JMX on port 9999
    27-Fev-08 15:09:01,494 |WARN |LightstreamerLogger.init |main |No users defined for Internal Monitor.
    27-Fev-08 15:09:01,504 |INFO |LightstreamerLogger.init |main |Loading Metadata Provider AETEST
    27-Fev-08 15:09:01,528 |INFO |.remote.transport.SocketTransport|main |Connecting...
    27-Fev-08 15:09:01,699 |INFO |.remote.transport.SocketTransport|main |Connected
    27-Fev-08 15:09:01,706 |INFO |emote.request_reply.RequestSender|ListMetadata Request Sender|Request sender 'NetStockListMetadata' starting...
    27-Fev-08 15:09:01,707 |INFO |LightstreamerLogger.init |main |Loading Data Provider AETEST
    27-Fev-08 15:09:01,711 |INFO |mote.request_reply.NotifyReceiver|ListMetadata Reply Receiver|Reply receiver 'NetStockListMetadata' starting...
    27-Fev-08 15:09:01,717 |INFO |.remote.transport.SocketTransport|main |Connecting...
    27-Fev-08 15:09:01,730 |INFO |.remote.transport.SocketTransport|main |Connected
    27-Fev-08 15:09:01,780 |INFO |LightstreamerLogger.init |main |Pump pool size set by default at 2
    27-Fev-08 15:09:01,803 |INFO |emote.request_reply.RequestSender|tockListData Request Sender|Request sender 'NetStockListData' starting...
    27-Fev-08 15:09:01,805 |INFO |LightstreamerLogger.init |main |Events pool size set by default at 2
    27-Fev-08 15:09:01,810 |INFO |LightstreamerLogger.init |main |Lightstreamer Server 3.4.7 build 1395 starting...
    27-Fev-08 15:09:01,814 |INFO |mote.request_reply.NotifyReceiver|ockListData Notify Receiver|Notify receiver 'NetStockListData' starting...
    27-Fev-08 15:09:01,815 |INFO |mote.request_reply.NotifyReceiver|tockListData Reply Receiver|Reply receiver 'NetStockListData' starting...
    27-Fev-08 15:09:01,848 |INFO |LightstreamerLogger.init |main |Server "Lightstreamer HTTP Server" listening to *:8080 ...
    --------------------------------------

    I put a breakpoint in the constructor of my DataAdapter class, because I imagine that, when I webclient connects to my page, the LS Kernel will call the DataAdapter constructor for the new session that has been initialize, but nothing happens. In the same way, a breakpoint in the Subscribe method isn't reached.

    Could you give me any idea about what I can be doing wrong?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    I can't see any log line for 'NetStockListMetadata' which has no correspondence for 'NetStockListData'. On the contrary, there is one line which is only for the Data Adapter, namely
    27-Fev-08 15:09:01,814 |INFO |mote.request_reply.NotifyReceiver|ockListData Notify Receiver|Notify receiver 'NetStockListData' starting...
    which is correct, as the Notify Receiver is related to the updates flow.

    The Data Adapter constructor on the Remote Server is invoked only once in the initialization phase. After the webclient connection, however, you were supposed to receive "Subscribe" calls.
    To investigate this, you should first ensure that the webclient-server communication works correctly. This is not shown on your log snippet. May you please check this on the subsequent part of the log?

  3. #3
    Member
    Join Date
    Dec 2007
    Location
    São Paulo
    Posts
    9
    Hi Dario,

    after some changes in my code, now I can get to feed LS Kernel with my datas. What is happening now, I think it´s a subject for other forum, but I'll ask here and you can redirect me if necessary. Now I have my application sending events through LS Listener, but I can't see any data refreshing in webpage, even though in the browser's status bar I see the message : "Receiving data from localhost". I'm using the firefox's Javascript Debugger extension and I put a breakpoint on the UpdateInfo() method in my page (this method is the same as the one that came in the Stocklist Html demo). It seems that LS isn't invoking this method. Is there a simple way to check what information LS Kernel is sending to the page?

    Thank you!

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    To start with, you can enable event logging on the Server.
    See this thread, for instance.

 

 

Similar Threads

  1. GETTING_STARTED.TXT doubts
    By rmusco in forum General
    Replies: 11
    Last Post: November 30th, 2006, 11:25 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 04:35 PM.