-
May 19th, 2023, 11:06 AM
#5
Certainly, since you have added parameters in the `<data_provider>` section, you will need to add code to read and use them. Therefore, in the `init` method of your Data Adapter, you will need to implement something similar to the following:
```java
public void init(Map params, File configDir) throws DataProviderException {
// Read the DB parameters
String db_host = (String) params.get("db_hostname");
String db_user = (String) params.get("db_user");
...
}
```
Once you have retrieved the configuration parameters, you can utilize them within the `init` method or store them as instance variables to be used in other methods of your Data Adapter.
Sorry but I am not sure what do you mean for "output in the Lightstreamer", if you refer to the log messages generated by Lightstreamer, including the logs related to the loading of adapters and client requests. You can find these logs in the <LS_HOME>/logs directory.
If you are looking for a web application that acts as a client for this adapter, you can refer to this project:
[Project Name: Lightstreamer - "Hello World" Tutorial - HTML Client]
[GitHub Repository: https://github.com/Lightstreamer/Lig...ent-javascript]
This web application can serve as a client for your adapter and provide an interface for the visualization of the data provided by the adapter. You can find more details and the necessary code in the provided GitHub repository.
Reagrds,
Giuseppe
Similar Threads
-
By zschmidt in forum Adapter SDKs
Replies: 2
Last Post: April 30th, 2014, 04:14 PM
-
By V S Suresh in forum Adapter SDKs
Replies: 2
Last Post: October 25th, 2012, 08:11 AM
-
By Alessandro in forum Adapter SDKs
Replies: 4
Last Post: October 24th, 2011, 09:33 AM
-
By k.mcc2009 in forum Adapter SDKs
Replies: 1
Last Post: May 21st, 2009, 09:41 AM
-
By khalil78 in forum Adapter SDKs
Replies: 2
Last Post: April 22nd, 2008, 11:46 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:33 AM.
Bookmarks