i am recieving 314 fieldEntries instead of just ask and bid values when i am using Elekron-sdk1.2...

rkumar
rkumar Explorer
i am recieving 314 fieldEntries instead of just ask and bid values when i am using Elekron-sdk1.2.2.java. view example and testing it with canned test Data package

Best Answer

  • umer.nalla
    umer.nalla LSEG
    Answer ✓

    Hi @rkumar

    When you are testing with the canned Data package, your consumer is connecting to the sink_driven_src application.

    To use the View functionality you need to connect to an ADS which is the TREP / RMDS component which implements the view functionality and performs the field filtering.

    Note that even when connected to an ADS you should always code your application to ensure it can cope with occasionally receiving unwanted Fields. This is because the ADS may not always fulfil your View request - e.g. if it is very busy serving other consumers and filtering the fields for your consumer would negatively impact its performance - it may decide to ignore the View request and send you all the Fields in the Refresh or Update..