锘??xml version="1.0" encoding="utf-8" standalone="yes"?>AV在线播放日韩亚洲欧,亚洲妇女无套内射精,无码专区—VA亚洲V天堂http://www.tkk7.com/zolly/銆銆Focus on BPM, celebrate PegaRULES Process Commander (PRPC)zh-cnSun, 11 May 2025 01:57:14 GMTSun, 11 May 2025 01:57:14 GMT60"No suitable driver found" error when connecting to different database with Pega rule basehttp://www.tkk7.com/zolly/archive/2014/06/03/No_suitable_driver_found.htmlzollyzollyMon, 02 Jun 2014 18:15:00 GMThttp://www.tkk7.com/zolly/archive/2014/06/03/No_suitable_driver_found.htmlhttp://www.tkk7.com/zolly/comments/414326.htmlhttp://www.tkk7.com/zolly/archive/2014/06/03/No_suitable_driver_found.html#Feedback1http://www.tkk7.com/zolly/comments/commentRss/414326.htmlhttp://www.tkk7.com/zolly/services/trackbacks/414326.htmlGo into SMA -> Advanced -> Etier Runtime Environment
For Java class name (e.g.: com.microsoft.sqlserver.jdbc.SQLServerDriver) click on the Lookup Java Class button and confirm that the Java class is being found in the lib directory where you have put the jar file. 
If the class is not found there please confirm that you restarted the app server after adding the jar file to the lib directory.
If the class is found in the lib directory like it should be please go back to the Database rule and try the test connection again and this time it should work.


zolly 2014-06-03 02:15 鍙戣〃璇勮
]]>
SpringFramework 4 + Hibernate 4 + Maven 瀹炰緥http://www.tkk7.com/zolly/archive/2014/04/01/SpringFramework4_Hibernate4_Maven.htmlzollyzollyTue, 01 Apr 2014 00:40:00 GMThttp://www.tkk7.com/zolly/archive/2014/04/01/SpringFramework4_Hibernate4_Maven.htmlhttp://www.tkk7.com/zolly/comments/411766.htmlhttp://www.tkk7.com/zolly/archive/2014/04/01/SpringFramework4_Hibernate4_Maven.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/411766.htmlhttp://www.tkk7.com/zolly/services/trackbacks/411766.htmlClientLogging.zip
2. 鏍規(guī)嵁宸ョ▼鏂囦歡涓殑SQL鏂囦歡db-mssql.sql鍒涘緩鏁版嵁搴撹〃銆?br />3. 鏍規(guī)嵁闇瑕佷慨鏀筪b-mssql.properties
4. 鎵цMaven Install鐢熸垚war鍖咃紝閮ㄧ講鍒癟omcat銆傛垨鑰呭湪Eclipse涓儴緗睺omcat Server榪愯銆?br />5. 璁塊棶http://localhost:8080/RequestLogging/loggings

zolly 2014-04-01 08:40 鍙戣〃璇勮
]]>
Java璇誨啓Oracle BLOB瀛楁紺轟緥http://www.tkk7.com/zolly/archive/2013/05/28/CopyOracleBLOB.htmlzollyzollyTue, 28 May 2013 05:33:00 GMThttp://www.tkk7.com/zolly/archive/2013/05/28/CopyOracleBLOB.htmlhttp://www.tkk7.com/zolly/comments/399864.htmlhttp://www.tkk7.com/zolly/archive/2013/05/28/CopyOracleBLOB.html#Feedback1http://www.tkk7.com/zolly/comments/commentRss/399864.htmlhttp://www.tkk7.com/zolly/services/trackbacks/399864.html
EXP瀵煎嚭紺轟緥錛?br />
exp name/password@orcl file=E:/exp.dump log=E:/exp.log table=(tb_emp) query="""where UserName='FN'"""

EXPDP瀵煎嚭紺轟緥錛?br />Sample.bat
expdp name/password@orcl parfile=E:/expdp.par
expdp.par
DIRECTORY=dir_dump
DUMPFILE=backup.dump
LOGFILE=backup.log
TABLES=pr_data_admin
QUERY=pr_data_admin:"where UserName='FN'"

浠ヤ笂鏂規(guī)硶鍥犱負(fù)鎴戠數(shù)鑴戜笂鐨凮racle鐗堟湰瀵逛笉涓婏紝鎬繪槸鎶ラ敊錛屽悗鏉ラ噰鐢╦ava鐨勬柟娉曪紝鏈枃涓昏浠嬬粛濡備綍浣跨敤java璇誨啓Oracle鐨凚LOB瀛楁錛岃揪鍒板鍒惰漿縐籅LOB鏁版嵁鐨勭洰鐨勩備唬鐮佸涓嬶紝鍔犲叆ojdbc.jar錛屽鍒朵唬鐮佸彲浠ョ洿鎺ヨ繍琛岋細(xì)
DBConnection.java
package com.zolly.blob;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBConnection {

    public static Connection getDBConnectionFrom() throws Exception {
        Connection con = null;
        String driver = "oracle.jdbc.driver.OracleDriver";// database driver
        String url = "jdbc:oracle:thin:@192.168.1.2:1545:ORCL";// database URL
        String user = "user1"; // database name
        String password = "password1"; // database Password
        Class.forName(driver);
        con = DriverManager.getConnection(url, user, password);
        return con;
    }
    
    public static Connection getDBConnectionTo() throws Exception {
        Connection con = null;
        String driver = "oracle.jdbc.driver.OracleDriver";// database driver
        String url = "jdbc:oracle:thin:@192.168.1.3:1521:ORCL";// database URL
        String user = "user2"; // database name
        String password = "password2"; // database Password
        Class.forName(driver);
        con = DriverManager.getConnection(url, user, password);
        return con;
    }

}

BLOBUtil.java
package com.zolly.blob;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;

import oracle.sql.BLOB;

public class BLOBUtil {
    @SuppressWarnings("deprecation")
    public static void writeBLOB() {
        Connection con = null;
        long start = System.currentTimeMillis(); // count runtime
        InputStream fin = null;
        OutputStream outStream = null;
        String path = "E:\\requestor.txt";
        File file = new File(path);
        try {
            con = DBConnection.getDBConnectionTo();
            con.setAutoCommit(false);

            Statement stmt = con.createStatement();
            ResultSet rs = stmt
                    .executeQuery("select pzPVStream from pr_data_admin where pxInsName='PEGA!BROWSER' for update");
            // get specially columns and rows for update
            while (rs.next()) {
                // System.out.print(rs.getInt(1)+rs.getString(2)+"\n");//print
                
// select sql for debug
                BLOB blob = (BLOB) rs.getBlob("pzPVStream");
                outStream = blob.getBinaryOutputStream();
                fin = new FileInputStream(file); // put file into stream
                byte[] b = new byte[blob.getBufferSize()];
                int len = 0;
                while ((len = fin.read(b)) != -1) {
                    outStream.write(b, 0, len);
                }

                fin.close();
                outStream.flush();
                outStream.close();
            }
            System.out.print("\nupdate ok\n");

            con.commit();

            con.close();
        }

        catch (Exception e) {
            e.printStackTrace();
        }

        long end = System.currentTimeMillis();
        System.out.println(end - start);
    }

    public static void readBLOB() {
        Connection con = null;
        long start = System.currentTimeMillis(); // count runtime
        String path = "E:\\requestor.txt";
        File file = new File(path);
        try {
            con = DBConnection.getDBConnectionFrom();
            con.setAutoCommit(false);
            Statement stmt = con.createStatement();
            ResultSet rs = stmt
                    .executeQuery("select pzPVStream from pr_data_admin where pxInsName='PEGA!BROWSER'");
            // get blob form your table
            if (rs.next()) {
                BLOB blob = (BLOB) rs.getBlob("pzPVStream");
                // get word column
                FileOutputStream output = new FileOutputStream(file);
                // define a file output stream
                InputStream input = blob.getBinaryStream();// put blob into
                                                            
// input
                byte[] buffer = new byte[blob.getBufferSize()];
                // if use 1024 it will lose some bytes
                int len = 0;
                while ((len = input.read(buffer)) != -1) {
                    // get all input stream into output file stream
                    output.write(buffer, 0, len);
                    input.close();
                    output.flush();
                    output.close();
                }
                System.out.print("\ndownload ok\n");
            }
            con.close();
        } catch (Exception e) {
            e.printStackTrace();
        }

        long end = System.currentTimeMillis();
        System.out.println(end - start);

    }

    public static void main(String[] args) {
        BLOBUtil.readBLOB();
        BLOBUtil.writeBLOB();
    }

}


zolly 2013-05-28 13:33 鍙戣〃璇勮
]]>
鍩轟簬Java API鐨凞ESede(Triple-DES)鍔犲瘑瑙e瘑紺轟緥http://www.tkk7.com/zolly/archive/2013/05/25/DESede_Encryption.htmlzollyzollyFri, 24 May 2013 17:50:00 GMThttp://www.tkk7.com/zolly/archive/2013/05/25/DESede_Encryption.htmlhttp://www.tkk7.com/zolly/comments/399685.htmlhttp://www.tkk7.com/zolly/archive/2013/05/25/DESede_Encryption.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/399685.htmlhttp://www.tkk7.com/zolly/services/trackbacks/399685.html
Bouncy Castle涔熸敮鎸丏ES綆楁硶錛屽叿浣撴病鏈夋繁鍏ョ爺絀訛紝鏈夊叴瓚g殑鍙互涓嬭澆鐩稿簲鐨凙PI榪涜嫻嬭瘯銆?br />http://www.bouncycastle.org/

浠ヤ笅浠g爜鍩烘湰涓婅鐩栦簡鐢熸垚瀵嗛挜浠ュ強(qiáng)鍔犲瘑瑙e瘑鐨勫叏榪囩▼錛屾嫹璐濅唬鐮佸彲浠ョ洿鎺ヨ繍琛屻?浠g爜鎽樿嚜緗戠粶)
姣忔鐢熸垚瀵嗛挜閮戒細(xì)涓嶄竴鏍鳳紝涓鑸潵璇村瘑閽ラ渶瑕佺敓鎴愭枃浠跺茍濡ュ杽淇濆瓨銆?br />
DESedeCoder.java
package com.zolly.bouncycastle;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.security.Key;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESedeKeySpec;

import com.sun.org.apache.xml.internal.security.utils.Base64;

/**
 * DESede瀵圭О鍔犲瘑綆楁硶婕旂ず
 * 
 * 
@author zolly
 * 
*/
public class DESedeCoder {
    /**
     * 瀵嗛挜綆楁硶
     * 
*/
    public static final String KEY_ALGORITHM = "DESede";

    /**
     * 鍔犲瘑/瑙e瘑綆楁硶/宸ヤ綔妯″紡/濉厖鏂瑰紡
     * 
*/
    public static final String CIPHER_ALGORITHM = "DESede/ECB/PKCS5Padding";

    /**
     * 
     * 鐢熸垚瀵嗛挜
     * 
     * 
@return byte[] 浜岃繘鍒跺瘑閽?br />     * */
    public static byte[] initkey() throws Exception {

        // 瀹炰緥鍖栧瘑閽ョ敓鎴愬櫒
        KeyGenerator kg = KeyGenerator.getInstance(KEY_ALGORITHM);
        // 鍒濆鍖栧瘑閽ョ敓鎴愬櫒
        kg.init(168);
        // 鐢熸垚瀵嗛挜
        SecretKey secretKey = kg.generateKey();
        // 鑾峰彇浜岃繘鍒跺瘑閽ョ紪鐮佸艦寮?/span>
        
        byte[] key = secretKey.getEncoded();
        BufferedOutputStream keystream = 
                new BufferedOutputStream(new FileOutputStream("DESedeKey.dat"));
        keystream.write(key, 0, key.length);
        keystream.flush();
        keystream.close();
        
        return key;
    }

    /**
     * 杞崲瀵嗛挜
     * 
     * 
@param key
     *            浜岃繘鍒跺瘑閽?br />     * 
@return Key 瀵嗛挜
     * 
*/
    public static Key toKey(byte[] key) throws Exception {
        // 瀹炰緥鍖朌es瀵嗛挜
        DESedeKeySpec dks = new DESedeKeySpec(key);
        // 瀹炰緥鍖栧瘑閽ュ伐鍘?/span>
        SecretKeyFactory keyFactory = SecretKeyFactory
                .getInstance(KEY_ALGORITHM);
        // 鐢熸垚瀵嗛挜
        SecretKey secretKey = keyFactory.generateSecret(dks);
        return secretKey;
    }

    /**
     * 鍔犲瘑鏁版嵁
     * 
     * 
@param data
     *            寰呭姞瀵嗘暟鎹?br />     * 
@param key
     *            瀵嗛挜
     * 
@return byte[] 鍔犲瘑鍚庣殑鏁版嵁
     * 
*/
    public static byte[] encrypt(byte[] data, byte[] key) throws Exception {
        // 榪樺師瀵嗛挜
        Key k = toKey(key);
        // 瀹炰緥鍖?/span>
        Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM);
        // 鍒濆鍖栵紝璁劇疆涓哄姞瀵嗘ā寮?/span>
        cipher.init(Cipher.ENCRYPT_MODE, k);
        // 鎵ц鎿嶄綔
        return cipher.doFinal(data);
    }

    /**
     * 瑙e瘑鏁版嵁
     * 
     * 
@param data
     *            寰呰В瀵嗘暟鎹?br />     * 
@param key
     *            瀵嗛挜
     * 
@return byte[] 瑙e瘑鍚庣殑鏁版嵁
     * 
*/
    public static byte[] decrypt(byte[] data, byte[] key) throws Exception {
        // 嬈㈣繋瀵嗛挜
        Key k = toKey(key);
        // 瀹炰緥鍖?/span>
        Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM);
        // 鍒濆鍖栵紝璁劇疆涓鴻В瀵嗘ā寮?/span>
        cipher.init(Cipher.DECRYPT_MODE, k);
        // 鎵ц鎿嶄綔
        return cipher.doFinal(data);
    }

    /**
     * 榪涜鍔犺В瀵嗙殑嫻嬭瘯
     * 
     * 
@throws Exception
     
*/
    public static void main(String[] args) throws Exception {
        String str = "DESede";
        System.out.println("鍘熸枃錛? + str);
        // 鍒濆鍖栧瘑閽?/span>
        byte[] key = DESedeCoder.initkey();
        System.out.println("瀵嗛挜錛? + Base64.encode(key));
        // 鍔犲瘑鏁版嵁
        byte[] data = DESedeCoder.encrypt(str.getBytes(), key);
        System.out.println("鍔犲瘑鍚庯細(xì)" + Base64.encode(data));
        // 瑙e瘑鏁版嵁
        data = DESedeCoder.decrypt(data, key);
        System.out.println("瑙e瘑鍚庯細(xì)" + new String(data));
    }
}


姝e浠ヤ笂浠g爜錛屾垜榪涜浜嗛傚綋淇敼錛屼嬌鍏跺彉寰楁洿鍔犲疄鐢ㄣ傛垜鐨勪富瑕佸簲鐢ㄦ槸鎶婂鎴風(fēng)殑鏁版嵁鍔犲瘑淇濆瓨鍒版暟鎹簱錛屽彇鍑烘潵鐨勬椂鍊欏啀瑙e瘑錛屼繚璇佹暟鎹簱鏁版嵁鐨勫畨鍏ㄣ傛敞鎰忔垜鍥哄畾浜嗗瘑閽ワ紝浠ラ槻瀵嗛挜涓鏃︿涪澶憋紝鎵鏈夋暟鎹兘鍙樻垚涔辯爜浜嗭紝鍥哄畾瀵嗛挜瀹夊叏鎬ф湁鎵闄嶄綆錛屼絾鏄鏁版嵁搴撳瓧孌靛姞瀵嗗畨鍏ㄦу凡緇忚凍澶熶簡銆?br />
DESedeTest.java
package com.zolly.bouncycastle;

import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;

import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESedeKeySpec;

import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException;
import com.sun.org.apache.xml.internal.security.utils.Base64;

public class DESedeTest {

    /**
     * 
@param args
     
*/
    public static void main(String[] args) {

        String strText = "This is a testing";

        String text1 = DESedeTest.encryptProperty(strText);

        String text2 = DESedeTest.decryptProperty(text1);

        System.out.println(text1);

        System.out.println(text2);
    }

    public static String encryptProperty(String clearText) {

        String KEY_STRING = "RRYa6li5NGFodgKUtvS1I6fZwY8xpJjI";

        byte[] key = null;

        try {
            key = Base64.decode(KEY_STRING);
        } catch (Base64DecodingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        return DESedeTest.performDESedeCoder(clearText, key, true);
    }

    public static String decryptProperty(String cipherText) {

        String KEY_STRING = "RRYa6li5NGFodgKUtvS1I6fZwY8xpJjI";

        byte[] key = null;

        try {
            key = Base64.decode(KEY_STRING);
        } catch (Base64DecodingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        return DESedeTest.performDESedeCoder(cipherText, key, false);
    }

    public static String performDESedeCoder(String inputValue, byte[] key,
            boolean encrypt) {
        String rtnValue = "";

        String KEY_ALGORITHM = "DESede";
        String CIPHER_ALGORITHM = "DESede/ECB/PKCS5Padding";

        byte[] data = null;
        try {
            DESedeKeySpec dks = new DESedeKeySpec(key);

            SecretKeyFactory keyFactory = SecretKeyFactory
                    .getInstance(KEY_ALGORITHM);

            SecretKey secretKey = keyFactory.generateSecret(dks);

            Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM);

            byte[] input = null;
            if (encrypt) {
                cipher.init(Cipher.ENCRYPT_MODE, secretKey);
                input = inputValue.getBytes();
            } else {
                cipher.init(Cipher.DECRYPT_MODE, secretKey);
                input = Base64.decode(inputValue);
            }

            data = cipher.doFinal(input);
        } catch (InvalidKeyException e) {
            System.out.println(e.getMessage());
        } catch (NoSuchAlgorithmException e) {
            System.out.println(e.getMessage());
        } catch (InvalidKeySpecException e) {
            System.out.println(e.getMessage());
        } catch (NoSuchPaddingException e) {
            System.out.println(e.getMessage());
        } catch (IllegalBlockSizeException e) {
            System.out.println(e.getMessage());
        } catch (BadPaddingException e) {
            System.out.println(e.getMessage());
        } catch (Base64DecodingException e) {
            System.out.println(e.getMessage());
        }

        if (data == null) {
            rtnValue = inputValue;
        } else {
            if (encrypt) {
                rtnValue = com.sun.org.apache.xml.internal.security.utils.Base64
                        .encode(data);
            } else {
                rtnValue = new String(data);
            }
        }

        return rtnValue;
    }
}



zolly 2013-05-25 01:50 鍙戣〃璇勮
]]>
鍩轟簬Java Bouncy Castle鐨凱GP鍔犲瘑瑙e瘑紺轟緥http://www.tkk7.com/zolly/archive/2013/05/24/PGP_Encryption.htmlzollyzollyFri, 24 May 2013 00:37:00 GMThttp://www.tkk7.com/zolly/archive/2013/05/24/PGP_Encryption.htmlhttp://www.tkk7.com/zolly/comments/399684.htmlhttp://www.tkk7.com/zolly/archive/2013/05/24/PGP_Encryption.html#Feedback23http://www.tkk7.com/zolly/comments/commentRss/399684.htmlhttp://www.tkk7.com/zolly/services/trackbacks/399684.htmlPGP鍗砅retty Good Privacy錛屾槸涓涓熀浜嶳SA鍏挜&縐侀挜鍙?qiáng)AES絳夐潪瀵圭О鍔犲瘑綆楁硶鐨勫姞瀵嗚蔣浠剁郴鍒楋紝姣旇緝鍏鋒湁浠h〃鎬у姞瀵嗚В瀵嗗鎴風(fēng)宸茶Symantec鏀惰喘錛岃瑙亀ww.pgp.com錛屽湪Symantec鐨勭綉绔欎笂鍙互涓嬭澆鏈鏂扮増瀹㈡埛绔蔣浠躲?br />
鏈枃璁茬殑鏄嬌鐢↗ava鍩轟簬Bouncy Castle鍖呯殑PGP鍔犲瘑瑙e瘑紺轟緥錛屾寜鐓т互涓嬫楠ゅ嵆鍙交鏉懼疄鐜幫細(xì)

1. 瀹㈡埛绔蔣浠?br />鐢變簬Symantec鐨凱GP瀹㈡埛绔槸鏀惰垂杞歡錛屾湰鏂囧彧闇瑕佷嬌鐢ㄥ叾涓殑鐢熸垚縐橀挜鍜屽姞瀵嗘枃浠剁殑鍔熻兘錛岀敤璇ヨ蔣浠舵湁浜涙氮璐癸紝鎵浠ユ垜涓嬭澆浜咼ava 鍏嶈垂鐗堢殑Portable PGP(http://sourceforge.net/projects/ppgp/)

2. 涓嬭澆Bouncy Castle鍖?br />http://www.bouncycastle.org/latest_releases.html
bcprov-jdk15on-148.jar鍜宐cpg-jdk15on-148.jar
Bouncy Castle鏀寔澶ч噺鐨勫瘑鐮佹湳綆楁硶錛屽叾涓寘鎷琌penPGP錛屽紩鐢ㄥ緢騫挎硾錛孭ega灝辨槸浣跨敤Bouncy Castle瀵歸偖浠跺拰瀹㈡埛閲嶈鏁版嵁榪涜鍔犲瘑瑙e瘑鐨勩?br />瀹冩棦鍙互瀹夎鎴怞DK鎵╁睍涔熷彲浠ユ斁鍒扮壒瀹歫ava欏圭洰涓嬌鐢ㄣ?br />
3. 鍦∣racle瀹樼綉涓嬭澆UnlimitedJCEPolicy
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
JDK榛樿Policy鍙兘鏀寔<=128浣岾ey錛孏PG鐨勫瘑閽ヤ粠1024-2048錛屾墍浠ュ繀欏繪墿灞曡Policy銆傚叿浣撳畨瑁呮柟娉曞弬鑰冩枃浠朵腑鐨凴eadMe鏂囦歡銆?/div>
4. 緙栧啓浠g爜
浣跨敤Portable PGP鍔犲瘑鏂囦歡鍚庣敓鎴怭ublic Key鍜孭rivate Key銆傛妸璇曠敤Public Key鍔犲瘑鐨勬枃浠?Encrypted File.txt"鍜孭rivate Key "Key.asc"涓鍚屾斁鍒伴」鐩枃浠跺す涓?br />浣跨敤浠ヤ笅浠g爜鍗沖彲瑙e瘑鏂囦歡銆?鎷瘋礉浠ヤ笅浠g爜鍙互鐩存帴鎵ц錛屼互涓嬩唬鐮佷篃鏄潵鑷狟ouncy Castle婧愪唬鐮佸寘)

PGPExampleUtil.java
package com.zolly.bouncycastle;

import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.NoSuchProviderException;
import java.util.Iterator;

import org.bouncycastle.openpgp.PGPCompressedDataGenerator;
import org.bouncycastle.openpgp.PGPException;
import org.bouncycastle.openpgp.PGPLiteralData;
import org.bouncycastle.openpgp.PGPPrivateKey;
import org.bouncycastle.openpgp.PGPPublicKey;
import org.bouncycastle.openpgp.PGPPublicKeyRing;
import org.bouncycastle.openpgp.PGPPublicKeyRingCollection;
import org.bouncycastle.openpgp.PGPSecretKey;
import org.bouncycastle.openpgp.PGPSecretKeyRing;
import org.bouncycastle.openpgp.PGPSecretKeyRingCollection;
import org.bouncycastle.openpgp.PGPUtil;

class PGPExampleUtil
{
    static byte[] compressFile(String fileName, int algorithm) throws IOException
    {
        ByteArrayOutputStream bOut = new ByteArrayOutputStream();
        PGPCompressedDataGenerator comData = new PGPCompressedDataGenerator(algorithm);
        PGPUtil.writeFileToLiteralData(comData.open(bOut), PGPLiteralData.BINARY,
            new File(fileName));
        comData.close();
        return bOut.toByteArray();
    }

    /**
     * Search a secret key ring collection for a secret key corresponding to keyID if it
     * exists.
     * 
     * 
@param pgpSec a secret key ring collection.
     * 
@param keyID keyID we want.
     * 
@param pass passphrase to decrypt secret key with.
     * 
@return
     * 
@throws PGPException
     * 
@throws NoSuchProviderException
     
*/
    static PGPPrivateKey findSecretKey(PGPSecretKeyRingCollection pgpSec, long keyID, char[] pass)
        throws PGPException, NoSuchProviderException
    {
        PGPSecretKey pgpSecKey = pgpSec.getSecretKey(keyID);

        if (pgpSecKey == null)
        {
            return null;
        }

        return pgpSecKey.extractPrivateKey(pass, "BC");
    }

    static PGPPublicKey readPublicKey(String fileName) throws IOException, PGPException
    {
        InputStream keyIn = new BufferedInputStream(new FileInputStream(fileName));
        PGPPublicKey pubKey = readPublicKey(keyIn);
        keyIn.close();
        return pubKey;
    }

    /**
     * A simple routine that opens a key ring file and loads the first available key
     * suitable for encryption.
     * 
     * 
@param input
     * 
@return
     * 
@throws IOException
     * 
@throws PGPException
     
*/
    static PGPPublicKey readPublicKey(InputStream input) throws IOException, PGPException
    {
        PGPPublicKeyRingCollection pgpPub = new PGPPublicKeyRingCollection(
            PGPUtil.getDecoderStream(input));

        //
        
// we just loop through the collection till we find a key suitable for encryption, in the real
        
// world you would probably want to be a bit smarter about this.
        
//

        Iterator keyRingIter = pgpPub.getKeyRings();
        while (keyRingIter.hasNext())
        {
            PGPPublicKeyRing keyRing = (PGPPublicKeyRing)keyRingIter.next();

            Iterator keyIter = keyRing.getPublicKeys();
            while (keyIter.hasNext())
            {
                PGPPublicKey key = (PGPPublicKey)keyIter.next();

                if (key.isEncryptionKey())
                {
                    return key;
                }
            }
        }

        throw new IllegalArgumentException("Can't find encryption key in key ring.");
    }

    static PGPSecretKey readSecretKey(String fileName) throws IOException, PGPException
    {
        InputStream keyIn = new BufferedInputStream(new FileInputStream(fileName));
        PGPSecretKey secKey = readSecretKey(keyIn);
        keyIn.close();
        return secKey;
    }

    /**
     * A simple routine that opens a key ring file and loads the first available key
     * suitable for signature generation.
     * 
     * 
@param input stream to read the secret key ring collection from.
     * 
@return a secret key.
     * 
@throws IOException on a problem with using the input stream.
     * 
@throws PGPException if there is an issue parsing the input stream.
     
*/
    static PGPSecretKey readSecretKey(InputStream input) throws IOException, PGPException
    {
        PGPSecretKeyRingCollection pgpSec = new PGPSecretKeyRingCollection(
            PGPUtil.getDecoderStream(input));

        //
        
// we just loop through the collection till we find a key suitable for encryption, in the real
        
// world you would probably want to be a bit smarter about this.
        
//

        Iterator keyRingIter = pgpSec.getKeyRings();
        while (keyRingIter.hasNext())
        {
            PGPSecretKeyRing keyRing = (PGPSecretKeyRing)keyRingIter.next();

            Iterator keyIter = keyRing.getSecretKeys();
            while (keyIter.hasNext())
            {
                PGPSecretKey key = (PGPSecretKey)keyIter.next();

                if (key.isSigningKey())
                {
                    return key;
                }
            }
        }

        throw new IllegalArgumentException("Can't find signing key in key ring.");
    }
}

KeyBasedLargeFileProcessor.java
package com.zolly.bouncycastle;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.NoSuchProviderException;
import java.security.SecureRandom;
import java.security.Security;
import java.util.Iterator;

import org.bouncycastle.bcpg.ArmoredOutputStream;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.openpgp.PGPCompressedData;
import org.bouncycastle.openpgp.PGPCompressedDataGenerator;
import org.bouncycastle.openpgp.PGPEncryptedData;
import org.bouncycastle.openpgp.PGPEncryptedDataGenerator;
import org.bouncycastle.openpgp.PGPEncryptedDataList;
import org.bouncycastle.openpgp.PGPException;
import org.bouncycastle.openpgp.PGPLiteralData;
import org.bouncycastle.openpgp.PGPObjectFactory;
import org.bouncycastle.openpgp.PGPOnePassSignatureList;
import org.bouncycastle.openpgp.PGPPrivateKey;
import org.bouncycastle.openpgp.PGPPublicKey;
import org.bouncycastle.openpgp.PGPPublicKeyEncryptedData;
import org.bouncycastle.openpgp.PGPSecretKeyRingCollection;
import org.bouncycastle.openpgp.PGPUtil;
import org.bouncycastle.openpgp.operator.jcajce.JcePGPDataEncryptorBuilder;
import org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyDataDecryptorFactoryBuilder;
import org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator;
import org.bouncycastle.util.io.Streams;

/**
 * A simple utility class that encrypts/decrypts public key based
 * encryption large files.
 
*/
public class KeyBasedLargeFileProcessor
{
    public static void decryptFile(
        String inputFileName,
        String keyFileName,
        char[] passwd,
        String defaultFileName)
        throws IOException, NoSuchProviderException
    {
        InputStream in = new BufferedInputStream(new FileInputStream(inputFileName));
        InputStream keyIn = new BufferedInputStream(new FileInputStream(keyFileName));
        decryptFile(in, keyIn, passwd, defaultFileName);
        keyIn.close();
        in.close();
    }
    
    /**
     * decrypt the passed in message stream
     
*/
    public static void decryptFile(
        InputStream in,
        InputStream keyIn,
        char[]      passwd,
        String      defaultFileName)
        throws IOException, NoSuchProviderException
    {    
        in = PGPUtil.getDecoderStream(in);
        
        try
        {
            PGPObjectFactory        pgpF = new PGPObjectFactory(in);
            PGPEncryptedDataList    enc;

            Object                  o = pgpF.nextObject();
            //
            
// the first object might be a PGP marker packet.
            
//
            if (o instanceof PGPEncryptedDataList)
            {
                enc = (PGPEncryptedDataList)o;
            }
            else
            {
                enc = (PGPEncryptedDataList)pgpF.nextObject();
            }
            
            //
            
// find the secret key
            
//
            Iterator                    it = enc.getEncryptedDataObjects();
            PGPPrivateKey               sKey = null;
            PGPPublicKeyEncryptedData   pbe = null;
            PGPSecretKeyRingCollection  pgpSec = new PGPSecretKeyRingCollection(
                PGPUtil.getDecoderStream(keyIn));                                                                 
            
            while (sKey == null && it.hasNext())
            {
                pbe = (PGPPublicKeyEncryptedData)it.next();
                
                sKey = PGPExampleUtil.findSecretKey(pgpSec, pbe.getKeyID(), passwd);
            }
            
            if (sKey == null)
            {
                throw new IllegalArgumentException("secret key for message not found.");
            }
            
            InputStream         clear = pbe.getDataStream(new JcePublicKeyDataDecryptorFactoryBuilder().setProvider("BC").build(sKey));
            
            PGPObjectFactory    plainFact = new PGPObjectFactory(clear);
            
            PGPCompressedData   cData = (PGPCompressedData)plainFact.nextObject();
    
            InputStream         compressedStream = new BufferedInputStream(cData.getDataStream());
            PGPObjectFactory    pgpFact = new PGPObjectFactory(compressedStream);
            
            Object              message = pgpFact.nextObject();
            
            if (message instanceof PGPLiteralData)
            {
                PGPLiteralData ld = (PGPLiteralData)message;

                String outFileName = ld.getFileName();
                if (outFileName.length() == 0)
                {
                    outFileName = defaultFileName;
                }

                InputStream unc = ld.getInputStream();
                OutputStream fOut =  new BufferedOutputStream(new FileOutputStream(outFileName));

                Streams.pipeAll(unc, fOut);

                fOut.close();
            }
            else if (message instanceof PGPOnePassSignatureList)
            {
                throw new PGPException("encrypted message contains a signed message - not literal data.");
            }
            else
            {
                throw new PGPException("message is not a simple encrypted file - type unknown.");
            }

            if (pbe.isIntegrityProtected())
            {
                if (!pbe.verify())
                {
                    System.err.println("message failed integrity check");
                }
                else
                {
                    System.err.println("message integrity check passed");
                }
            }
            else
            {
                System.err.println("no message integrity check");
            }
        }
        catch (PGPException e)
        {
            System.err.println(e);
            if (e.getUnderlyingException() != null)
            {
                e.getUnderlyingException().printStackTrace();
            }
        }
    }

    public static void encryptFile(
        String          outputFileName,
        String          inputFileName,
        String          encKeyFileName,
        boolean         armor,
        boolean         withIntegrityCheck)
        throws IOException, NoSuchProviderException, PGPException
    {
        OutputStream out = new BufferedOutputStream(new FileOutputStream(outputFileName));
        PGPPublicKey encKey = PGPExampleUtil.readPublicKey(encKeyFileName);
        encryptFile(out, inputFileName, encKey, armor, withIntegrityCheck);
        out.close();
    }

    public static void encryptFile(
        OutputStream    out,
        String          fileName,
        PGPPublicKey    encKey,
        boolean         armor,
        boolean         withIntegrityCheck)
        throws IOException, NoSuchProviderException
    {    
        if (armor)
        {
            out = new ArmoredOutputStream(out);
        }
        
        try
        {    
            PGPEncryptedDataGenerator   cPk = new PGPEncryptedDataGenerator(new JcePGPDataEncryptorBuilder(PGPEncryptedData.CAST5).setWithIntegrityPacket(withIntegrityCheck).setSecureRandom(new SecureRandom()).setProvider("BC"));
                
            cPk.addMethod(new JcePublicKeyKeyEncryptionMethodGenerator(encKey).setProvider("BC"));
            
            OutputStream                cOut = cPk.open(out, new byte[1 << 16]);
            
            PGPCompressedDataGenerator  comData = new PGPCompressedDataGenerator(
                                                                    PGPCompressedData.ZIP);
                                                                    
            PGPUtil.writeFileToLiteralData(comData.open(cOut), PGPLiteralData.BINARY, new File(fileName), new byte[1 << 16]);
            
            comData.close();
            
            cOut.close();

            if (armor)
            {
                out.close();
            }
        }
        catch (PGPException e)
        {
            System.err.println(e);
            if (e.getUnderlyingException() != null)
            {
                e.getUnderlyingException().printStackTrace();
            }
        }
    }

    public static void main(
        String[] args)
        throws Exception
    {
        Security.addProvider(new BouncyCastleProvider());
        
        decryptFile("Encypted File.txt.pgp", "Key.asc", "123456789".toCharArray(), "Encypted File.txt");
    }
}


zolly 2013-05-24 08:37 鍙戣〃璇勮
]]>
SQL鍒犻櫎鏌愪簺瀛楁閲嶅鐨勮褰?鍙繚鐣欎竴鏉?http://www.tkk7.com/zolly/archive/2013/05/03/SQL_Delete_Duplication.htmlzollyzollyThu, 02 May 2013 16:30:00 GMThttp://www.tkk7.com/zolly/archive/2013/05/03/SQL_Delete_Duplication.htmlhttp://www.tkk7.com/zolly/comments/398697.htmlhttp://www.tkk7.com/zolly/archive/2013/05/03/SQL_Delete_Duplication.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/398697.htmlhttp://www.tkk7.com/zolly/services/trackbacks/398697.html浼?xì)鍛樻暟鎹渶瑕佺敤鍒扮殑鏄笅闈笁涓瓧孌?ID(鑷),MemberName,MemberAddress.鍙浼?xì)鍛樺鍚嶄笌浼?xì)鍛樺湴鍧鐩稿悓灝辮涓烘槸閲嶅璁板綍,閲嶅璁板綍鍦ㄥ垹闄ゆ椂鍙繚鐣橧D鏈澶х殑閭d釜.SQL濡備笅:

delete MemberInfo where ID not in (
select max(ID) from MemberInfo group by MemberName, MemberAddress)

not in鐨勬晥鐜囧彲鑳戒細(xì)浣庝簺,浣嗗洜涓烘槸鐩存帴鎿嶄綔鏁版嵁搴?鎵浠ヨ繖騫朵笉閲嶈.榪欎釜鍙ュ瓙榪樻槸闈炲父鐨勭畝鍗曟湁鏁堢殑.
鍦ㄧ湡姝g殑鍒犻櫎鎿嶄綔鍓?閫氬父浼?xì)鍏堜簡瑙d竴涓嬮噸澶嶈褰曠殑鎯呭喌.鍙互浣跨敤涓嬮潰鐨勫彞瀛?

SELECT COUNT(MemberName) AS TheCount, MemberName, MemberAddress
FROM MemberInfo
GROUP BY MemberName, MemberAddress
HAVING (COUNT(*> 1)


zolly 2013-05-03 00:30 鍙戣〃璇勮
]]>
緹庡浗媧涙潐鐭剁敵璇風(fēng)ぞ浼?xì)瀹夊叏鍙?Social Security Number)鎸囧崡http://www.tkk7.com/zolly/archive/2012/12/14/Apply_US_SSN.htmlzollyzollyThu, 13 Dec 2012 23:15:00 GMThttp://www.tkk7.com/zolly/archive/2012/12/14/Apply_US_SSN.htmlhttp://www.tkk7.com/zolly/comments/392961.htmlhttp://www.tkk7.com/zolly/archive/2012/12/14/Apply_US_SSN.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/392961.htmlhttp://www.tkk7.com/zolly/services/trackbacks/392961.html鍒扮編鍥藉悗絎簩鍛ㄥ紑濮嬬敵璇風(fēng)ぞ淇濆畨鍏ㄥ彿銆?

鍦ㄧぞ浼?xì)瀹夊叏灞緗戠珯涓?https://secure.ssa.gov/apps6z/FOLO/fo001.jsp)鏍規(guī)嵁鎵鍦ㄥ湴鍖虹殑閭斂緙栫爜鏌ヨ鍒版湇鍔¤鍦板尯鐨凷ocial Security Office銆俹ffice鐨勪竴鑸伐浣滄椂闂存槸鍛ㄤ竴鍒板懆浜旓紝鏃╀笂9鐐瑰埌涓嬪崍5鐐癸紝鍥藉畾鍋囨棩涓嶅紑鏀俱?/div>

鍦∕etro緗戠珯涓婃煡璇㈣礬綰?http://socaltransport.org/tm2_text.php)銆傚潗Metro鍏氦杞﹀埌閭i噷鍚庡凡緇?錛?0浜嗭紝澶ф100騫崇背鐨勫ぇ鍘呬腑鍧愭弧浜嗕漢錛?銆?0浜虹殑鏍峰瓙錛屾誨叡鎵?涓獥鍙o紝蹇冩兂瑕佺瓑涓涓婂崍浜嗐傞鍏堝湪闂ㄥ彛鐨勬帓鍙鋒満涓婂彇浜嗕竴涓彿鐮丵79錛岀劧鍚庤蛋鍒板ぇ鍘呭悗闈㈢殑妗屽瓙涓婂彇浜嗕竴浠界敵璇瘋〃寮濮嬪~錛岃繖鏃跺惉鍒板箍鎾姤Q73鍒?鍙風(fēng)獥鍙o紝鎴戜竴涓嬪瓙鍏村璧鋒潵錛岃繖涔堝揩闃匡紝2鍒嗛挓濉ソ琛ㄦ牸鍚庡凡緇廞76浜嗐傚悗鏉ュ彂鐜板ぇ鍘呴噷鍋氱殑澶ч儴鍒嗕漢閮芥槸鐢寵閫浼戦樋錛屼慨鏀瑰湴鍧絳夌殑錛屽彲鑳藉鏂扮敵璇風(fēng)殑鏈変笓闂ㄧ殑紿楀彛銆?/div>

杞埌鎴戜簡錛屾垜鍦?鍙風(fēng)獥鍙o紝涓涓樋涓夋懜鏍風(fēng)殑灝忓濞橀棶鎴戦渶瑕佷粈涔堟湇鍔★紝鎴戣鐢寵鏂板崱錛岀劧鍚庡ス瑕佹眰鎴戝嚭紺轟簡鎶ょ収錛孷isa錛孖-94錛屽噯澶囧嚭紺篒-797鐨勶紝濂硅涓嶇敤浜嗭紝鐒跺悗闂垜鏄惁鏄涓嬈℃潵緹庡浗錛屾垜璇存槸錛岀劧鍚庡ス褰曞叆銆佹壂鎻忕瓑錛?鍒嗛挓鍚庡氨閫掔粰涓寮犵‘璁ゅ崟錛岃1鍒?鍛紝鍗″氨浼?xì)瀵劸l欐垜銆?/div>

浠庡ご鍒板熬涓嶅埌鍗婁釜灝忔椂錛屼竴鍒嗛挶娌¤姳錛屾晥鐜囪繕綆楁瘮杈冮珮銆?/div>


zolly 2012-12-14 07:15 鍙戣〃璇勮
]]>Pega寮曞叆Apache POI璇籈xcelhttp://www.tkk7.com/zolly/archive/2012/09/12/Pega_POI_Excel.htmlzollyzollyWed, 12 Sep 2012 14:43:00 GMThttp://www.tkk7.com/zolly/archive/2012/09/12/Pega_POI_Excel.htmlhttp://www.tkk7.com/zolly/comments/387600.htmlhttp://www.tkk7.com/zolly/archive/2012/09/12/Pega_POI_Excel.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/387600.htmlhttp://www.tkk7.com/zolly/services/trackbacks/387600.htmlread xls - before Excel 2007
try {
    PRFile file =new PRFile("Excel File Name.xls");

    java.io.BufferedInputStream in = new java.io.BufferedInputStream(
            new PRInputStream(file));

    // open HSSFWorkbook
    org.apache.poi.poifs.filesystem.POIFSFileSystem fs = new org.apache.poi.poifs.filesystem.POIFSFileSystem(
            in);
    org.apache.poi.hssf.usermodel.HSSFWorkbook wb = new org.apache.poi.hssf.usermodel.HSSFWorkbook(
            fs);
    org.apache.poi.hssf.usermodel.HSSFCell cell = null;
    for (int sheetIndex = 0; sheetIndex < wb.getNumberOfSheets(); sheetIndex++) {
        org.apache.poi.hssf.usermodel.HSSFSheet st = wb
                .getSheetAt(sheetIndex);
        for (int rowIndex = 0; rowIndex <= st.getLastRowNum(); rowIndex++) {
            org.apache.poi.hssf.usermodel.HSSFRow row = st
                    .getRow(rowIndex);
            if (row == null) {
                continue;
            }

            String strJobName = "";
            cell = row.getCell(0);
            strJobName = cell.getStringCellValue().trim();
            ClipboardProperty propJobName = myStepPage.getProperty(".Jobs(<append>).JobName");
            propJobName.setValue(strJobName);
        }
    }
    in.close();
catch (java.io.FileNotFoundException e) {
    oLog.error(e.getMessage());
catch (java.io.IOException e) {
    oLog.error(e.getMessage());
}

Excel 2007 or later
try {
    PRFile file =new PRFile("Excel File Name.xlsx");

    java.io.BufferedInputStream in = new java.io.BufferedInputStream(
            new PRInputStream(file));
    // open XSSFWorkbook
    org.apache.poi.openxml4j.opc.OPCPackage docPackage = org.apache.poi.openxml4j.opc.OPCPackage
            .open(in);

    org.apache.poi.xssf.usermodel.XSSFWorkbook wb = new org.apache.poi.xssf.usermodel.XSSFWorkbook(
            docPackage);
    org.apache.poi.xssf.usermodel.XSSFCell cell = null;
    for (int sheetIndex = 0; sheetIndex < wb.getNumberOfSheets(); sheetIndex++) {
        org.apache.poi.xssf.usermodel.XSSFSheet st = wb
                .getSheetAt(sheetIndex);
        for (int rowIndex = 0; rowIndex <= st.getLastRowNum(); rowIndex++) {
            org.apache.poi.xssf.usermodel.XSSFRow row = st
                    .getRow(rowIndex);
            if (row == null) {
                continue;
            }

            String strJobName = "";
            cell = row.getCell(0);
            strJobName = cell.getStringCellValue().trim();
            ClipboardProperty propJobName = myStepPage.getProperty(".Jobs(<append>).JobName");
            propJobName.setValue(strJobName);
        }
    }
    in.close();
catch (java.io.FileNotFoundException e) {
    oLog.error(e.getMessage());
catch (java.io.IOException e) {
    oLog.error(e.getMessage());
catch (org.apache.poi.openxml4j.exceptions.InvalidFormatException e) {
    oLog.error(e.getMessage());
}


zolly 2012-09-12 22:43 鍙戣〃璇勮
]]>BPM涓枃璁哄潧鎺ㄨ崘http://www.tkk7.com/zolly/archive/2011/10/13/BPMCN.htmlzollyzollyThu, 13 Oct 2011 06:52:00 GMThttp://www.tkk7.com/zolly/archive/2011/10/13/BPMCN.htmlhttp://www.tkk7.com/zolly/comments/361149.htmlhttp://www.tkk7.com/zolly/archive/2011/10/13/BPMCN.html#Feedback1http://www.tkk7.com/zolly/comments/commentRss/361149.htmlhttp://www.tkk7.com/zolly/services/trackbacks/361149.htmlhttp://bpmcn.5d6d.com/bbs.php
璇ヨ鍧涙棬鍦ㄤ負(fù)BPM鐩稿叧涓撲笟浜哄憳錛屽紑鍙戜漢鍛樻垨鑰呮劅鍏磋叮鐨勪漢鎻愪緵涓涓簰鍔ㄤ氦嫻佺殑騫沖彴銆?br />鍧涗富鍋氳繃5騫碢ega BPM寮鍙戯紝鎵浠ョ洰鍓嶈涓璓ega BPM璇濋灞呭錛孭ega BPM鍦ㄥ浗鍐呭茍涓嶈澶у浜虹煡閬擄紝浣嗘槸瀹冨湪BPM鍥介檯甯傚満涓婄殑棰嗗ご緹娿傛墍璋?澶ф爲(wèi)搴曚笅濂戒箻鍑?錛屼笉鐭ラ亾鏈潵浼?xì)鎬庝箞鏍鳳紝浣嗘槸鑷沖皯B(tài)PM棰嗗煙鏄繎鍑犲勾鐨勭儹鐐癸紝瀹冮殢鐫浜戣綆楋紝鐗╄仈緗戜竴璧鋒垚涓?011騫寸殑鐑偣璇嶆眹錛孊PM鍦ㄤ笉涔呯殑灝嗘潵鍦ㄤ腑鍥藉繀灝嗘垚涓轟紒涓氶珮绔簲鐢ㄧ殑鍏歌寖銆?img src ="http://www.tkk7.com/zolly/aggbug/361149.html" width = "1" height = "1" />

zolly 2011-10-13 14:52 鍙戣〃璇勮
]]>
鎬庢牱鍙栧緱涓存椂鏂囦歡澶筍taticContent涓枃浠剁殑緇濆璺緞http://www.tkk7.com/zolly/archive/2010/10/20/GetRealPathOfTempDic.htmlzollyzollyWed, 20 Oct 2010 04:44:00 GMThttp://www.tkk7.com/zolly/archive/2010/10/20/GetRealPathOfTempDic.htmlhttp://www.tkk7.com/zolly/comments/335677.htmlhttp://www.tkk7.com/zolly/archive/2010/10/20/GetRealPathOfTempDic.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/335677.htmlhttp://www.tkk7.com/zolly/services/trackbacks/335677.html
file://web:/StaticContent/global/ServiceExport/鏂囦歡.xls

鏈夋椂鍊欓渶瑕佸彇寰楄繖涓枃浠跺湪鏈嶅姟鍣ㄤ笂鐨勭粷瀵硅礬寰勶紝鏂規(guī)硶濡備笅錛?br />
String strFileName = "file://web:/StaticContent/global/ServiceExport/鏂囦歡.xls";
String myFileRealPath = com.pega.pegarules.storage.FileStorageManager.getRealPathForFile(strFileName);


zolly 2010-10-20 12:44 鍙戣〃璇勮
]]>
瑙e喅 SQL Server 2005 涓枃涔辯爜http://www.tkk7.com/zolly/archive/2010/08/17/SQLServer2005ChineseCharacter.htmlzollyzollyTue, 17 Aug 2010 09:23:00 GMThttp://www.tkk7.com/zolly/archive/2010/08/17/SQLServer2005ChineseCharacter.htmlhttp://www.tkk7.com/zolly/comments/329124.htmlhttp://www.tkk7.com/zolly/archive/2010/08/17/SQLServer2005ChineseCharacter.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/329124.htmlhttp://www.tkk7.com/zolly/services/trackbacks/329124.html
濡傛灉SQL Server 2005緋葷粺鎺掑簭瑙勫垯涓?SQL_Latin1_General_CP1_CI_AS"錛岄偅涔堟暟鎹簱鍙?qiáng)鏁版嵁搴撳瓧娈垫帓搴忚鍒欓兘榛樿湄?fù)"SQL_Latin1_General_CP1_CI_AS"錛屽鏋滃瓧孌典負(fù)varchar錛屾彃鍏ヤ腑鏂囷紝鏁版嵁搴撴樉紺轟負(fù)"?????"錛屼笖鏁版嵁鏃犳硶淇銆傝В鍐沖姙娉曞涓嬶細(xì)

1銆?淇敼瀛楁鎺掑簭瑙勫垯涓?Chinese_PRC_CI_AS"錛寁archar鏀筺varchar錛孲QL鎻掑叆璇彞涓紝涓枃瀛楃鍓嶅姞"N"錛屽彲浠ユ彃鍏ヤ腑鏂囧瓧絎︺?br /> 2銆?淇敼鏁版嵁搴撴帓搴忚鍒欎負(fù)"Chinese_PRC_CI_AS"錛屽瓧孌典繚鎸乿archar錛孲QL璇彞涓嶅彉錛屾彃鍏ヤ腑鏂囧け璐ワ紝鏌ョ湅瀛楁灞炴у悗鍙戠幇錛屽瓧孌墊帓搴忚鍒欏疄闄呬笂娌℃湁鍙樺寲錛岃繕鏄粯璁や負(fù)"SQL_Latin1_General_CP1_CI_AS"錛屽啀淇敼瀛楁鎺掑簭瑙勫垯錛寁archar涓嶅彉錛孲QL涓嶅彉錛屽彲浠ユ彃鍏ヤ腑鏂囧瓧絎︺?br />
鎬葷粨錛?br /> 1銆?淇敼緋葷粺鎺掑簭瑙勫垯娌℃湁璇曡繃銆?br /> 2銆?淇敼鏁版嵁搴撴帓搴忚鍒欎笉浼?xì)鎶婃暟鎹簱涓瓧娈电殑鎺掑簭瑙勫垯鏀规帀锛屼絾鏄皋Z簡鏄劇ず涓枃錛屾暟鎹簱鎺掑簭瑙勫垯蹇呴』鏀廣?br /> 3銆?浠呬粎淇敼瀛楁鎺掑簭瑙勫垯錛岃繕涓嶈兘瀹屽叏瑙e喅闂銆?img src ="http://www.tkk7.com/zolly/aggbug/329124.html" width = "1" height = "1" />

zolly 2010-08-17 17:23 鍙戣〃璇勮
]]>
鏃犳硶瑙e喅 equal to 鎿嶄綔涓?"SQL_Latin1_General_CP1_CI_AS" 鍜?"Chinese_PRC_CI_AS" 涔嬮棿鐨勬帓搴忚鍒欏啿紿?/title><link>http://www.tkk7.com/zolly/archive/2010/06/21/SQLServer2005Collaction.html</link><dc:creator>zolly</dc:creator><author>zolly</author><pubDate>Sun, 20 Jun 2010 16:23:00 GMT</pubDate><guid>http://www.tkk7.com/zolly/archive/2010/06/21/SQLServer2005Collaction.html</guid><wfw:comment>http://www.tkk7.com/zolly/comments/324024.html</wfw:comment><comments>http://www.tkk7.com/zolly/archive/2010/06/21/SQLServer2005Collaction.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.tkk7.com/zolly/comments/commentRss/324024.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/zolly/services/trackbacks/324024.html</trackback:ping><description><![CDATA[<p>鏃犳硶瑙e喅 equal to 鎿嶄綔涓?"SQL_Latin1_General_CP1_CI_AS" 鍜?"Chinese_PRC_CI_AS" 涔嬮棿鐨勬帓搴忚鍒欏啿紿併?br /> Cannot resolve the collation conflict between SQL_Latin1_General_CP1_CI_AS and Finnish_Swedish_CI_AS in the equal to operation.</p> <p>緗戜笂鏈夊緢澶氳В鍐沖姙娉曪紝浣嗗熀鏈笂閮借鏀瑰姩SQL璇彞銆?/p> <p>宸ヤ綔涓紝浠庡浗澶栧緱鍒頒竴涓狹S SQL Server 2005鐨勫浠芥枃浠訛紝鎵撶畻鎶婁粬榪樺師鍒版湰鍦版湇鍔″櫒浣跨敤閲岄潰鐨勬暟鎹?/p> <p>鏈湴鎿嶄綔緋葷粺鏄疢S Windows XP Professional 鑻辨枃鐗堬紝瀹夎浜哅S SQL Server 2005 寮鍙戠増錛岃繕鍘熸暟鎹簱鍚庯紝榪愯鏁版嵁鍑虹幇閿欒濡備笅錛?br /> “鏃犳硶瑙e喅 equal to 鎿嶄綔涓?"SQL_Latin1_General_CP1_CI_AS" 鍜?"Chinese_PRC_CI_AS" 涔嬮棿鐨勬帓搴忚鍒欏啿紿併?#8221;</p> <p>媯鏌ユ暟鎹簱鍙戠幇錛歋QL Server 2005鏈嶅姟鍣ㄧ殑鎺掑簭瑙勫垯鏄?Chinese_PRC_CI_AS"錛岃屾暟鎹簱鐨勬帓搴忚鍒欐槸"SQL_Latin1_General_CP1_CI_AS"錛屽湪緗戜笂鏌ヨ寰楃煡錛屽師鍥犳槸榪欎袱縐嶆帓搴忚鍒欎笉緇熶竴鎵鑷淬傛垜灝濊瘯榪囦袱縐嶆柟娉曡浠栦滑緇熶竴錛屼絾緇撴灉閮芥棤鏁堬細(xì)<br /> 1銆?鏇存敼鏁版嵁搴撶殑鎺掑簭瑙勫垯涓?Chinese_PRC_CI_AS"銆傞氳繃SQL Server Management Studio鍥懼艦鐣岄潰Property-Options-Collaction鎴朣QL璇彞“ALTER DATABAS [DBName] COLLATE Chinese_PRC_CI_AS”鏇存敼鏃犳晥銆?br /> 2銆?閲嶆瀯鏁版嵁搴?#8220;setup.exe /qn INSTANCENAME=SQL2005 REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=sa2005 SQLCOLLATION=SQL_Latin1_General_CP1_CI_AS” 鏂規(guī)硶鏃犳晥銆?/p> <p>鍚庢潵鐮旂┒浜嗗緢澶氱鏂規(guī)硶錛屽涓嬭澆SQL Server 2005浼佷笟鐗堝畨瑁咃紝浣嗘槸浼佷笟鐗堜笉閫傚悎瀹夎鍦╔P Professional緋葷粺涓婏紝浠ュけ璐ュ憡緇堛?/p> <p>鏈鍚庡疄鍦ㄦ病鍔炴硶錛屽喅瀹氬湪姝ら噸瑁匰QL Server錛屾帹嫻嬪師鍥犳渶鍙兘榪樻槸鏈湴緋葷粺浣跨敤浜嗕腑鏂囩殑鎺掑簭瑙勫垯錛屽繀欏昏鏈琒erver鐨勫湴鎺掑簭瑙勫垯瀹夎鐨勬椂鍊欏氨璁劇疆鎴?SQL_Latin1_General_CP1_CI_AS"錛屽嵆鍦ㄧ函鑻辨枃鎿嶄綔緋葷粺涓嬪畨瑁匰QL Server 2005錛屽悗鏉ュ疄楠屾垚鍔熴傚叿浣撴柟娉曞涓嬶細(xì)<br /> 1銆?灝界鎴戠殑鎿嶄綔緋葷粺鏄疿P緋葷粺錛屼絾鏄?#8220;鍖哄煙璇█璁劇疆”涓叏閮ㄨ緗負(fù)涓枃浜嗭紝褰撳墠緋葷粺鍜屼腑鏂囨搷浣滅郴緇熸棤寮傘傝璁㏒QL Server 2005欏哄埄瀹夎錛岄渶瑕佸皢鎵鏈?#8220;鍖哄煙璇█璁劇疆”閮藉垏鎹㈡垚鑻辮(緹庡浗)錛岃繖涓湪涓枃鎿嶄綔緋葷粺涓篃搴旇鏈夋晥銆?br /> 2銆?瀹夎MS SQL Server 2005錛屽埌“鎺掑簭瑙勫垯璁劇疆”鐣岄潰鏃訛紝緋葷粺榛樿閫夋嫨鐨勬槸浠ヤ笅鎷夋鐨勫艦寮忛夋嫨鎺掑簭瑙勫垯鐨勯夐」錛岃嫳鏂囩姸鎬佷笅搴旇榛樿鏄?#8220;Latin1_General”錛?strong>鍒囧繉涓嶈閫夋嫨榪欎釜鎺掑簭瑙勫垯錛岄渶瑕侀夋嫨鐨勬槸絎簩涓崟閫夋錛歋QL鎺掑簭瑙勫垯(鐢ㄤ簬紜繚涓庢棫鐗堟湰鐨凷QL Server鍏煎) 榪欎釜閫夐」錛屽湪鍒楄〃涓夋嫨“瀛楀吀欏哄簭錛屼笉鍖哄垎澶у皬鍐欙紝鐢ㄤ簬1252瀛楃闆嗐?#8221;</strong>灝眔k浜嗭紝榪欏氨鏄紶璇翠腑鐨?SQL_Latin1_General_CP1_CI_AS"瀛楃闆嗭紝鍗寵嫳鏂囧瓧絎﹂泦銆?/p> <p>SQL Server瀹夎濂藉悗錛屾墦寮SQL Server Management Studio鐣岄潰鏌ョ湅Server鐨勬帓搴忚鍒欙紝紜涓?SQL_Latin1_General_CP1_CI_AS"錛岄噸鏂板鍏ュ鏉ュ浠芥枃浠訛紝澶у姛鍛婃垚錛?/p><img src ="http://www.tkk7.com/zolly/aggbug/324024.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/zolly/" target="_blank">zolly</a> 2010-06-21 00:23 <a href="http://www.tkk7.com/zolly/archive/2010/06/21/SQLServer2005Collaction.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Legacy System (or Legacy based Application) definitionhttp://www.tkk7.com/zolly/archive/2009/12/18/LegacySystem.htmlzollyzollyFri, 18 Dec 2009 08:26:00 GMThttp://www.tkk7.com/zolly/archive/2009/12/18/LegacySystem.htmlhttp://www.tkk7.com/zolly/comments/306579.htmlhttp://www.tkk7.com/zolly/archive/2009/12/18/LegacySystem.html#Feedback1http://www.tkk7.com/zolly/comments/commentRss/306579.htmlhttp://www.tkk7.com/zolly/services/trackbacks/306579.html1. Obsolete computer system that may still be in use because its data cannot be changed to newer or standard formats, or its application programs cannot be upgraded. 
http://www.businessdictionary.com/definition/legacy-system.html
2.  An information technology or other automated system that is technologically obsolete. It may be too expensive to update or replace, but it is still needed for the companyÂ’s operations and thus is kept operational even though a newer system is in use.
http://www.yourdictionary.com/finance/legacy-system
3. Legacy system from Wikipedia (http://en.wikipedia.org/wiki/Legacy_system)

*璁$畻鏈烘妧鏈閫熷彂灞曪紝鏃ユ柊鏈堝紓錛岃澶氫紒涓氬洜涓轟笟鍔″彂灞曠殑闇瑕佸拰甯傚満绔炰簤鐨勫帇鍔涳紝闇瑕佸緩璁炬柊鐨勪紒涓氫俊鎭郴緇熴傚湪榪欑鍗囩駭鏀歸犵殑榪囩▼涓紝鎬庝箞澶勭悊鍜屽埄鐢ㄩ偅浜涘巻鍙查仐鐣欎笅鏉ョ殑鑰佺郴緇燂紝鎴愪負(fù)褰卞搷鏂扮郴緇熷緩璁炬垚璐ュ拰寮鍙戞晥鐜囩殑鍏抽敭鍥犵礌涔嬩竴銆傛垜浠О榪欎簺鑰佺郴緇熶負(fù)閬楃暀緋葷粺錛坙egacy   system錛夈? 
http://topic.csdn.net/t/20050719/22/4155342.html 
  銆銆鐩墠錛屽鏈拰宸ヤ笟鐣屽閬楃暀緋葷粺鐨勫畾涔夋病鏈夌粺涓鐨勬剰瑙併侭ennett鍦?995騫村閬楃暀緋葷粺浣滀簡濡備笅鐨勫畾涔塠1]錛氶仐鐣欑郴緇熸槸鎴戜滑涓嶇煡閬撳浣曞鐞嗕絾瀵規(guī)垜浠殑緇勭粐鍙堟槸鑷沖叧閲嶈鐨勭郴緇熴侭rodie鍜孲tonebraker瀵歸仐鐣欑郴緇熺殑瀹氫箟濡備笅[2]錛氶仐鐣欑郴緇熸槸鎸囦換浣曞熀鏈笂涓嶈兘榪涜淇敼鍜岃繘鍖栦互婊¤凍鏂扮殑鍙樺寲浜嗙殑涓氬姟闇姹傜殑淇℃伅緋葷粺銆?  
  銆銆鎴戜滑璁や負(fù)錛岄仐鐣欑郴緇熷簲璇ュ叿鏈変互涓嬬壒鐐癸細(xì)   
  銆銆錛?錛夌郴緇熻櫧鐒跺畬鎴愪紒涓氫腑璁稿閲嶈鐨勪笟鍔$鐞嗗伐浣滐紝浣嗗凡緇忎笉鑳藉畬鍏ㄦ弧瓚寵姹傘備竴鑸疄鐜頒笟鍔″鐞嗙數(shù)瀛愬寲鍙?qiáng)閮ㄥ垎浼佷笟绠$悊鍔熻兘锛屽緢灏戞秹鍙?qiáng)緇忚惀鍐崇瓥銆?  
  銆銆錛?錛夌郴緇熷湪鎬ц兘涓婂凡緇忚惤鍚庯紝閲囩敤鐨勬妧鏈凡緇忚繃鏃躲傚澶氶噰鐢ㄤ富鏈?緇堢褰㈠紡鎴栧皬鍨嬫満緋葷粺錛岃蔣浠朵嬌鐢ㄦ眹緙栬璦鎴栫涓変唬紼嬪簭璁捐璇█鐨勬棭鏈熺増鏈紑鍙戯紝浣跨敤鏂囦歡緋葷粺鑰屼笉鏄暟鎹簱銆?  
  銆銆錛?錛夐氬父鏄ぇ鍨嬬殑杞歡緋葷粺錛屽凡緇忚瀺鍏ヤ紒涓氱殑涓氬姟榪愯鍜屽喅絳栫鐞嗘満鍒朵箣涓紝緇存姢宸ヤ綔鍗佸垎鍥伴毦銆?  
  銆銆錛?錛夌郴緇熸病鏈変嬌鐢ㄧ幇浠h蔣浠跺伐紼嬫柟娉曡繘琛岀鐞嗗拰寮鍙戯紝鐜板湪鍩烘湰涓婂凡緇忔病鏈夋枃妗o紝寰堥毦鐞嗚В銆?/span>


zolly 2009-12-18 16:26 鍙戣〃璇勮
]]>How to read and write Properties from pzPVStream column?http://www.tkk7.com/zolly/archive/2009/06/01/pzPVStream.htmlzollyzollyMon, 01 Jun 2009 09:22:00 GMThttp://www.tkk7.com/zolly/archive/2009/06/01/pzPVStream.htmlhttp://www.tkk7.com/zolly/comments/279433.htmlhttp://www.tkk7.com/zolly/archive/2009/06/01/pzPVStream.html#Feedback2http://www.tkk7.com/zolly/comments/commentRss/279433.htmlhttp://www.tkk7.com/zolly/services/trackbacks/279433.html
I don't know how Obj-Open and Obj-List work, how to read pzPVStream to get the unexposed property. Is there any general way to get the binary data form database? If the pzPVStream image data is standardized data format, if not, how the PegaSystems to write and read it.

Can we read and write column value from pzPVStream by Java code directly out of PRPC? Any body who could provide any solution?

PDN said, Rules XML stream is stored in BLOB. Generally, BLOB column is not encoded if we don't check "Encrypt BLOB?".
Developer can read information by following: it is the way to read XML Stream from CLOB column.
Reader reader = ResultSet.getCharacterStream();
I try to use this method to write the stream into file, the content is always encode. I don't know what was wrong.

zolly 2009-06-01 17:22 鍙戣〃璇勮
]]>
PRPC JSR94 Troubleshootinghttp://www.tkk7.com/zolly/archive/2009/05/31/JSR94TroubleShooting.htmlzollyzollySun, 31 May 2009 10:00:00 GMThttp://www.tkk7.com/zolly/archive/2009/05/31/JSR94TroubleShooting.htmlhttp://www.tkk7.com/zolly/comments/279254.htmlhttp://www.tkk7.com/zolly/archive/2009/05/31/JSR94TroubleShooting.html#Feedback1http://www.tkk7.com/zolly/comments/commentRss/279254.htmlhttp://www.tkk7.com/zolly/services/trackbacks/279254.html Reference Document: jsr94service52.pdf

鎸夌収鏉ヨ嚜PDN鏂囨。jsr94service52涓殑JSR94 Sample涓姝ヤ竴姝ラ噸鐜版椂錛屾棤璁洪噰鐢ˋnt榪樻槸Eclipse緙栬瘧榪愯錛岄兘鍙兘浼?xì)鍑虹幇濡備笅鐨勯棶棰樺Q?br />
2009-05-31 17:14:43,500 [     user-5a57c3e103] (    etier.engine.EngineStartup) ERROR   - PegaRULES initialization failed. Server: user-5a57c3e103
com.pega.pegarules.pub.context.InitializationFailedError: PRNodeImpl init failed
    at com.pega.pegarules.engine.context.PREnvironment.getThreadAndInitialize(PREnvironment.java:
338)
    at com.pega.pegarules.etier.engine.EngineStartup.initEngine(EngineStartup.java:
456)
    at com.pega.pegarules.etier.impl.EngineImpl._initEngine_privact(EngineImpl.java:
125)
    at com.pega.pegarules.etier.impl.EngineImpl.doStartup(EngineImpl.java:
98)
    at com.pega.pegarules.priv.services.jsr94.PRRuntime.startEngine(PRRuntime.java:
327)
    at com.pega.pegarules.priv.services.jsr94.PRRuntime.getEngine(PRRuntime.java:
87)
    at com.pega.pegarules.priv.services.jsr94.PRRuntime.<init>(PRRuntime.java:
78)
    at com.pega.pegarules.priv.services.jsr94.PRAdministrator.<init>(PRAdministrator.java:
81)
    at com.pega.pegarules.pub.services.jsr94.PRuleServiceProvider.<init>(PRuleServiceProvider.java:
64)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:
513)
    at java.lang.Class.newInstance0(Class.java:
355)
    at java.lang.Class.newInstance(Class.java:
308)
    at javax.rules.RuleServiceProviderManager.registerRuleServiceProvider(RuleServiceProviderManager.java:
84)
    at javax.rules.RuleServiceProviderManager.registerRuleServiceProvider(RuleServiceProviderManager.java:
67)
    at com.pega.pegarules.pub.services.jsr94.PRuleServiceProvider.<clinit>(PRuleServiceProvider.java:
52)
    at com.pega.pegarules.sample.service.jsr94.client.SubmitClaim.run(SubmitClaim.java:
97)
Caused by: com.pega.pegarules.pub.PRRuntimeException: Method Invocation exception
    at com.pega.pegarules.engine.context.PREnvironment.doWithRequestorLocked(PREnvironment.java:
731)
    at com.pega.pegarules.engine.context.PREnvironment.doWithRequestorLocked(PREnvironment.java:
568)
    at com.pega.pegarules.engine.context.PREnvironment.getThreadAndInitialize(PREnvironment.java:
328)
     
18 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
    at java.lang.reflect.Method.invoke(Method.java:
597)
    at com.pega.pegarules.engine.context.PREnvironment.doWithRequestorLocked(PREnvironment.java:
729)
     
20 more
Caused by: java.lang.NoClassDefFoundError: javax/servlet/jsp/JspFactory
    at com.pega.pegarules.engine.context.PRNodeImpl.updateSystemStart(PRNodeImpl.java:
1519)
    at com.pega.pegarules.engine.context.PRNodeImpl.startNode(PRNodeImpl.java:
1157)
    at com.pega.pegarules.engine.context.PREnvironment.finishInit(PREnvironment.java:
833)
     
25 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.jsp.JspFactory
    at java.net.URLClassLoader$
1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:
188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:
307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:
252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
320)
     
28 more

濡傛灉鍑虹幇綾諱技javax.serverlet.jsp.JspFactory鐩稿叧鐨勯棶棰橈紝鍙兘鏈変袱涓師鍥犲紩璧鳳細(xì)
1. 鍦ㄦ墍鏈夊紩鐢ㄧ殑Jar path涓紝娌℃壘鍒癹avax.serverlet.jsp.JspFactory綾匯?br /> 2. 鍦ㄥ涓狫ar path涓紝閮芥壘鍒癹avax.serverlet.jsp.JspFactory綾伙紝鍑虹幇鍐茬獊銆?br />
鍦≒RPC涓嬌鐢↗SR94錛岄渶瑕佽皟鐢╯ervlet-api.jar錛岃jar鍖呮潵鑷猅omcat/common/lib錛屾煡璇?a >http://www.findjar.com/index.jsp?query=javax.servlet.jsp.JspFactory鍙煡鍦╯ervlet-api.jar涓簲璇ワ紙涓嶆暍鑲畾錛夊寘鎷琷avax.serverlet.jsp.JspFactory綾伙紝浣嗙▼搴忎粛鐒舵姤鍛婇敊璇俊鎭備粠鏌ヨ緇撴灉涓緱鐭ュ湪鍚屾牱鐨勭洰褰曚笅錛岃繕鏈変竴涓猨ar鍖卝sp-api.jar涔熷寘鍚綾匯備簬鏄紝鏈漢灝嗕袱涓猨ar鍖呭悓鏃舵斁鍒癊clipse鐨凱ath涓幓錛岀粨鏋滅紪璇戣繍琛屾垚鍔熴傛墍浠ユ湰浜烘帹嫻嬶紝鍦╝pache-tomcat-5.5.17鐗堟湰涓紝servlet-api.jar涓茍涓嶅寘鍚玧avax.serverlet.jsp.JspFactory綾匯?br />
濡傛湁寮傝錛岃繕璇烽珮鎵嬫寚鐐癸紝浠ヤ笂鎺ㄦ柇錛岀函灞炰釜浜烘剼瑙併?img src ="http://www.tkk7.com/zolly/aggbug/279254.html" width = "1" height = "1" />

zolly 2009-05-31 18:00 鍙戣〃璇勮
]]>
Business Intelligence Extract (BIX)http://www.tkk7.com/zolly/archive/2009/05/27/BIX.htmlzollyzollyWed, 27 May 2009 01:48:00 GMThttp://www.tkk7.com/zolly/archive/2009/05/27/BIX.htmlhttp://www.tkk7.com/zolly/comments/278149.htmlhttp://www.tkk7.com/zolly/archive/2009/05/27/BIX.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/278149.htmlhttp://www.tkk7.com/zolly/services/trackbacks/278149.html BIX stands for Business Intelligence Extract , enables custormer to extract SmartBPM case data for the purpose of merging it with information from other enterprise systems in a centralized data warehouse. Organizations now have the ablility to quickly and easily select and extract all BPM data including work detail, assignment in various formats including SQL tables, comma-separated-values (CSV) files, and XML files. You can directly import these outputs into popular business intelligence applications for analysis and reporting. BIX can be added to any V5.1+system.

All data available for BIX. Extract concurrentlyfrom one or multiple PRPC.

BIX actually is a PRPC rules which havd functions that can extract Property rules data including Blob data from database into SQL statement, CSV and XML format file.
BIX as an general system rules be deployed on V5.5+ system.

Please refer to: http://pdn.pega.com

zolly 2009-05-27 09:48 鍙戣〃璇勮
]]>
Java瑙勫垯寮曟搸JSR94鍦≒RPC涓簲鐢ㄧ殑璋冪爺http://www.tkk7.com/zolly/archive/2009/05/20/PRPCJSR94.htmlzollyzollyWed, 20 May 2009 15:35:00 GMThttp://www.tkk7.com/zolly/archive/2009/05/20/PRPCJSR94.htmlhttp://www.tkk7.com/zolly/comments/271823.htmlhttp://www.tkk7.com/zolly/archive/2009/05/20/PRPCJSR94.html#Feedback1http://www.tkk7.com/zolly/comments/commentRss/271823.htmlhttp://www.tkk7.com/zolly/services/trackbacks/271823.html鎽樿嚜錛?/em>Java瑙勫垯寮曟搸涓庡叾API(JSR-94))

PegaRULES® JSR 94 鏈嶅姟鍙互鎺ユ敹鏉ヨ嚜瀹屽叏鐙珛浜嶱RPC鐨勫閮ㄧ郴緇熺殑璇鋒眰騫剁粰鍑哄弽搴斻侾RPC瀹炵幇浜嗘墍鏈塉SR94瑙勮寖涓殑鎵鏈塉ava 鎺ュ彛錛屼竴涓閮↗SR瀹㈡埛绔▼搴忚兘澶熼氳繃PegaRULES寮曟搸鐩存帴璁塊棶PRPC鏁版嵁搴撴潵璇誨彇Rules錛岃屼笉緇忚繃PRPC Web搴旂敤紼嬪簭錛涘鏋淧RPC Web 搴旂敤紼嬪簭姝e湪榪愯錛孞SR94瀹㈡埛绔▼搴忓拰PRPC搴旂敤紼嬪簭鍙互浣滀負(fù)瀹屽叏鐙珛鐨勭郴緇熷叡浜悓涓涓狿egaRULES鏁版嵁搴撱?br />
鍦≒RPC涓彁渚汮SR94鏈嶅姟鐨凜lass鏄疪ule-Service-JSR94錛屽綋鐒惰嚦灝戜篃闇瑕佷竴涓猄ervicePackage錛屼竴涓┍鍔ˋctivity銆?br />
PRPC涓篔SR94鎻愪緵鐨凱rovider class 鏄痗om.pega.pegarules.pub.services.jsr94.PRuleServiceProvider銆?br />
涓嬪浘涓篔SR94 Service鐨勭郴緇熸灦鏋勫浘錛?br />

Please Refer to: http://pdn.pega.com

zolly 2009-05-20 23:35 鍙戣〃璇勮
]]>
Java鎿嶄綔MS Word -- jacob璧勬簮鏀墮泦http://www.tkk7.com/zolly/archive/2009/05/20/Jacob.htmlzollyzollyWed, 20 May 2009 15:00:00 GMThttp://www.tkk7.com/zolly/archive/2009/05/20/Jacob.htmlhttp://www.tkk7.com/zolly/comments/271819.htmlhttp://www.tkk7.com/zolly/archive/2009/05/20/Jacob.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/271819.htmlhttp://www.tkk7.com/zolly/services/trackbacks/271819.htmlhttp://sourceforge.net/projects/jacob-project/

浠ヤ笅鏉ヨ嚜緗戠粶鏀墮泦錛?/strong>

Java COM Automation with Jacob and JBuilder (璇?淇敼-鍙﹀瓨涓?
http://edn.embarcadero.com/article/33305

Jacob瑙e喅Word鏂囨。鐨勮鍐欓棶棰?(甯哥敤鎿嶄綔鏂規(guī)硶)
http://www.cnblogs.com/xinxindiandeng/archive/2008/12/10/1351570.html

鏈夊叧jacob鐨剋ord鎿嶄綔鐮旂┒ (甯哥敤杈冨叏闈㈢殑鎿嶄綔鏂規(guī)硶)
http://zhuxue-feng.javaeye.com/blog/35350

Java鎿嶄綔Microsoft Word涔媕acob (123) (姣旇緝鍏ㄩ潰鐨勬搷浣滄柟娉?
http://www.cn-java.com/www1/?action-viewnews-itemid-13102
http://tech.ddvip.com/2009-04/1239274932114206_2.html
http://shenzhenchufa.blog.51cto.com/730213/147806 (鍦ㄥ綋鍓嶆枃妗f寚瀹氱殑浣嶇疆鎷瘋礉鏉ヨ嚜鍙︿竴涓枃妗d腑鐨勬钀?

jacob鐨勪嬌鐢ㄦ柟娉曟葷粨 (姣旇緝鍏ㄩ潰鐨勬搷浣滄柟娉?
http://blog.csdn.net/yangyinbo/archive/2008/11/25/3373576.aspx



zolly 2009-05-20 23:00 鍙戣〃璇勮
]]>
瑙勫垯寮曟搸 (Rule Engine)http://www.tkk7.com/zolly/archive/2009/05/20/RuleEngine.htmlzollyzollyWed, 20 May 2009 04:37:00 GMThttp://www.tkk7.com/zolly/archive/2009/05/20/RuleEngine.htmlhttp://www.tkk7.com/zolly/comments/271687.htmlhttp://www.tkk7.com/zolly/archive/2009/05/20/RuleEngine.html#Feedback0http://www.tkk7.com/zolly/comments/commentRss/271687.htmlhttp://www.tkk7.com/zolly/services/trackbacks/271687.html瑙勫垯寮曟搸鍑虹幇鐨勭洰鐨勶細(xì)
澶嶆潅浼佷笟綰ч」鐩殑寮鍙戜互鍙?qiáng)鍏朵腑闅忓閮ㄦ潯錃g涓嶆柇鍙樺寲鐨勪笟鍔¤鍒?business logic),榪垏闇瑕佸垎紱誨晢涓氬喅絳栬呯殑鍟嗕笟鍐崇瓥閫昏緫鍜屽簲鐢ㄥ紑鍙戣呯殑鎶鏈喅絳栵紝騫舵妸榪欎簺鍟嗕笟鍐崇瓥鏀懼湪涓績鏁版嵁搴撴垨鍏朵粬緇熶竴鐨勫湴鏂癸紝璁╁畠浠兘鍦ㄨ繍琛屾椂錛堝嵆鍟嗗姟鏃墮棿錛夊彲浠ュ姩鎬佸湴綆$悊鍜屼慨鏀逛粠鑰屾彁渚涜蔣浠剁郴緇熺殑鏌旀у拰閫傚簲鎬с傝鍒欏紩鎿庢鏄簲鐢ㄤ簬涓婅堪鍔ㄦ佺幆澧冧腑鐨勪竴縐嶈В鍐蟲柟娉曘?br />
瑙勫垯寮曟搸鍑虹幇鐨?/strong>鐩稿叧鑳屾櫙錛?/strong>
浼佷笟綆$悊鑰呭浼佷笟綰T緋葷粺鐨勫紑鍙戞湁鐫濡備笅鐨勮姹傦細(xì)(1)涓烘彁楂樻晥鐜囷紝綆$悊嫻佺▼蹇呴』鑷姩鍖栵紝鍗充嬌鐜頒唬鍟嗕笟瑙勫垯寮傚父澶嶆潅(2)甯傚満瑕佹眰涓氬姟瑙勫垯緇忓父鍙樺寲錛孖T緋葷粺蹇呴』渚濇嵁涓氬姟瑙勫垯鐨勫彉鍖栧揩閫熴佷綆鎴愭湰鐨勬洿鏂?3)涓轟簡蹇熴佷綆鎴愭湰鐨勬洿鏂幫紝涓氬姟浜哄憳搴旇兘鐩存帴綆$悊IT緋葷粺涓殑瑙勫垯錛屼笉闇瑕佺▼搴忓紑鍙戜漢鍛樺弬涓庛?br /> 鑰岄」鐩紑鍙戜漢鍛樺垯紕板埌浜嗕互涓嬮棶棰?(1)紼嬪簭=綆楁硶+鏁版嵁緇撴瀯錛屾湁浜涘鏉傜殑鍟嗕笟瑙勫垯寰堥毦鎺ㄥ鍑虹畻娉曞拰鎶借薄鍑烘暟鎹ā鍨?2)杞歡宸ョ▼瑕佹眰浠庨渶姹?>璁捐->緙栫爜錛岀劧鑰屼笟鍔¤鍒欏父甯稿湪闇姹傞樁孌靛彲鑳借繕娌℃湁鏄庣‘錛屽湪璁捐鍜岀紪鐮佸悗榪樺湪鍙樺寲錛屼笟鍔¤鍒欏線寰宓屽湪緋葷粺鍚勫浠g爜涓?3)瀵圭▼搴忓憳鏉ヨ錛岀郴緇熷凡緇忕淮鎶ゃ佹洿鏂板洶闅撅紝鏇翠笉鍙兘璁╀笟鍔′漢鍛樻潵綆$悊銆?br />
浠涔堟槸涓氬姟瑙勫垯錛?br /> 涓涓笟鍔¤鍒欏寘鍚竴緇勬潯浠跺拰鍦ㄦ鏉′歡涓嬫墽琛岀殑鎿嶄綔錛屽畠浠〃紺轟笟鍔¤鍒欏簲鐢ㄧ▼搴忕殑涓孌典笟鍔¢昏緫銆備笟鍔¤鍒欓氬父搴旇鐢變笟鍔″垎鏋愪漢鍛樺拰絳栫暐綆$悊鑰呭紑鍙戝拰淇敼錛屼絾鏈変簺澶嶆潅鐨勪笟鍔¤鍒欎篃鍙互鐢辨妧鏈漢鍛樹嬌鐢ㄩ潰鍚戝璞$殑鎶鏈璦鎴栬剼鏈潵瀹氬埗銆?strong>涓氬姟瑙勫垯鐨勭悊璁哄熀紜鏄?璁劇疆涓涓垨澶氫釜鏉′歡錛屽綋婊¤凍榪欎簺鏉′歡鏃朵細(xì)瑙﹀彂涓涓垨澶氫釜鎿嶄綔銆?br />
浠涔堟槸瑙勫垯寮曟搸錛?br />
瑙勫垯寮曟搸鐢辨帹鐞嗗紩鎿庡彂灞曡屾潵錛屾槸涓縐嶅祵鍏ュ湪搴旂敤紼嬪簭涓殑緇勪歡錛屽疄鐜頒簡灝嗕笟鍔″喅絳栦粠搴旂敤紼嬪簭浠g爜涓垎紱誨嚭鏉ワ紝騫朵嬌鐢ㄩ瀹氫箟鐨勮涔夋ā鍧楃紪鍐欎笟鍔″喅絳栥傛帴鍙楁暟鎹緭鍏ワ紝瑙i噴涓氬姟瑙勫垯錛屽茍鏍規(guī)嵁瑙勫垯鍋氬嚭涓氬姟鍐崇瓥銆?br />
瑙勫垯寮曟搸鐨勭畻娉曪細(xì)
澶ч儴鍒嗚鍒欏紩鎿庝駭鍝佺殑綆楁硶錛屽熀鏈笂閮芥潵鑷簬Dr. Charles Forgy鍦?979騫存彁鍑虹殑RETE綆楁硶鍙?qiáng)鍏跺彉浣撳Q孯ete綆楁硶鏄洰鍓嶆晥鐜囨渶楂樼殑涓涓狥orward-Chaining鎺ㄧ悊綆楁硶錛孌rools欏圭洰鏄疪ete綆楁硶鐨勪竴涓潰鍚戝璞$殑Java瀹炵幇錛孯ete綆楁硶鍏舵牳蹇冩濇兂鏄皢鍒嗙鐨勫尮閰嶉」鏍規(guī)嵁鍐呭鍔ㄦ佹瀯閫犲尮閰嶆爲(wèi)錛屼互杈懼埌鏄捐憲闄嶄綆璁$畻閲忕殑鏁堟灉銆?br />
Java瑙勫垯寮曟搸API(JSR-94)
Java瑙勫垯寮曟搸API鐢眏avax.rules鍖呭畾涔夛紝鏄闂鍒欏紩鎿庣殑鏍囧噯浼佷笟綰PI銆侸ava瑙勫垯寮曟搸API鍏佽瀹㈡埛紼嬪簭浣跨敤緇熶竴鐨勬柟寮忓拰涓嶅悓鍘傚晢鐨勮鍒欏紩鎿庝駭鍝佷氦浜掞紝灝卞儚浣跨敤JDBC緙栧啓鐙珛浜庡巶鍟嗚闂笉鍚岀殑鏁版嵁搴撲駭鍝佷竴鏍楓?br />
鍘熸枃璇峰弬鑰冿細(xì)http://www.ibm.com/developerworks/cn/java/j-java-rules/#N10041 (Java瑙勫垯寮曟搸涓庡叾API(JSR-94))

zolly 2009-05-20 12:37 鍙戣〃璇勮
]]>What is a Healthy PRPC System? -- Donehttp://www.tkk7.com/zolly/archive/2009/05/20/HealthyPRPC.htmlzollyzollyWed, 20 May 2009 01:23:00 GMThttp://www.tkk7.com/zolly/archive/2009/05/20/HealthyPRPC.htmlhttp://www.tkk7.com/zolly/comments/271649.htmlhttp://www.tkk7.com/zolly/archive/2009/05/20/HealthyPRPC.html#Feedback4http://www.tkk7.com/zolly/comments/commentRss/271649.htmlhttp://www.tkk7.com/zolly/services/trackbacks/271649.html鎴戜滑鍋歅RPC欏圭洰鐨勭淮鎶わ紝嫻嬭瘯錛屼紭鍖栵紝鏇存柊絳夌瓑錛岄兘鏄湪宸叉湁鐨勪駭鍝佷笂鐨勪竴縐嶅悗緇湇鍔★紝閮芥槸涓縐?#8220;鍙戠幇闂錛岃В鍐抽棶棰?#8221;鐨勬濊礬錛岃繖縐嶆柟寮忓線寰浣垮緱欏圭洰鍛ㄦ湡鍙橀暱錛屾垚鏈彁楂橈紝榪欎簺閮芥槸瀹㈡埛涓嶆効鎰忕湅鍒扮殑緇撴灉銆?br />
瀹氫箟涓濂桯ealthy PRPC鐨勫噯鍒欙紝杈懼埌榪欎釜鏍囧噯鍚庣殑浜у搧鎵嶅厑璁稿彂甯冨埌瀹㈡埛錛屾垨鑰呭湪鍓嶆湡灝辨寜鐓ц繖涓爣鍑嗕弗鏍煎疄鏂斤紝榪欐墠鏄槻鎮(zhèn)d簬鏈劧錛屾湭闆ㄧ桓緙殑鏈濂芥柟寮忥紝鍗充究鏈夊ぇ鐨勫彉鍔紝鍚庢湡涔熶細(xì)澶уぇ鍑忓皯鏃墮棿鍛ㄦ湡鍜屼漢鍔涜儲鍔涖?br />
榪欎釜闂鎴戞兂涔熻涓嶄細(xì)鎵懼埌鏍囧噯絳旀錛屾垨璁鎬篃鍙瓨鍦ㄤ簬BPM寮鍙戣璁$鐞嗗疄鏂界殑浜哄憳涔嬮棿緇忛獙鐨勬綔縐婚粯鍖栥備絾鏄壘鍒頒竴涓叏闈㈢殑媯嫻嬫爣鍑嗭紝鍙互鎴愪負(fù)PRPC錛岀敋鑷矪PM鎵閬靛驚鐨勬爣鍑嗭紝榪欏氨鏄畠鐨勬剰涔夋墍鍦ㄣ?br />

Following comes from Frank:
No entry in Pega-Alerts log
Normally check the alerts log file.
That's the benchmark from Pega...and normally 500ms is the standard...any SQL/Activity , if the execution exceeds 500ms, it's not normal., we need to find out why...
That needs some expericne, you should be very familar with the table structure, and needs advacned DB knowledge.

zolly 2009-05-20 09:23 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 猫咪www免费人成网站| 国产人妖ts在线观看免费视频| 日韩在线视频播放免费视频完整版| 亚洲最大在线观看| 亚洲乱码无码永久不卡在线| 国产成人精品男人免费| 日韩亚洲国产高清免费视频| a毛片免费全部在线播放** | 日本免费网址大全在线观看| a级毛片免费完整视频| 特级aa**毛片免费观看| 亚洲欧美乱色情图片| 水蜜桃视频在线观看免费| 亚洲youjizz| 亚洲国产成人精品电影| 亚洲综合婷婷久久| 亚洲免费观看视频| 相泽亚洲一区中文字幕| 亚洲精品线路一在线观看| 最近免费中文字幕MV在线视频3| 色老头综合免费视频| 老司机免费午夜精品视频| 亚洲国产精品自在自线观看| 自拍偷自拍亚洲精品情侣| 精品韩国亚洲av无码不卡区| 亚洲国产精品嫩草影院| 中文字幕无码亚洲欧洲日韩| 亚洲一区中文字幕在线电影网 | 久久免费精彩视频| a级毛片毛片免费观看永久| 国产午夜精品理论片免费观看| 一级毛片完整版免费播放一区| 国产成人久久精品亚洲小说| 国产精品亚洲专区无码牛牛| 美女啪啪网站又黄又免费| 午夜亚洲国产精品福利| 免费无码国产V片在线观看| 日韩毛片一区视频免费| 国产V片在线播放免费无码| 国产免费黄色无码视频 | 亚洲AV无码国产在丝袜线观看|