title: How to communicate two modules in GWT
body: <p>I have created two module name module1 and module2 in gwt application. I want to pass message from module1 to module2 and module2 to module1 simultaneously after some seconds.
      I write the following code, but it gives me error unable to find module1.gwt.xml in classpath.</p>
  
  <pre><code>        public void onModuleLoad() {
                  mainBus.fireEvent(new PingEvent("-----Simulation Started-----"));
          }
  
          module1
  
          public void onModuleLoad() 
              {
                  GWTEventBus.mainBus.addHandler(PingEvent.TYPE, new PingEventHandler(){
                      public void onEvent(PingEvent event) {
                          System.out.print("Inside Ping --&gt; ");
                          new Timer(){
                              public void run() {
                                  GWTEventBus.mainBus.fireEvent(new PongEvent("Pong fired..."));
                              }
                          }.schedule(1000);
                      }
                  });
  
  
              }
          module2
          public void onModuleLoad() 
              {
                  //final SimpleEventBus mainBus = new SimpleEventBus();
                  GWTEventBus.mainBus.addHandler(PongEvent.TYPE, new PongEventHandler(){
                      public void onEvent(PongEvent event) {
                          System.out.print("Inside Pong1 --&gt; ");
                          new Timer(){
                              public void run() {
                                  GWTEventBus.mainBus.fireEvent(new PingEvent("Ping fired..."));
                              }
                          }.schedule(1000);
                      }
                  });
  
  
              }
  
      plz help me.
  </code></pre>