Results 1 to 9 of 9

Hybrid View

  1. #1
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Yes of course,
    all you have to do is to implement your own MetaDataprovider (maybe extending an existing one) instead of using the LiteralBasedProvider.

  2. #2
    Member
    Join Date
    Nov 2006
    Location
    Rio de Janeiro
    Posts
    13
    I was looking FileBasedProvider.java 's code and it extends LiteralBasedProvider

    If i want to implement my own MetaDataProvider, i must do the same? Extends .NET's LiteralBasedProvider? Or i just need to extends MetadataProviderAdapter class?

    Can i have more then one "Stream Source" (i don't know the real name... ) in tha same page? For exemple, quotes of a stocklist is one "Stream Source". Can i have another "Stream Source", News, for exemple?

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    In order to write your own Metadata Adapter, you can choose among a number of options:

    1. directly implement the MetadataProvider interface
    2. extend the MetadataProviderAdapter class (which implements the MetadataProvider interface)
    3. extend the LiteralBasedProvider or FilelBasedProvider classes (which extend the MetadataProviderAdapter class)

    It's all a matter of hierarchy and inheritance.

    Regarding having multiple data sources, if they are destined to deliver data to different client sessions, then you can plug multiple Data Adapters into Lightstreamer Server. On the other hand, if you need to deliver the data coming from different data sources to the same client session, then you need to write a single Data Adapter that accesses all of the feeds. Mixing different Data Adapters in the same client session is not supported yet.

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521

 

 

Similar Threads

  1. Get data specific to each User by passing parameters
    By leonardodar in forum Adapter SDKs
    Replies: 3
    Last Post: March 16th, 2011, 09:45 AM
  2. Replies: 2
    Last Post: February 9th, 2010, 02:50 PM
  3. User specific data example
    By zeos in forum Adapter SDKs
    Replies: 1
    Last Post: January 28th, 2010, 09:41 AM
  4. General data and User specific data
    By mnenchev in forum Adapter SDKs
    Replies: 5
    Last Post: September 1st, 2009, 09:36 AM
  5. User Specific Response
    By vishnugs in forum General
    Replies: 4
    Last Post: April 6th, 2007, 11:06 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 07:08 AM.