public class LocationAwareClientMessageBus extends ClientMessageBusImpl {
private static final Logger LOG = Logger.getLogger(LocationAwareClientMessageBus.class.getName());
@Override
public String getApplicationLocation(String serviceEntryPoint) {
Configuration configuration = GWT.create(Configuration.class);
if (configuration instanceof Configuration.NotSpecified) {
throw new IllegalArgumentException("you need to implement Configuration in order to point to the server location");
}
LOG.info("url end point " + configuration.getRemoteLocation());
return super.getApplicationLocation(serviceEntryPoint);
}