7 Replies Latest reply on Sep 26, 2010 3:28 AM by lvdberg

    Remoting, first call good, second call bad!

    notify
      I am using jboss-seam-2.2.0.GA under Windows 7.

      The remoting has been working fine for months, I can call an EJB 3.x Session Bean from within JavaScript.

      I now have the need to add a second remote all to the same Session Bean. I have added the @WebRemote tag in the interface to this method, as I did before. But I can't my XHTML file to call this second method from within the JavaScript.

      <CODE>
      function addListener() {
                  google.maps.event.addListener(NOTiFYPiNPOINTmap, 'click', function(event) {
                      if (event.latLng) {  
                          _latitude = event.latLng.lat();
                          _longitude = event.latLng.lng();

                          alert('addListener event.latLng = ' + event.latLng.lat() + ' ' + event.latLng.lng());
                          Seam.Component.getInstance("googleGeoCodingBean").getGoogleMapsReverseGeoCodeAddress(_latitude, _longitude, locationCallBack); // WORKS
                      }
                  });
              }

      function locationCallBack(result) {
                  //alert('locationCallBack _latitude = ' + _latitude + ' _longitude = ' + _longitude);
                  if (confirm("Photograph's Location is " + '\n' + result)) {
                       alert('locationCallBack result = ' + result); // APPEARS OKAY

                       Seam.Component.getInstance("googleGeoCodingBean").getPhotographs(fileSizeCallBack); // NEVER GETS CALLED
                  }
              }
      </CODE>

      Any suggestions?