• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Run Tomcat in Linux Centos Virtual Box

 
Ranch Hand
Posts: 1397
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I would like to deploy a runnable Jar in a server that enables a VirtualCloudBox I would like to have Tomcat running in the server and then have access from the open internet to the app even when the virtual box is closed but the server still continues running.

I mean to use it as a hosting service.

Do you think it is a viable option?

 
Saloon Keeper
Posts: 21248
137
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what you mean by "the box is closed but the server is running". To me, the virtual box is the server, and "closed" means shut down, so absolutely no programs in the box can be running, since the box that contains them isn't running.
 
Angus Ferguson
Ranch Hand
Posts: 1397
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The server is running and with a client like X2Go the user can connect to the running server, yes when the client close the connection all the software close so the proposed strategy is not feasible.
 
Tim Holloway
Saloon Keeper
Posts: 21248
137
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
X2Go is to allow remote GUI access to a VM running X in a VirtualBox.

There are a lot of better ways to do this. For one thing, Tomcat doesn't need GUI at all.

In fact, if your VirtualBox is running CentOS, I don't even know what X2go is going to do for you. You would be far better off running Tomcat as a systemd service, which would launch Tomcat when the box was started and keep it running until the box was shut down.

You can do everything you need to do for Tomcat under CentOS using ordinary SSH without X.

Actually, X2Go is a remote user login, and like any remote user login, whether GUI or command line, any apps launched by that login will terminate when you log out. But you can avoid that by using screen or nohup. Although, as I said, a Tomcat server is better off being run as a system service rather than as a remote user app.
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!