I am working on a GWT project and naturally need to get some configuration and connect to external resources/objects/systems somewhere. My GWT application interface only has two methods.
There are two ways I can setup my application: - Overriding the init in the GWT servlet and required code there and keeping all constructed objects inside that same servlet. - Having an initialisation servlet and using its init() to do the work. Then storing created objects in ServletContext to share it with my GWT-Servlet.
MY questions: Which out of above is better approach? Is there any better way to share objects between servlets? Calling them directly from one another or so...?