/* * * Copyright(C) 2007 Information Services International-Dentsu, LTD. * */ package examples.flex.service; import java.util.Date; import java.util.Random; import org.seasar.flex2.rpc.remoting.service.annotation.RemotingService; /** * * * @author li1534 */ @RemotingService public class HogeService { // private Random rnd; /** * コンストラクタ。 */ public HogeService() { // rnd = new Random(); } public String echo1(String str) { // // int ran = rnd.nextInt(3); // ran = ran + 100; // // int j = 0; // for (int i = 0; i < ran; i++) { // j++; // } return new Date().toString() + "[method1]" + str; } public String echo2(String str) { // // int ran = rnd.nextInt(1); // ran = ran + 100; // // int j = 0; // for (int i = 0; i < ran; i++) { // j++; // } return new Date().toString() + "[method2]" + str; } }