I have a default GWT + app engine project. We get a GWT entry point by default.
Is it possible to create a second GWT entry point, one that is only loaded by html pages which are protected behind authentication?
For example, in my web.xml file, I've added:
<security-constraint>
<web-resource-collection>
<url-pattern>/myprivatestuff/*</url-pattern>
</web-resource-collection>
...
</security-constraint>
and my war folder in the app engine project:
/war/myprivatestuff/index.html
and I'd like the index.html file in there to load a different GWT module. I don't want the code from this second 'admin' module to be able to be loaded by the 'main/default' GWT module.
I'm afraid that GWT will compile all my clientside code into one monolithic javascript entity, combining both the general module, and the admin module, which would be a security problem.
Is is possible to build two modules in a single project, and have their compiled code live in different javascript output, and only load one behind this protected path?
Thanks