@Override
protected OpenBookService doInBackground() throws Exception {
Map<String, Object> runtimeConfig = new HashMap<String, Object>();
runtimeConfig.put("openjpa.jdbc.JDBCListeners", new JDBCListener[]{_sqlListener});
OpenBookService service = ServiceFactory.getService(unitName, runtimeConfig);
service.initialize(null);
return service;
}
};
getService.execute();