Self-contained web-app

First of all, I LOVE Cuba. I’ve been able to get so much work done, and it’s all very stable.

One question… is there any way to make a web app double-clickable? I’m thinking of something self-contained such that when you double-click on the icon the web app opens in the default browser.

Any way to do this?
Thanks
Eric

Hi,

do you mean that you want to start the web server (and the database server?) or do you just want to open the browser?

Bye
Mario

My hope would be to start the web and database servers by double-clicking on the app. Essentially, this makes the web app usable as a desktop app.

Can this be done?
Thanks
Eric

Hi Eric,

In the current platform version (6.5) you can build your application as a set of UberJAR files - one for middleware and one for web client. In the upcoming release 6.6 you will be able to build a single UberJAR and then you will get what you want - a user can start the whole app with the embedded web server just by clicking on the desktop icon, because by default JAR files are associated with the java executable (at least on Windows).

In order to have the database also running together with the app, you can use in-process connection specified like the following: jdbc:hsqldb:file:testdb. Then you don’t need a separate DB server process.

Hi knstvk, kindly advise how do we define in-process connection
I try to write it down build.gradle file but nothing happened