1 package org.opensrf.test;
3 import org.opensrf.util.*;
5 public class TestMultiSession {
6 public static void main(String[] args) {
8 String config = args[0];
10 Sys.bootstrapClient(config, "/config/opensrf");
11 MultiSession ses = new MultiSession();
13 for(int i = 0; i < 40; i++) {
14 ses.request("opensrf.settings", "opensrf.system.time");
17 while(!ses.isComplete())
18 System.out.println("result = " + ses.recv(5000) + " and id = " + ses.lastId());
20 System.out.println("done");
22 } catch(Exception e) {