You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -96,29 +93,24 @@ If you want to install a version of the *RSS News Demo* in your local Lightstrea
96
93
97
94
* Download *Lightstreamer Server* (Lightstreamer Server comes with a free non-expiring demo license for 20 connected users) from [Lightstreamer Download page](http://www.lightstreamer.com/download.htm), and install it, as explained in the `GETTING_STARTED.TXT` file in the installation home directory.
98
95
* Make sure that Lightstreamer Server is not running.
99
-
* Get the `deploy.zip` file of the [latest release](https://github.com/Lightstreamer/Lightstreamer-example-RSS-adapter-java/releases), unzip it, and copy the `RSS` folder into the `adapters` folder of your Lightstreamer Server installation.
96
+
* Get the `deploy.zip` file of the [latest release](https://github.com/Lightstreamer/Lightstreamer-example-RSS-adapter-java/releases), unzip it, and copy the `RSSDemo` folder into the `adapters` folder of your Lightstreamer Server installation.
97
+
*[Optional] Customize the logging settings in log4j configuration file: `RSSDemo/classes/log4j2.xml`.
100
98
* Launch Lightstreamer Server.
101
99
* Test the Adapter, launching the [Lightstreamer - RSS News Demo - HTML Client](https://github.com/Lightstreamer/Lightstreamer-example-RSS-client-javascript) listed in [Clients Using This Adapter](https://github.com/Lightstreamer/Lightstreamer-example-RSS-adapter-java#client-using-this-adapter).
102
100
103
101
## Build
104
102
105
-
To build your own version of `LS_rss_reader.jar`, `LS_rss_data_adapter.jar`, and `LS_rss_metadata_adapter.jar`, instead of using the one provided in the `deploy.zip` file from the [Install](https://github.com/Lightstreamer/Lightstreamer-example-RSS-adapter-java#install) section above, follow these steps:
106
-
107
-
* Download this project.
108
-
* Get the `ls-adapter-interface.jar` file from the [latest Lightstreamer distribution](http://www.lightstreamer.com/download), and copy it into the `lib` folder.
109
-
* Get the `log4j-1.2.17.jar` file from [Apache log4j](https://logging.apache.org/log4j/1.2/) and copy it into the `lib` folder.
110
-
* Get the `informa.jar` and `jdom.jar` files from the [News Aggregation Library for Java download](http://sourceforge.net/projects/informa/), and copy it into the `lib` folder.
111
-
* Get the `commons-logging.jar` file from [Apache commons](http://commons.apache.org/proper/commons-logging/download_logging.cgi), and copy it into the `lib` folder.
112
-
* Create the jars `LS_rss_reader.jar`, `LS_rss_data_adapter.jar`, and `LS_rss_metadata_adapter.jar` with commands like these:
> jar cvf LS_rss_metadata_adapter.jar -C tmp_classes/metadata .
103
+
To build your own version of `example-RSS-adapter-java-0.0.1-SNAPSHOT.jar` instead of using the one provided in the `deploy.zip` file from the [Install](https://github.com/Lightstreamer/Lightstreamer-example-RSS-adapter-java#install) section above, you have two options:
104
+
either use [Maven](https://maven.apache.org/) (or other build tools) to take care of dependencies and building (recommended) or gather the necessary jars yourself and build it manually.
105
+
For the sake of simplicity only the Maven case is detailed here.
106
+
107
+
### Maven
108
+
109
+
You can easily build and run this application using Maven through the pom.xml file located in the root folder of this project. As an alternative, you can use an alternative build tool (e.g. Gradle, Ivy, etc.) by converting the provided pom.xml file.
110
+
111
+
Assuming Maven is installed and available in your path you can build the demo by running
112
+
```sh
113
+
mvn install dependency:copy-dependencies
122
114
```
123
115
124
116
## See Also
@@ -136,5 +128,6 @@ To build your own version of `LS_rss_reader.jar`, `LS_rss_data_adapter.jar`, and
136
128
137
129
## Lightstreamer Compatibility Notes
138
130
139
-
* Compatible with Lightstreamer SDK for Java In-Process Adapters since 6.0
131
+
- Compatible with Lightstreamer SDK for Java In-Process Adapters since 7.3.
132
+
- For a version of this example compatible with Lightstreamer SDK for Java Adapters version 6.0, please refer to [this tag](https://github.com/Lightstreamer/Lightstreamer-example-RSS-adapter-java/tree/pre_mvn).
140
133
- For a version of this example compatible with Lightstreamer SDK for Java Adapters version 5.1, please refer to [this tag](https://github.com/Lightstreamer/Lightstreamer-example-RSS-adapter-java/tree/for_Lightstreamer_5.1).
0 commit comments