Exemplo n.º 1
0
 public static void main(String[] args) throws ClientException {
   TestAsyncService tas = new TestAsyncService();
   NavajoClientFactory.getClient().setUsername("");
   NavajoClientFactory.getClient().setPassword("");
   NavajoClientFactory.getClient().setServerUrl("http://localhost:8080/navajo/KNZB");
   final Navajo n = NavajoClientFactory.getClient().doSimpleSend(null, "InitAsync");
   tas.test(n);
 }
Exemplo n.º 2
0
 @Override
 public void start(BundleContext bc) throws Exception {
   super.start(bc);
   NavajoClientFactory.setDefaultClient(new ApacheNavajoClientImpl());
 }
Exemplo n.º 3
0
 public TestAsyncService() {
   this.registry = new AsyncRegistryImpl();
   this.registry.setClientInterface(NavajoClientFactory.getClient());
 }
Exemplo n.º 4
0
 @Override
 public void shutdown() {
   NavajoClientFactory.resetClient();
   super.shutdown();
 }