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
Configuration flag for periodic flush of the snapshot.
85
73
Default: false. -->
@@ -100,6 +88,7 @@ You can easily expand your configurations using the generic template, `DOCS-SDKs
100
88
<br>
101
89
Please refer [here](https://lightstreamer.com/docs/ls-server/latest/General%20Concepts.pdf) for more details about Lightstreamer Adapters.
102
90
91
+
103
92
## Install
104
93
If you want to install a version of this demo in your local Lightstreamer Server, follow these steps:
105
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.
@@ -108,21 +97,21 @@ If you want to install a version of this demo in your local Lightstreamer Server
108
97
* Launch Lightstreamer Server.
109
98
* Test the Adapter, launching one of the clients listed in [Clients Using This Adapter](https://github.com/Lightstreamer/Lightstreamer-example-Chat-adapter-java#clients-using-this-adapter).
110
99
100
+
111
101
## Build
112
-
To build your own version of `LS_chat_metadata_adapter.jar` and `LS_chat_data_adapter.jar`, instead of using the one provided in the `deploy.zip` file from the [Install](https://github.com/Lightstreamer/Lightstreamer-example-Chat-adapter-java#install) section above, follow these steps:
113
-
* Clone this project.
114
-
* Get the `ls-adapter-interface.jar` file from the [latest Lightstreamer distribution](http://www.lightstreamer.com/download), and copy it into the `lib` folder.
115
-
* 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.
116
-
* Create the jars `LS_chat_metadata_adapter.jar` and `LS_chat_data_adapter.jar` created for something like these commands:
> jar cvf LS_chat_metadata_adapter.jar -C tmp_classes/metadata .
123
-
```
124
-
* Stop Lightstreamer Server; copy the just compiled LS_chat_metadata_adapter.jar in the adapters/Chat/lib folder of your Lightstreamer Server installation; restart Lightstreamer Server.
125
102
103
+
To build your own version of `example-Chat-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-Chat-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
114
+
```
126
115
## See Also
127
116
128
117
### Clients Using This Adapter
@@ -142,5 +131,6 @@ To build your own version of `LS_chat_metadata_adapter.jar` and `LS_chat_data_ad
142
131
143
132
## Lightstreamer Compatibility Notes
144
133
145
-
* Compatible with Lightstreamer SDK for Java In-Process Adapters since 6.0
134
+
- Compatible with Lightstreamer SDK for Java In-Process Adapters since 7.3.
135
+
- For a version of this example compatible with Lightstreamer SDK for Java In-Process Adapters version6.0, please refer to [this tag](https://github.com/Lightstreamer/Lightstreamer-example-Chat-adapter-java/releases/tag/pre_mvn).
146
136
- 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-Chat-adapter-java/releases/tag/for_Lightstreamer_5.1.2).
0 commit comments