?? moengine.java~50~
字號:
package orderapp;/** * Title: * Description: * Copyright: Copyright (c) 2002 * Company: * @author * @version 1.0 */import utilities.Engine;import data.*;import xml.getLabel;import java.sql.*;public class moEngine extends Engine { public String str; //public ConnectionPool data; public getLabel getLabelString; public XmlString xml; public String submit; public getContent pushSubmit; // public String sql; public moEngine() { setDaemon(true); //data=new ConnectionPool(); getLabelString=new getLabel(); xml=new XmlString(); } public void run(){ while(true){ if(!Config.mo_queue.isEmpty()){ str=(String)Config.mo_queue.pop(); System.out.println("get a mo"+str); xml.destination_id=getLabelString.getString("cmpp_deliver/destination_id",str); xml.msg_fmt=getLabelString.getString("cmpp_deliver/msg_fmt",str); System.out.print("msg_fmt"+xml.msg_fmt); System.out.print("0000000"); xml.msg_content=getLabelString.getString("cmpp_deliver/msg_content",str); xml.src_terminal_id=getLabelString.getString("cmpp_deliver/src_terminal_id",str); //從mobile_content 表中提取內容生成submit包壓入submit池 //pushSubmit=new getContent(xml.msg_content,xml.src_terminal_id); /* pushSubmit=new getContent("1","10"); pushSubmit.insertSubmit(); pushSubmit=null; */ Config.submit_queue.push("<cmpp_submit><source><name>1</name><guid>1001</guid></source><destination><name>standard</name></destination><src_terminal_id>5988</src_terminal_id><dest_terminal_id>13910139946</dest_terminal_id><msg_fmt>0</msg_fmt><tp_pid>0</tp_pid><tp_udhi>0</tp_udhi><registered_delivery>0</registered_delivery><service_id>DJSD</service_id><fee_user_type>0</fee_user_type><fee_type>02</fee_type><fee_code>000010</fee_code><msg_content>30313233343536373839</msg_content></cmpp_submit>\r\n"); } try{ Thread.sleep(Config.sleep_time); } catch(Exception e){ e.printStackTrace(); } } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -