日志0530

日志0530
/**
 * Copyright (c) 2005-2012 springside.org.cn
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 
*/
package  org.springside.modules.test.functional;

import  org.eclipse.jetty.server.Connector;
import  org.eclipse.jetty.server.Server;
import  org.eclipse.jetty.server.nio.SelectChannelConnector;
import  org.eclipse.jetty.webapp.WebAppContext;

/**
 * 鍒涘缓Jetty Server鐨勫伐鍘傜被.
 * 
 * 
@author  calvin
 
*/
public   class  JettyFactory {

    
private   static   final  String DEFAULT_WEBAPP_PATH  =   " src/main/webapp " ;

    
/**
     * 鍒涘缓鐢ㄤ簬寮�彂杩愯璋冭瘯鐨凧etty Server, 浠rc/main/webapp涓篧eb搴旂敤鐩綍.
     
*/
    
public   static  Server createServerInSource( int  port, String contextPath) {
        Server server 
=   new  Server();
        
// 璁剧疆鍦↗VM閫�嚭鏃跺叧闂璊etty鐨勯挬瀛愩�
        server.setStopAtShutdown( true );

        SelectChannelConnector connector 
=   new  SelectChannelConnector();
        connector.setPort(port);
        
// 瑙e喅Windows涓嬮噸澶嶅惎鍔↗etty灞呯劧涓嶆姤绔彛鍐茬獊鐨勯棶棰�
        connector.setReuseAddress( false );
        server.setConnectors(
new  Connector[] { connector });

        WebAppContext webContext 
=   new  WebAppContext(DEFAULT_WEBAPP_PATH, contextPath);
        
// 璁剧疆浣跨敤褰撳墠绾跨▼鐨凜lassLoder浠ヨВ鍐矹SP涓嶈兘姝g‘鎵弿taglib鐨則ld鏂囦欢鐨勯棶棰樸�
        webContext.setClassLoader(Thread.currentThread().getContextClassLoader());
        server.setHandler(webContext);

        
return  server;
    }
}
  1. 清空表脚本
    TRUNCATE TABLE  qrtz_triggers;
    TRUNCATE TABLE  qrtz_job_details;
    TRUNCATE TABLE  qrtz_fired_triggers;
    TRUNCATE TABLE  qrtz_cron_triggers;
    commit;


  2. 触发器
    create or replace trigger T_QRTZ_TASKPLAN
    after insert on INFA_TASKPLAN
    for each row
    begin
    P_QRTZ_CRON_TRIGGERS('999-167asdd8-abf5-4d2e-8840-e02c2a3zr188','0/5 * * ? * * *');
    end;
  3. quartz
    http://forum.springsource.org/showthread.php?25597-Spring-Quartz-and-ORA-01002-fetch-out-of-sequence
  4. jerry
    mvn jetty:run -Djetty.port=8082
  5. jettSer

    1738022477
  6. 建表脚本
    t_sys_user
      ORG_ID     NUMBER(19) default 1,
      AVALIABLE  CHAR(1) default 'Y' not null,
    ADMIN      CHAR(1) default 'N',
  7. 工作记录

    需要更正的: 增加用户时候写固定ID

你可能感兴趣的:(日志0530)