开发者

Beginning GWT and Java - which is the best route when coming from LAMP background? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_如何学Python

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 2 years ago.

Improve this question

I've worked a lot with php/mysql on Linux servers, including frameworks, orm etc. Now I want to give GWT and Java a try!

Installing GWT SDK, Eclipse plugin etc and running a "Hello world" is no problem. The server is running automagically in the background, taken care of by Eclipse. But when it comes to setting it up my self, there seems to be confusingly many options. Jetty? Tomcat? Glassfish? How are those related/combinable to/with Apache?

Are there any good resources or tutorials for setting up java development and server environments suited for one like me with PHP background? Maybe pointing out the possibilities of running PHP and Java on the same server?


Jetty, Tomcat and Glassfish are all Servlet containers (well, Glassfish is much more but in the context of a GWT application, it is). They deal with running your GWT application's backend (the server endpoint of RPC calls).

What you call "Apache" is probably Apache's HTTP Server. Tomcat is also produced by Apache. It is not uncommon to want both running on the same server, with the HTTP Server serving up mainly static or non-Servlet content and Tomcat handling servlet requests. This seems to be a good lead: Tomcat-Apache HOWTO


Becoming more familiar with Java is always a good step - especially if your experience is only/mainly with PHP - while learning the syntax might not be that hard, the framework take a bit longer

GWT can be used purely on the client side of things if you want (i.e. only in the client browser - with other web frameworks running on the server) so replacing your PHP knowledge on the web server side is not required

A nice place to start (with setting up your environment) would be with Eclispe and the GWT plugin for it. This allows you to run your app from within Eclipse without having to setup a full application server or having to initially worry about stuff like Tomcat


I'd like to add something to the above answers - you don't need a Java server to work with GWT. It's only required if you use GWT-RPC for communication with server. If you want to use, say, JSON via PHP scripts, no problem - you can just use Apache/httpd for that.
Either way, I'd recommend using an external server over the one included with GWT, since it's a custom version of Jetty and from my experience it tends to get moody when it comes to some more advanced stuff.

Just my 2 cents :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜