Time of Update: 2018-08-13
package com.jms; import java.util.Map;import java.util.concurrent.ConcurrentHashMap; import javax.jms.BytesMessage;import javax.jms.Connection;import javax.jms.ConnectionFactory;import javax.jms.Destination;import javax.jms.JMSException;import javax.
Time of Update: 2018-08-13
4.3. 添加 Hibernate 功能支援 操作:[Menu] MyEclipse/Project Capabilities/Add Hibernate Capabilities Hibernate 版本(Hibernate Specification)選擇 "Hibernate 3.1" ,開發包(libraries)選擇 Hibernate 3.1 Core Libraries、Spring 1.2
Time of Update: 2018-08-13
WebLogic串連池設定資料庫斷掉後自動重連設定: 進入某個串連池配置頁,進入“串連“頁,點擊進階選項的”show“顯示進階選項。 指定 “測試頻率” 並啟用 “測試保留的串連”、”測試建立的串連” 和 “測試釋放的串連”。 測試頻率(Test Frequency): 60 秒 自動資料庫連接測試之間的秒數(0 - 32 位正整數)。測試失敗的串連將被關閉,然後重新開啟以重建立立有效物理資料庫連接。(必須在下面指定測試表名稱。) The number of
Time of Update: 2018-08-13
代碼一搬家,就報這錯。之前幾次稀裡糊塗搞好忘記總結。 問題原因: http://yjzagan2003.iteye.com/blog/1114035 這個大哥寫好了:{
Time of Update: 2018-08-13
《設計模式精解》學習筆記(十二)------Singleton(單件)模式 GoF:保證一個類僅有一個執行個體,並提供一個訪問它的全域訪問點。 Singleton模式是比較簡單的。
Time of Update: 2018-08-13
用戶端通訊過程1.通過SocketConnector同伺服器端建立串連 2.連結建立之後I/O的讀寫交給了I/O Processor線程,I/O Processor是多線程的 3.通過I/O Processor讀取的資料經過IoFilterChain裡所有配置的IoFilter,IoFilter進行訊息的過濾,格式的轉換,在這個層面可以制定一些自訂的協議 4.最後IoFilter將資料交給Handler進行業務處理,完成了整個讀取的過程
Time of Update: 2018-08-13
設計模式 ----Mediator( 中介者 ) 模式 GoF : 用一個中介對象來封裝一系列的對象互動。中介者使各對象不需要顯示地互相引用,從而使其耦合鬆散,而且可以獨立地改變他們之間的互動。
Time of Update: 2018-08-13
1. int elements[ ] = { 1, 2, 3, 4, 5, 6 }; // 增大後的新數組 int hold[ ] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }; // 把elements數組中的所有元素複製到 // hold數組中,下標從0開始 System.arraycopy(elements, 0, hold, 0, elements.length); for(int
Time of Update: 2018-08-13
根據日常編程經驗,得出一些Delphi中關於資源釋放的體會。 假如有對象Obj為TObject類型: 1) Obj.Free直接釋放資源後,調用OnDestroy事件,但是沒有將Obj指標值置為Nil。 2) Obj.Release 等待資源不再使用後釋放資源,同樣不修改Obj指標為Nil,所以在OnDestroy中最好使用Release進行資源釋放操作。 3) 局部變數釋放資源時,可以考慮用FreeAndNil()釋放資源,這樣效率會高些,能提高記憶體的利用率。
Time of Update: 2018-08-13
delphi中關於資源釋放(Free/release/freeAndNil)的一點體會 經過這段時間對delphi中free 和 release 的仔細學習,先總結如下: 1。form.free直接釋放資源後,調用OnDestroy事件,但是沒有將form指標改為nil 2。form.release 等待資源不再使用後釋放資源,同樣不修改form指標為nil,所以在destroy中最好使用 release進行資源釋放操作。
Time of Update: 2018-08-13
create後一定要free嗎。 簡單舉例 procedure a; var x:TX; begin x:=TX.create; //do someting; x.free //如果我這裡不free,到了這個end不就是相當於C中的}自動釋放嗎。
Time of Update: 2018-08-13
--------------------------- Error --------------------------- Unable to create process. --------------------------- OK Details >> --------------------------- 如果你的作業系統是Win7而你又直接點擊運行按鈕的話會提示此錯誤。
Time of Update: 2018-08-13
tomcat 6的Connector配置如下 <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxThreads="800" acceptCount="10
Time of Update: 2018-08-13
尋找tomcat6安裝目錄下conf目錄中的server.xml檔案,進行編輯 屏蔽tomcat預設Connector: <!–Connector port=”8080″ protocol=”HTTP/1.1″ connectionTimeout=”20000″ redirectPort=”8443″ /--> 建立高線程的Connector: <Connector
Time of Update: 2018-08-13
如何解決連接埠衝突導致tomcat無法啟動的問題 Tomcat在啟動時主要使用下面的3個連接埠 < Server port = "8005" shutdown = "SHUTDOWN" debug = "0" > < Connector
Time of Update: 2018-08-13
尋找tomcat6安裝目錄下conf目錄中的server.xml檔案,進行編輯 屏蔽tomcat預設Connector: <!–Connector port=”8080″ protocol=”HTTP/1.1″ connectionTimeout=”20000″ redirectPort=”8443″ /--> 建立高線程的Connector: <Connector executor="tomcatThreadPool&
Time of Update: 2018-08-13
http://blog.csdn.net/accp_fangjian/article/details/43059381 解決方案如下: VERSION OF SPRING FACET COULD NOT BE DETECTED. The migration process needs to detect the correct version of Spring support used by a project. If the
Time of Update: 2018-08-13
1.概述 flume是cloudera公司的一款高效能、高可能的分布式日誌收集系統。 flume的核心是把資料從資料來源收集過來,再送到目的地。為了保證輸送一定成功,在送到目的地之前,會先快取資料,待資料真正到達目的地後,刪除自己緩衝的資料。 flume傳輸的資料的基本單位是event,如果是文字檔,通常是一行記錄,這也是事務的基本單位。
Time of Update: 2018-08-13
request.getsession(false)取得null的原因 有一次我直接在MyEclipse的Server中的項目右擊選擇 這時候開啟時URL如下: 也就是會變成雙線,這時驗證碼取得的session和loginservlet取得的session是不一樣的,所以會造成以上錯誤。 放置驗證碼:
Time of Update: 2018-08-13
http://www.d1net.com/server/news/451583.html 什麼是TCP並發 TCP並發是指一個伺服器同時“hold住”的串連數量,確切的說就是指伺服器端看到的“ESTABLISHED”狀態的TCP串連數量。通過netstat -n|grep ^tcp|awk '{print $NF}'|sort -nr|uniq