There are 2 GWT module with respective entry points and host page : Module A and Module B.
There is one common module with no entry point : Module C.
Module A sets a string value in Module C, say moduleC.setName("xyz").
Module B wants to get the value. say moduleC.getName();
On doing above the value Module B is getting is always null not the value set by module A.
Common module is packaged as jar and inherited in other two modules. what am I doing wrong?
They have own copy of module C.
Module A includes common.jar in its build.xml and inherts common in gwt.xml file.
Similar is the case for moduleB.
How can I make both these module access the update field in common?
Are your modules hosted on the same server? If yes, you can consider an approach where the module would persist the value in some shared location. But you lose this facility if you host them across different servers. Thats why I suggested the servlet approach.
You keep asking for alternatives. Maybe it's time you explained what is wrong with the suggestions you have received till now
Joined: Jun 17, 2013
alright, servlet option is not suitable for us as we are not using a java container on web server (it is in place to route the async call to c++ backend).
Hence, I asked for an approach where 2 GWT modules can share the same copy of common. This question clicked me from your 1st question "So do A and B share the same jar for module C or do they have their own copy? "