-
January 12th, 2017, 10:59 AM
#1
Developing and Running Adapter Set Using IntelliJ IDEA [Java]
Follow these instructions for developing and running an Adapter Set using IntelliJ IDEA- Create a new Java Project
- Add the ls-bootstrap.jar and ls-adapter-interface.jar files taken from <lightstreamer_install_dir>/lib to the Dependencies
- Develop the custom Adapter Set (see docs)
- Create a new folder into <lightstreamer_install_dir>/adapters, for example my_adapter
- Create the adapters.xml file into <lightstreamer_install_dir>/adapters/my_adapter folder, in which you specify the class names for your Metadata and Data Adapters (see inline documentation under <lightstreamer_install_dir>/DOCS-SDKs/sdk_adapter_java_inprocess/doc/adapter_conf_template/adapters.xml file)
- If the Adapter leans on any external libraries, add them to the project libraries as well (in the final deployment you will have to put them under <lightstreamer_install_dir>/adapters/my_adapter/lib)
- From File -> Settings->Appearance & Behaviour->Path Variables, define the new variable LS_HOME with the absolute path of the Lightstreamer Server installation directory (<lightstreamer_install_dir>)
- Create a new Java application configuration (from the main menu, select Run->Edit Configurations... ), with the following settings:
- Main class: com.lightstreamer.LS
- VM Arguments:
Code:
-Xmx2048M
-ea
-Dcom.lightstreamer.kernel_lib_path=$LS_HOME$/lib/lightstreamer.jar
-Dcom.lightstreamer.internal_lib_path="$LS_HOME$/lib/ls-monitor.jar";"$LS_HOME$/lib/core/*";"$LS_HOME$/lib/mpn/*";"$LS_HOME$/lib/mpn/apns/*";"$LS_HOME$/lib/mpn/gcm/*"
-Dcom.lightstreamer.logging_lib_path="$LS_HOME$/lib/ls-logging-utilities.jar";"$LS_HOME$/lib/log/*"
-Dcom.lightstreamer.database_lib_path="$LS_HOME$/lib/mpn/hibernate/*";$LS_HOME$/lib/lightstreamer.jar
- Program Arguments: conf/lightstreamer_conf.xml
- Working Directory: $LS_HOME
Configure the -Xmx value as per your requirement.
In addition, pay attention to the path separator, which has to be replaced by ":" in case of unix-like machines.
After that, save the configuration (click on Apply button) and run it to execute the customer
Adapter Set inside the Lightstreamer Server instance. For debugging, simply launch the configuration through the Debug button.
Similar Threads
-
By gianluca.finocchiaro in forum Adapter SDKs
Replies: 26
Last Post: July 8th, 2019, 12:10 PM
-
By Priyanka in forum Adapter SDKs
Replies: 6
Last Post: May 3rd, 2016, 04:12 PM
-
By lizamare in forum Adapter SDKs
Replies: 1
Last Post: April 17th, 2015, 09:59 AM
-
By Alessandro in forum Adapter SDKs
Replies: 4
Last Post: October 24th, 2011, 09:33 AM
-
By msgiribabu in forum Adapter SDKs
Replies: 2
Last Post: January 31st, 2011, 11:32 AM
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 05:00 AM.
Bookmarks