Answer the question
In order to leave comments, you need to log in
What technologies to use for learning javaEE?
In order to learn Java, I decided to write a Monopoly game project online.
Which of the java technologies is more suitable? The idea is to separate the server part and GUI as much as possible.
1. GUI - html5 + javascript. Once we gave the page to the user, all the rest of the communication happens with json or something else lightweight. It is necessary to somehow show the results of the move of one player to others. Maybe even Websockets?
2. Web server or even your own on netty? But then the question arises, how to exchange with gui, to form json by hand?
I'm looking at the Play framework, but I'm afraid that I can't learn Java with it, but only memorize it.
Answer the question
In order to leave comments, you need to log in
And I'm a fan of GWT.
Almost all the logic will be on the client, and on the server only the multiplayer processing itself, as I think.
Everything will work on Ajax.
What is Netty? Maybe jetty? Don't use the play framework if you want to learn j2ee, better use spring, most j2ee projects are done on it today. And there will be even more, because. VMWare bought this framework and will actively promote it, now they are making a cloud tailored for java and specifically for spring.
And I almost forgot - you also need to learn maven, a fairly popular system in j2ee for building projects.
Try to look in the direction of RestEasy services - there is a built-in API that generates javaScript that allows you to hurt services from anywhere (for example, by pressing a button). Very convenient entity exchange mechanism via Json/Xml. A convenient security mechanism that supports different options.
Without experience in such technologies it is difficult but possible.
Tip: learn from the examples provided by manufacturers while reading the documentation.
copy to yourself:
svn co resteasy.svn.sourceforge.net/svnroot/resteasy/tags/RESTEASY_2_2_1_GA/examples/
As for json, try some JAX-RS implementation. Java classes are mapped to json automatically.
Well, for the game, you have enough servlets for your eyes. If you need to do something in html, then look towards wicket or tapestry5, both support integration into spring.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question