Examples of cnSimpleSystemTraceNumGen


Examples of org.zyp.cn8583.impl.cnSimpleSystemTraceNumGen

    org.apache.log4j.PropertyConfigurator.configure("j8583cn_log.properties");
    // ����j8583cn���ĸ�ʽ�����ļ�������һ�����Ĺ�������
    cnMessageFactory mfact = cnConfigParser.createFromXMLConfigFile("config.xml");
    mfact.setUseCurrentDate(false)// ������ field 7
    // ����ϵͳ���ٺŵ�������������field 11��
    mfact.setSystemTraceNumberGenerator(new cnSimpleSystemTraceNumGen((int)(System.currentTimeMillis() % 100000)));
   
    //Create a new message
    cnMessage m = mfact.newMessagefromTemplate("0200")// ����ģ�崴������ʼ��һ�����Ķ���
    m.setBinary(false);    // ������ʹ�ö�����
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.