-
February 21st, 2023, 05:58 AM
#1
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
#2
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
#3
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:19 AM
#4
Hi Vinayak,
No, unfortunately at the moment there is no any example that launches contextually the server directly from maven.
As said in one of the previous posts, you should create a specific script to be then executed by a maven goal.
Regards,
Giuseppe
-
February 21st, 2023, 11:47 AM
#5
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
-
February 21st, 2023, 04:48 PM
#6
Hi Vinayak,
This is the project of a Remote Data Adapter the can be launched stand-alone via maven: https://github.com/Lightstreamer/Lig...er-java-remote
Code:
mvn exec:java -Dexec.args="-host localhost -metadata_rrport 6663 -data_rrport 6661 -data_notifport 6662"
But please note that requires a Lightstremer server up and running listening on the specified ports.
Regards,
Giuseppe
-
February 27th, 2023, 05:25 AM
#7
Hi Giuseppe,
Thank you for your response. I was just wondering if you have a specific script or any reference to that creation of script that can guide me to the maven goal?
Regards
Vinayak
-
February 27th, 2023, 09:37 AM
#8
Hi Vinayak,
No sorry, unfortunately we have no specific documentation.
You should rely on the official exec plugin documentation: https://www.mojohaus.org/exec-maven-plugin/index.html
But you can also find useful examples on stackoverflow, for example try looking at this thread: https://stackoverflow.com/questions/...mavens-pom-xml
Regards,
Giuseppe
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 10:50 PM.
Bookmarks