Search code examples
deploymentgoogle-app-engine

Google App Engine Deploy Only Jar File


I am beginner for Google App Engine.

I have simple java application with a class in which there is main method which executes some threads. Actually, it's Java application which is used to execute some back-end activities.

On my Linux server, i have created a cron job which executes this class at some specific time interval.

Now, I want to move this application to Google App Engine. I did search about that and what i find is i have to convert this java application to web application to deploy on GAE.

Please guide me how i can deploy JAR to GAE.

Thanks


Solution

  • Finally ! i figured out the solution without using Google App Engine and just using Google Compute Engine.

    I created a JAR and put it into my home folder using SFTP.

    After that i created a cron file at /etc/cron.d/myfile as below

    */10 * * * * myusername java -jar /home/myusername/myjar.jar
    

    Then i reload the crontab

    sudo service cron reload
    

    That's it ! Thanks for your input and interest !