How to deploy a basic Java application

I am new to Java applications in a production environment and have never been deployed.

I have an application that connects to the mysql database, reads the data, processes some NLP and other data manipulations, and then saves the data back to the mysql database.

The application should be deployed to the rackspace cloud server and run every couple of hours (perhaps with a cron job?).

I was looking to use maven to create an assembly for deployment, but I have no idea if this is the right tool to use or to build .war or .jar. Any help pointing me in the right direction would be great! Thank!

+5
source share
2 answers

. Jar, ( - ). , , .

Maven, . , Maven , , .

+4

, Apache Ant script, . . unix script . script cronjob.

PS: , , , . :

  • cd /path/to/the/jar
  • cp xxx.jar /deployment/path/bin
  • crontab... .. ..
+1

All Articles