Put RESTful WS project in production

2

I'm a beginner in Java and these .jar, .war, etc businesses are new to me. I made my first RESTful Webservice project and added 2 * .jars, Gson and JDBC.postgres.

I want to put it into production (on a server that will be Tomcat ) to use it from other application (s). How to proceed?

It is a java web project and contains only one connection class, one entity class and the restful webservice class from the standards. It was developed in Netbeans 8.0. And I did not use Maven, which I do not know what it is, as I said it's noob in Java.

    
asked by anonymous 02.10.2014 / 13:28

1 answer

1

Dude, I do not know if this can help, but there is a tutorial where I explain how to have a webservice project (json) in a java project, using Maven. The tutorial also explains how to configure Tomcat and the database connection with Hibernate (database access framework that makes communication very easy).

What is Maven?

A brief explanation to get you started on what Maven is, I will not go into too much detail. Think you need a JAR in your project, which is your case, Maven is responsible for downloading this JAR for you and packaging in your project, it runs your tests, generates your WAR, among other things that I will not to deepen.

It starts with the basics of it, it's good for you to enter the Java world, today Maven is widely used in the market.

In your case as you are beginning, think of it only to download the JARs and all the dependencies that your JAR needs.

Follow: link

    
15.10.2014 / 04:26