Search code examples
javawebservice

Web Service with Java


Hy !

I this project. Collect some data from a web site. Like name, email etc.. So I want to make a web service in Java, to collect this data and then insert it into a database.

My question is. After I make the web service, in eclipse. What should I have to do to make the web service automatically !? Without open the eclipse project. When a user insert his data, those information goes directly into the database. How can I make the project run at any time, without my intervention.

I only ask for guidance ! Thanks in advance


Solution

  • You can use the nohup command.

    nohup <commandToRunYourService> &

    This command is ignoring the hangup signal. So after that you can just use Ctrl+C to exit the command but your service will still be running