datasource only fetch

I would like to fetch some data from server, which are unrelated to any visible component. I tried to use datasource#fetchData(), but callback doesn’t seem to be called:

  DataSource logsDs = new DataSource();
    logsDs.setRecordXPath("/collection");
    DataSourceField itemField = new DataSourceField("item", FieldType.TEXT,  "item");  
    logsDs.setFields(itemField);
    logsDs.setDataURL("ds/test_data/logs.xml");
    logsDs.fetchData(null, new DSCallback(){

      public void execute(DSResponse response, Object rawData, DSRequest request) {
        htmlPane.setContents(htmlPane.getContents() + "callback");
      }});

How to fetch data from server without using any visual component?

DataSource.fetchData() is correct. If your callback isn’t being called, this indicates an error - open your Developer Console and look for warnings and/or in the RPC tab to see what the actual response was from the server.