Stand-alone Client Application

I have a stand-alone Java application, written on the NetBeans Platform that uses a payara server for connections with databases, JMS, JavaMail, etc. In the process of migrating to newer versions of Java/Jakarta, I am looking for help with the client aspect of the application. I have been using payara-embedded-all as a means of accomplishing this, but I had thought that I didn’t need so much complexity and size for a client-side application. I tried to use payara-client as a means to accomplish this, but I find that I am missing so many dependencies that for the time being I have resorted to using the payara-embedded-all.jar again. Can anyone provide some insight as to how I would go about using the payara-client.jar to provide all of the functionality I need. What is missing in terms of dependencies when going this route?
TIA,
Kevin

Hi @kpenrose

When copying the downloaded application client to another location, it’s important to include all JAR files containing dependent classes. This ensures the client has everything it needs to run without errors.

A reliable way to do this is by using the asadmin get-client-stubs command. This command retrieves the application client JAR along with all associated application JARs required to run it, such as stubs, tied classes, and other dependencies, and copies them into the specified directory.

You can find detailed information in our documentation here: Developing Java Clients

Best regards,
Susan