-
February 16th, 2023, 11:12 AM
#1
Hi Giuseppe
I just wanted to make things clear to you that I want to run my project using lightstreamer where I want to use maven to build my project and upon building i want use the lightstreamer remotely if the project can trigger the server client request using lightstreamer remotely.
If u know how to setup the lightstramer server within the server and upon running the project the lightstreamer server goes online please let me know about the configuration and commands.
Regards,
Vinayak singh
-
February 16th, 2023, 12:04 PM
#2
Hi Vinayak Singh,
A typical deployment scenario of an application that uses Lightstreamer for real-time data is the one shown here:
https://github.com/Lightstreamer/Lig...t-architecture
The Lightstreamer server is placed in a wider architecture and generally interacts with system, network, etc. components. which can be the most varied from case to case.
In particular, as regards the development of code, an integrator must develop both server-side components, a Data Adapter that will interface with the data source from the back-end and the Metadata Adapter that will interface with the authentication and authorization systems.
And client side components integrating Lightstreamer client libraries available in data applications that want to consume real-time data.
Furthermore, the Lightstreamer server must be configured according to the type of architecture present; for example if it has to manage the TLS directly or there is an offloading mechanism, if there is a cluster of multiple instances or just one, ...
So, there are no standard mechanisms that perform configuration and deployment of the Lightstreamer server; but they must be customized and integrated according to the existing scenario.
Regards,
Giuseppe
-
February 20th, 2023, 06:54 AM
#3
Hi Giuseppe
I just wanted to know that the HelloWorld java project of lightstreamer, can i use maven and build it and if so then how is it possible to directly
build it and run it without starting the server manually but starting it locally on the localhost port 8080?
Here;s the link to java server - https://github.com/Lightstreamer/Lig...d-adapter-java
And for the client side - https://github.com/Lightstreamer/Lig...ent-javascript
Regards
Vinayak
-
February 20th, 2023, 09:40 AM
#4
Hi Vinayak,
With the pom file provided in the Helloworld Java project you can only build the jar of the demo: mvn package.
In order to deploy your jar and run the demo you have to follow the install instructions provided in the section: https://github.com/Lightstreamer/Lig...r-java#install
To automate the steps necessary to update the demo, basically just copy the jar obtained under the <LS_HOME>/adapters/HellowWorld/lib folder and launch the Lightstreamer server you have several alternatives.
For example, you could create your own script that performs these operations which could also be called directly from maven with the exec plugin.
Regards,
Giuseppe
-
February 21st, 2023, 05:58 AM
#5
Hi Giuseppe,
On the Helloworld Java lightstreamer project when i am building it using maven by typing "mvn package".It is building the target folder. But on running the jar fil created in it.It is showing "no main manifest attribute, in example-helloworld-adapter-java-0.0.1-SNAPSHOT.jar".
It is not creating the MANIFEST.MF file by itself. Is there a issue with the pom.xml? Please assist me building this project with maven and running it.
I am using maven 3.8.1 and java jdk 17 on my pc.
Regards
Vinayak
Last edited by vinayak singh; February 21st, 2023 at 08:31 AM.
-
February 21st, 2023, 09:23 AM
#6
Hi Vinayak,
The "Hello World Tutorial - Java Adapter" project target is to create an In-process Data Adapter.
This type of adapters do not provide the possibility of being launched as stand alone applications, but to be deployed onto a Lightstreamer server and run within the same process as the Java Virtual Machine running the Lightstreamer Server.
For this reason it makes no sense to set-up a pom file in order to create a jar with the manifest and the startup class, designed to be launched as a stand-alone program.
Please let me stress out that this kind of adapter must be deployed by creating a special folder inside the 'LS_HOME/adapters' in which to copy a configuration file (adapters.xml) alongside all the various jars needed by the adapter.
Then it will be necessary to launch the Lightstreamer server which in turn will start up all the adapters set.
Please note that there is another type of adapter, called Remote adapters.
These actually have to be launched autonomously and separately from the Lightstreamer server. For more details about these adapters you can start looking here: https://cdn.lightstreamer.com/distro...astructure.pdf
Regards,
Giuseppe
-
February 21st, 2023, 10:16 AM
#7
Hi Giuseppe,
Is there any application or project in java that can be launched as a stand-alone application using maven without initiating the lightstreamer server manually?
I just want to test an application remotely without starting the lightstreamer server.
Thankyou for your patience.
Regards
Vinayak
-
February 21st, 2023, 11:47 AM
#8
Hi Giuseppe
Is there any application/project in java having the probability of running as a stand-alone application.?
Just willing to explore the stand-alone applications running remotely on lightstreamer server.
Thank you for the information shared so far.
Regards
Vinayak
Similar Threads
-
By hakankecelioglu in forum General
Replies: 1
Last Post: May 21st, 2015, 09:48 AM
-
By msgiribabu in forum General
Replies: 3
Last Post: January 24th, 2011, 08:48 AM
-
Replies: 1
Last Post: November 19th, 2010, 11:41 AM
-
By chenxun in forum Client SDKs
Replies: 1
Last Post: July 1st, 2010, 02:51 PM
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 06:12 AM.
Bookmarks