Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7644437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:41:18+00:00 2026-05-31T09:41:18+00:00

I am working on a Java web app- it will use GWT for the

  • 0

I am working on a Java web app- it will use GWT for the front end.

I understand that for the package com.abc.xyz, client side code will be in com/abc/xyz/client, while server side code will be in com/abc/xyz/server

The same web app also has some purely java code, eg a listener which waits for new items to be added to a queue- the application should then process items in the queue.

This code is partly in the package com.abc.xyz, as well as in some other packages- com.qwerty.package and com.pqr.zzz

Am I correct in thinking that the above type of app can be created as a combination of GWT and Java code?

How do I arrange the code of the packages mentioned above, in my src folder.
Also, how do I get the final application- which consists of some pages created using GWT, as well as some purely server side code (like listeners)- will the entire generated code (consisting of JS/HTML from GWT and server side Java code used by GWT as well as pure Java code used by server side listener)- do I run it as web application under Google Menu in Eclipse? Will this automatically create the desired java war file correctly?

Also, I plan to use Smart GWT for the front end part- will this mean some change in the procedure when compared to pure GWT applications?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:41:19+00:00Added an answer on May 31, 2026 at 9:41 am

    Am I correct in thinking that the above type of app can be created as
    a combination of GWT and Java code?

    GWT is Java code, the client part will be compiled into Javascript. You can use any Java API in the services on the server side, in my current project I’m using among others Swing, JPA, Hibernate, Guice, log4j and access MongoDB and Mysql databases.

    How do I arrange the code of the packages mentioned above, in my src
    folder.

    This is my layout:

    src/main/java:
    org.foo.bar.client - GWT client code (activities, events, MVP, places, entry point class)
    org.foo.bar.controller - one Swing MVC Controller for my login page (I handle login outside of GWT at the moment)
    org.foo.bar.security - My Spring Security classes (Authentication Listener/Provider etc.)
    org.foo.bar.server.repository - Spring JPA repositories
    org.foo.bar.server.service - RPC services
    org.foo.bar.shared - domain classes (JPA entities), they are used both by the client and server
    src/main/resources:
    org/foo/bar/client/ - property files (constants and messages) for internationalization
    META-INF/persistence.xml - for JPA
    log4j - logging configuration
    

    do I run it as web application under Google Menu in Eclipse

    A GWT project generated in Eclipse contains a working ant build script that can create a war for you. You can then deploy it in your web container of preference like Tomcat, Jetty… However the compilation (the part that generates the client javascript) takes a long time so for testing use the GWT development mode in Eclipse – you’ll have to install a plugin for your web browser to take advantage of it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on building a java web app. I've been looking to use
I'm working on a web app project (in java; not that it matters) and
I'm working on a Java web application (Adobe Flex front-end, JPA/Hibernate/BlazeDS/Spring MVC backend) and
I am working to create a Java based web app that also has ability
I am working on a Java web app that uses Struts 2 with the
I'm working on a web service that will be accessed from an Android app.
I am working on a Java web app with unit tests that deploy the
I'm working on a Java based web app which will consist of a couple
I'm working on a project to convert an existing Java web application to use
All, I'm working on a java webapp that we deploy in the Resin web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.