package test;

import java.util.HashMap;
import java.util.Map;

import com.pugwoo.hessoa.client.SOAClient;
import com.pugwoo.hessoa.test.api.entity.UserDO;
import com.pugwoo.hessoa.test.api.service.ISchoolService;
import com.pugwoo.hessoa.test.api.service.IUserService;

import test.dto.UserVO;

public class TestClient2 {
	
	public static void main(String[] args) throws Exception {
		IUserService userService = SOAClient.getService(IUserService.class);
		ISchoolService schoolService = SOAClient.getService(ISchoolService.class);
		
		System.out.println("userService:" + userService);
		System.out.println("schoolService:" + schoolService);
		
		UserVO userVO = new UserVO();
		userVO.setName("nick");
		userVO.setScore(99);
		userVO.setMything("mmm");
		
		Map<Object, UserDO> map = new HashMap<Object, UserDO>();
		map.put("nick", userVO);
		map.put(1, userVO);
		
		for(int i = 0; i < 1000; i++) {
			String result = userService.insert(map);
			System.out.println(i + ":" + result);
			Thread.sleep(1000);
		}
		
	}
	
}

package test;

import java.util.HashMap;
import java.util.Map;

import com.pugwoo.hessoa.client.SOAClient;
import com.pugwoo.hessoa.test.api.entity.UserDO;
import com.pugwoo.hessoa.test.api.service.ISchoolService;
import com.pugwoo.hessoa.test.api.service.IUserService;

import test.dto.UserVO;

public class TestClient2 {
	
	public static void main(String[] args) throws Exception {
		IUserService userService = SOAClient.getService(IUserService.class);
		ISchoolService schoolService = SOAClient.getService(ISchoolService.class);
		
		System.out.println("userService:" + userService);
		System.out.println("schoolService:" + schoolService);
		
		UserVO userVO = new UserVO();
		userVO.setName("nick");
		userVO.setScore(99);
		userVO.setMything("mmm");
		
		Map<Object, UserDO> map = new HashMap<Object, UserDO>();
		map.put("nick", userVO);
		map.put(1, userVO);
		
		for(int i = 0; i < 10000; i++) {
			try {
				String result = userService.insert(map);
				System.out.println(i + ":" + result);
				Thread.sleep(10);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		
	}
	
}

test it