Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Nov 2006
    Location
    Riyadh
    Posts
    33

    How to get names of items subscribed by a user in meta adater ?

    Hi,

    In a Meta adapter, I need to know if a user is subscribing to a particular item (get all the items he subscribed to). For instance, in my scenario, a user uses lsClient.sendMessage() and in the meta adapter, I need to check an item is subscribed before processing this message.

    I thought about notifyNewTables() but the tables[] array contains not the items names but the table or group names which happen to be different.

    Any way thow to do that efficiently and possibly without having to translate table name to items in notifyNewTables() ?

    I think there are a lof of things that are sometimes needed in the context of the meta adapter, but there seems to be no API from the adapter to LS engine, only from LS engine to adapter. So a lot of info are not accessible out of the box (user susbcribed items, HTTP request properties like agent-name, source IP, etc)...

    Regards,
    A

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    Hi,

    Indeed, we kept the Metadata Adapter interface very small. In the "NotifyNewTables" case, we notify each client request as is and leave to the Metadata Adapter the burden of a redundant group name translation.

    About client identification details, note that Lightstreamer Server is meant to be used either with a rich client or (when a browser is involved) beside a regular Web Server.
    So, for now, you can try to take advantage of their capabilities in order to collect client information and share it with the Metadata Adapter.

    We keep this kind of feedback for planning our future extensions.

    Dario

 

 

Similar Threads

  1. How to limit the items a user can see
    By mikelear@cityindex.co.uk in forum Adapter SDKs
    Replies: 3
    Last Post: January 31st, 2011, 01:41 PM
  2. Replies: 1
    Last Post: August 10th, 2010, 11:33 AM
  3. GroupListDescriptor Item names cannot be empty
    By vaduganathan in forum Client SDKs
    Replies: 3
    Last Post: April 27th, 2010, 03:00 PM
  4. Java (Meta)DataAdapters
    By limeni in forum Adapter SDKs
    Replies: 6
    Last Post: February 6th, 2009, 09:58 AM
  5. Item Names cannot be empty
    By d.verzolini in forum Client SDKs
    Replies: 2
    Last Post: September 22nd, 2008, 11:34 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:10 AM.