首页 > 编程语言 > 详细

99) java相关

时间:2017-05-02 23:17:46      阅读:311      评论:0      收藏:0      [点我收藏+]

----------------------------------------------------------------------------------------------------------------------------

 1.log档案

  1)程式log
    C:\apache-tomee-plus-1.7.2-DEV\logs\enoviadev.2017-05-01.log
  2)流程log
    C:\enoviaV6R2015x\ENOVIA_DEV\logs\STI-Flow-2017-05-02_0.log
  3)自定义log
    C:\enoviaV6R2015x\ENOVIA_DEV\logs\CSTC-2017-05-01_0.log

----------------------------------------------------------------------------------------------------------------------------

2.java prog 汇入

  使用MQL
  insert prog c:\CSTC_ProjectReport_C_mxJPO.java; //插入
  compile prog CSTC_ProjectReport_C_mxJPO; //编译

  ps:java程式实际上都是存于DB,可用Spinner汇出,再汇入其他环境

----------------------------------------------------------------------------------------------------------------------------

3.将信息(param、request data)打印到log中

public void createTestReqPostProcessForRR(Context context, String[] args) throws Exception{
    try{
        HashMap programMap         = (HashMap) JPO.unpackArgs(args);
        Map paramMap               = (Map) programMap.get("paramMap");
        Map requestMap             = (Map) programMap.get("requestMap");
        
        System.out.println("programMap = "+programMap.toString());
        System.out.println("paramMap = "+paramMap.toString());
        System.out.println("requestMap = "+requestMap.toString());
    }
    catch(Exception  e) {
        throw new FrameworkException(e.toString());
    }
}      

  ps:便于调式程序

  参考prog 
  CSTC_TestReq_RR_mxJPO.java

----------------------------------------------------------------------------------------------------------------------------

99) java相关

原文:http://www.cnblogs.com/cc2013/p/6798809.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!