Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server side Java - where to start [closed]

Tags:

java

server

I'm really starting to get a hang of the client-side Java programming, and from what I understand Java is great for developing stable server sides for large amounts of traffic.

The problem is that I'm completely new to server development, so I don't know where to start or where to look for information, despite Java's good documentation.

More specific questions:

  • Do you know any good, non-specific tutorials for server-side Java? I've seen some tutorials for Google's Cloud Platform and Netscape, but I don't want to be dependent on their infrastructure.
  • Is the common practice to develop your code in Eclipse and then "ship" it to your server? As I said I've never done server-side development and I've only tried learning a little node.js.

Thank you in advance, I hope these questions aren't to wide-scoped.

like image 805
joseph Avatar asked Apr 09 '15 22:04

joseph


People also ask

How do I use server-side in Java?

This can be done from the Server Manager under "Programs -> Java." Click the Yes button to enable the Java interpreter. The Server Manager will ask you for a "Java applet directory," which is the place to put the SSA support files as well as the location for all SSA class files. It provides a default location.

Where is the start of a Java program?

public static void main(String args[]) − Java program processing starts from the main() method which is a mandatory part of every Java program.

What is Java server development?

Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based applications. JSP have access to the entire family of Java APIs, including the JDBC API to access enterprise databases.


2 Answers

I would suggest you to start with a simple setup like you already told us: Eclipse + let's say an easy to use tomcat.

If it comes to the server side you need to create a Servlet which allows to access other application data from your server in a format which you define or let's say you + the clients define. I would suggest you to start with something you will be familiar like Json. For this I have a little "starting point" for you.

Clone that simple example for a server-side application: https://github.com/DominikAngerer/java-GsonJerseyProvider It already provides you a simple structure for Json which is used by a Framework like Ember and also you can easy modify the structure which is defined there.

Is the common practice to develop your code in Eclipse and then "ship" it to your server?

Yeah it's totally common to do that. Write your Server Side code and export it as .war - tomcat or jetty for example can simply deploy them and you will be able to run them on these application server.

Do you know any good, non-specific tutorials for server-side Java? I've seen some tutorials for Google's Cloud Platform and Netscape, but I don't want to be dependent on their infrastructure.

I really love to work with Jersey - It's really a to understand the code you will write. Maybe try the example provided by IBM developersworks: http://www.ibm.com/developerworks/library/wa-aj-tomcat/

For the beginning it may be a little of a overhead but after you tried the example (it should be running right away) I think you will get the idea of how to create a simple backend system with java.

like image 171
DominikAngerer Avatar answered Sep 20 '22 08:09

DominikAngerer


If you want a complete environment out of the box, you can try:

  • Netbeans EE IDE: It contains a GlassFish server and the SDK preconfigured, glasfish is one of the most used open source application servers. Here you can find tutorials from the Netbeans page.

  • JBoss Developer Studio: is another very used IDE that includes a JBoss server. You can find tutorials from this one here.

I would sugest to start with GlassFish, as it is very easy to use and configure.

like image 43
Alberto Vazquez Avatar answered Sep 19 '22 08:09

Alberto Vazquez