Jack
Jack

Reputation: 3943

Can I write a GWT application together with my normal Java application?

I already have an Java application running on client site.

This application currently does not have any UI. What it does is just transforming data for the client behind the scene.

We need to regularly upgrade the application.


Now we would like to add a UI using GWT.

My question is

Can I include GWT directly into my current application, as a whole?

I mean, my current Java application start from main(). On client side, we just execute java Application (simply say). After we have our GWT part, we really want everything still the same. On client side, we don't need to let client or we ourselves install many new things.

So ideally, after we finish our GWT part, for client, still, our application is one application and the way to launch is only java Application

We don't want to tell client that we need a TomCat server to be seperately installed.

We don't want client feel troublesome and it seems now we need to maintain multiple packages, etc.

Upvotes: 0

Views: 70

Answers (1)

Olivier Tonglet
Olivier Tonglet

Reputation: 3492

You need a web-server to serve you GWT application, orelse it can not communicate with local Java app. As you run GWT-compiled Javascript in a browser, it can't access to your local machine resources.

It can be a Tomcat running on localHost or you could use Google App Engine. You can't run a GWT app like a Java Swing application.

But relax... Tomcat is not that troublesome and does not require more package that what is already in it.

Upvotes: 1

Related Questions