因为,我这只是用datainputStream接收数据,然后发现。当从另外一个服务器用
URL url = ; URLConnection conn = ; DataOutputStream dos = ; DataInputStream dis = ; [] rspBytes = ([]); { String md5 = Md5.encryptMd5(xmlByte); [] byteDes = Des.encrypt3DES(md5.getBytes(), macKey); String strDes = Base64.encodeBase64(byteDes); url = URL((URL), httpUrl, ClientTimeoutHandler.getInstance(readTimeout)); conn = url.openConnection(); conn.setDoOutput(); conn.setRequestProperty(, ClientConfig.getLogProperty()); conn.setRequestProperty(, strDes); conn.setRequestProperty(, workDay); conn.setRequestProperty(, ); dos = DataOutputStream(conn.getOutputStream()); dos.writeInt(xmlByte.length); dos.write(xmlByte); dos.flush();
传数据过来的时候,所有的线程访问变得跟像是队列一样,,都在排队访问controller,变得很慢。不知道有什么办法可以使得每次用dataoutputStream访问的时候都新建一个controller来接收呢?
项目:JFinal