Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2009
    Location
    Colorado Springs
    Posts
    8

    Question Rasing an Exception from a Data Adapter

    Hello,
    We have code up several Data Adapters using .NET Lightstream API. We have .NET Window applications using the Lighstreamer .NET Client interfaces to receive push data.

    We would like to be able using IItemEventListner.Failure interface to raise an exception to the push engine. We would like to be able to capture this exception in the client via the method we provided when we implemented the IConnectionListener interface, specifically the OnFailure method (PushServerException).

    We created an exception but we do not see Lightstreamer calling the client? Should It? If not, is there a way to raise an exception in the data adapter such that the client can trap that exception?

    Second question. What is the behavior of raising an exception to Lightstreamer kernel?
    i.e., does it shutdown the kernel and Data Adapters? We are using the robust data adapters configuration.

    Thanks in advance.
    Peter Hiross

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    972
    Actually, we use the same name ("failure") on the client and adapter interfaces, but they have different meanings. Sorry for being misleading.

    The client-side concept of "failure" refers to the connection with the Server.

    The adapter-side concept of "failure" refers to the consistency of the Data Adapter as a whole. By calling failure() or sending a FailureException, the Data Adapter notifies the Server that it needs to be restarted.
    Note that the Server, upon this request, can't help but close itself,
    UNLESS the request comes from a Remote Data Adapter and the Robust version of the Proxy Adapter is used.

    In order to send error notifications from the Data Adapter to the clients, special-purpose items have to be introduced by the application.

 

 

Similar Threads

  1. Let's understand Data Adapter
    By awadkab in forum Adapter APIs
    Replies: 3
    Last Post: February 23rd, 2012, 08:28 PM
  2. JDBC Data Adapter [Java]
    By Alessandro in forum Adapter APIs
    Replies: 0
    Last Post: January 27th, 2012, 03:56 PM
  3. Replies: 4
    Last Post: October 24th, 2011, 09:33 AM
  4. How to create Data Adapter?
    By Hanumant in forum Adapter APIs
    Replies: 3
    Last Post: January 29th, 2008, 03:42 PM
  5. INTERACTIONDEMO Data Adapter?
    By naxelrod in forum General
    Replies: 1
    Last Post: October 16th, 2007, 05:42 PM

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:09 PM.