Deploy the game as a war file into a servlet container, even if it uses JPA heavily?

I am new to the game, in fact, I am reading about it now, and what should I say ... Questions on questions. At the moment I am starting a project that relies on many special java libraries (hibernate-spaces, jts, etc.). Since it also needs to implement a comprehensive REST API, I had to choose between Django and the classic JavaEE Glassfish application.

But now I think that in the game I get the best of both worlds, and I really would like to dive deeper into it.

One of the features of the game, which I really can’t imagine, is to deploy the game applications as WAR files even in a simple servlet container like tomcat.

Is it right that if my game application uses the hibernate / hibernate-spaces JPA resilience level, can it still be deployed as a WAR file into a simple tomcat servlet container? Or do I need a JavaEE application server at least?

I can not believe this...

+5
source share
2 answers

You do not need a full Java EE server or even a separate servlet container like Tomcat. Play basically this is your own server! To be more precise, Play comes with JBoss Netty packages ... an embedded Java server that uses some of the same concepts as Node.js. If you used Django before, then the concept is very similar:

python manage.py runserver

Play PaaS (.. ), ​​ Heroku AppFog. , Play , Tomcat. ​​.

Play WAR, . Play 2.0 . , Play 2.1, , , .

WAR, . , - API Play 2.1 Tomcat 7 , .

, Play 2.1 ZIP , WAR . ZIP Play , .

+4

Play 2 war Play 2 War plugin. , . , , WAR- .

Play 2 . Play 2 - Java, HTTP- *, Java Servlet. - * , - , HTTP-, , Play 2.

, Play 2 Java. , Play 2 , Java EE, , Java . Hibernate ORM/ , , HTTP- (, Spring Web Security).

Django , , Java ​​ . , - Play , .

* ,

+7

All Articles