This week's book giveaways are in the Jython/Python and Object-Oriented programming forums. We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line! See this thread and this one for details.
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.
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? "