vished2000
vished2000

Reputation: 148

JAVA EE Application server in Desktop app?

I´m currently looking for a solution to write a JSF application inside a Desktop app. I think I can use:

I found the following solution with Tomcat: https://www.beyondjava.net/how-to-wrap-bootsfaces-or-jsf-in-general-as-a-native-desktop-application

This is exactly which I would like to have. The only problem is, that Tomcat needs approx. 20 seconds to start. Is there any other Application server which I can integrate like this in the Main class which will start than the Web application inside the SWING Gui?

Many thanks

Upvotes: 1

Views: 150

Answers (1)

Forketyfork
Forketyfork

Reputation: 7810

In general, putting a full-fledged JavaEE application inside of a desktop application is a bad idea. You have only one user working on a local machine, and the JavaEE platform is intended to be used in a concurrent environment to process multiple parallel requests coming from different clients over the Internet. A lot of facilities and trade-offs inside the JavaEE platform are implemented to support this. Using it to serve a single user on their local machine is like hammering nails with a microscope.

This is also a clear contradiction between your goal (quick startup of the desktop application) and trade-offs of a JavaEE application (the startup time doesn't really matter so much, as restarts happen rarely).

It's also worth to say that Tomcat is not a JavaEE server, as it doesn't provide the full JavaEE implementation. Although you definitely can run JSF applications on it by providing a JSF implementation inside the application itself.

If you really want to proceed, you could take a look at jetty as a somewhat faster alternative to Tomcat.

Upvotes: 2

Related Questions