Results 1 to 10 of 13

Hybrid View

  1. #1
    Hi alessandro,

    If i want to write the adapters.xml file for this project how will it be like? Can u provide a reference for it? Will i be needing <metadataprovider> for this code as metadataprovider is not used

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Vinayak Singh,

    For such a simple example like HelloWorld, the configuration file of the AdapterSet is equally simple, and you can find it described here: https://github.com/Lightstreamer/Lig...-configuration
    In fact, the adapters.xml file can be completely identical to the one from the Java project from which the above extension is derived.

    But please let me to add two considerations.

    The first one is that one (and only one) Metadata Adapter is mandatory for each Adapter Set. In fact, every client request, whether it's for opening a client session, subscribing or unsubscribing to items, or sending messages, is subject to authentication and/or authorization by the Metadata Adapter.
    For this reason, in order to make examples like this one simpler, we have developed a simple full implementation of Metadata Adapter in Java, LiteralBasedProvider, made available as sample for inspiration and/or extension and enbedded in the Lightstreamer Java Adapter libraries.
    Please refer here for more details: https://github.com/Lightstreamer/Lig...tadata-adapter

    The second one is that since this example adds a connection to the database from which to retrieve messages to send to clients, it would be a natural extension to add configurations to avoid hardcoding all the parameters of the database connection string in the code.
    For example you could add to the <data_provider> section something like these:

    <param name="db_hostname">localhost</param>
    <param name="db_user">root</param>
    <param name="db_password">xxx</param>
    <param name="jdbc_driver">com.mysql.jdbc.Driver</param>


    And any other parameter that you deem necessary, such as table names or column names, etc.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. JDBC Integrated Security Authentication DLL
    By zschmidt in forum Adapter SDKs
    Replies: 2
    Last Post: April 30th, 2014, 04:14 PM
  2. Passing data dynamicatlly to Java Data Adapter via
    By V S Suresh in forum Adapter SDKs
    Replies: 2
    Last Post: October 25th, 2012, 08:11 AM
  3. Replies: 4
    Last Post: October 24th, 2011, 09:33 AM
  4. Replies: 1
    Last Post: May 21st, 2009, 09:41 AM
  5. error jdbc Orcale
    By khalil78 in forum Adapter SDKs
    Replies: 2
    Last Post: April 22nd, 2008, 11:46 AM

Tags for this Thread

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