Results 1 to 3 of 3

Hybrid View

  1. #1
    Member
    Join Date
    Mar 2008
    Location
    istanbul
    Posts
    2

    DynaMetapushTable and Its Java Adapter

    Hi,
    I feel close but couldn't happen to pass this step:
    I've created a java adapter based on PorftolioDemo adapter example which polls a database and returns the records. Initially, it returns these records (which the client isn't aware of these items' names) successfully with "ADD" command to the table created as such below:
    var newTable = new DynaMetapushTable("spot", schema, "COMMAND");
    newTable.setSnapshotRequired(true);
    newTable.setPushedHtmlEnabled(false);
    newTable.setClearOnDisconnected(true);
    newTable.onChangingValues = updateItem;
    newTable.setMaxDynaRows("UNLIMITED");
    newTable.setMetapushFields(2, 1);
    newTable.setMetapushSort(5, true);

    "UPDATE" and "DELETE" commands also run on this metapushtable.
    However, I couldn't succeed one thing: if a new record is inserted to the database i try to push this record to the client with the "ADD" command using listener.update. And the client doesn't receive anything with the below warning coming from the adapter:
    < WARN> Unexpected update for item spot39

    Any advices are welcome and thanks in advance,
    Burak.

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

    the message < WARN> Unexpected update for item spot39 is shown when Lightstreamer server is feeded with an update for an item that is not subscribed to.
    Looking at your client code it seems that you subscribe to the spot item, not to the spot39 one. Do you change the item name in the MetaData adapter?
    If not, note that each update for a COMMAND subscription must be sent to the same item (spot) and spot39 should be just the value of the key field.
    In the other case, please, could you send us a server log showing the issue so that we can better understand what happens?

  3. #3
    Member
    Join Date
    Mar 2008
    Location
    istanbul
    Posts
    2

    Thanks

    thank you.. apparently that was it..

 

 

Similar Threads

  1. Newbie Java Remote Adapter question
    By webmons in forum Adapter SDKs
    Replies: 3
    Last Post: March 7th, 2013, 10:30 AM
  2. How to write my own stock list data adapter with java
    By pradeepgamage in forum General
    Replies: 1
    Last Post: January 9th, 2012, 12:39 PM
  3. Multithreading in Java Adapter
    By achittoda in forum Adapter SDKs
    Replies: 1
    Last Post: December 21st, 2009, 11:05 AM
  4. Replies: 1
    Last Post: May 21st, 2009, 10:41 AM
  5. Reset DynaMetapushTable
    By garyj in forum Adapter SDKs
    Replies: 1
    Last Post: March 25th, 2008, 10:03 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 11:46 AM.