| | |
| | | {
|
| | | public class TraceSubject
|
| | | {
|
| | | static String DEFAULTDBSTR;
|
| | | static bool IsNewCase;
|
| | | static ArrayList m_LinkList; // store the switch of the new case path
|
| | | static TraceEngine m_tEngine;
|
| | | static Hashtable m_TreeMap; // store the switch of the old case path
|
| | | static int s_Fsc;
|
| | | static int s_Ufid;
|
| | | private RecordLog _Plogger;
|
| | | private ArrayList m_Tmp = new ArrayList();
|
| | | private NetworkContext m_pContext;
|
| | | private String m_dbConnectionString;
|
| | | static bool IsNewCase;
|
| | | static ArrayList m_LinkList; // store the switch of the new case path
|
| | | static TraceEngine m_tEngine;
|
| | | static Hashtable m_TreeMap; // store the switch of the old case path
|
| | | static int s_Fsc;
|
| | | static int s_Ufid;
|
| | | private RecordLog _Plogger;
|
| | | private ArrayList m_Tmp = new ArrayList();
|
| | | private NetworkContext m_pContext;
|
| | |
|
| | | private OracleConnection _ConnectionTPC = null;
|
| | | private OracleTransaction _Transaction;
|
| | |
|
| | | public TraceSubject(OracleConnection _Conn, OracleTransaction _Trx, RecordLog _Log) |
| | | public TraceSubject(OracleConnection _Conn, OracleTransaction _Trx, String traceConnectionString, RecordLog _Log) |
| | | {
|
| | | _ConnectionTPC = _Conn;
|
| | | _Transaction = _Trx;
|
| | | _Plogger = _Log;
|
| | | m_dbConnectionString = traceConnectionString;
|
| | |
|
| | | try
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | void configTrace() {
|
| | | if (DEFAULTDBSTR == null) {
|
| | | DEFAULTDBSTR = "basedb/basedb000@nntpc";
|
| | | if (m_dbConnectionString == null) {
|
| | | m_dbConnectionString = "basedb/basedb000@nntpc";
|
| | | }
|
| | | try {
|
| | | if (m_pContext == null) m_pContext = m_tEngine.teoCreateContext();
|
| | |
|
| | | if (m_pContext.IsConnected == 0) {
|
| | | m_pContext.Connect("", DEFAULTDBSTR);
|
| | | m_pContext.Connect("", m_dbConnectionString);
|
| | | }
|
| | | }
|
| | | catch (Exception ex) {
|