原创 sql 腳本-- 變量所有表進行操作
最近,工作中有個需求,需要刪除表結構,重新導入數據。在俊哥指導下,有了以下的sql腳本,記錄之。 declare t1 user_tables%rowtype; t2 varchar2(100);
原创 Unix操作系統中sar命令
http://os.51cto.com/art/201004/193682.htm http://hi.baidu.com/handenzhou/blog/item/ff7dd7f830b5d653242df27a.html
原创 同步IO與異步IO的區別
首先要明確一點:不同IO模型之間的差別本質上是CPU的參與方式 這裏重點說一下各自的應用場景 如何選擇同步還是異步呢? 主要有這麼幾個指標供參考 1. 併發數量 2. 接收字節數 3. 處理請求所需CPU時間 我們一個一個來考察 併發數
原创 Brief Introduction for jax-ws,jax -rs and iax-rpc
JAX-RPC is a dead standard that has been pruned in Java EE 6 (and might thus be removed from future versions).
原创 開發WebService兩種開源工具CXF和Axis2的比較
在SOA領域,我們認爲Web Service是SOA體系的構建單元(building block)。對於服務開發人員來說,AXIS和CXF一定都不會陌生。這兩個產品都是Apache孵化器下面的Web Service開源開發工
原创 What is JMS good for?
In my opinion JMS and other message-based systems are intended to solve problems that need: Asynchronous communication
原创 Comparison between Apache Axis2 and Apache cxf on stack flow
Keep in mind, I'm completely biased (PMC Chair of CXF), but my thoughts: From a strictly "can the project do what I nee
原创 Axis 開發soap web service: incompitable interface問題
During the soap web service development by axis 1, we met the issue for incompitable interface. http://blog.cs
原创 java併發編程實踐筆記
1, 保證線程安全的三種方法 :a, 不要跨線程訪問共享變量b, 使共享變量是 final類型的c, 將共享變量的操作加上同步 2, 一開始就將類設計成線程安全的 , 比在後期重新修復它 ,更容易 . 3, 編寫多線程程序 , 首先保證
原创 Top命令詳解
以下是Top top - 09:19:42 up 19 days, 11:03, 3 users, load average: 1.37, 1.54, 1.61Tasks: 214 total, 3 running, 211 sl
原创 Log4j Short Mannual
http://logging.apache.org/log4j/1.2/manual.html http://logging.apache.org/log4j/1.2/faq.htm 點贊 收藏 分享
原创 Restlet 2.0 與 Spring集成,並遵循JAX-RS標準,JSR311
先聲明我只是給出一個work-around plan,還有些不盡如人意的地方(文章最後會指出)。 首先,給出web.xml 和spring cofng xml web.xml <?xml v
原创 Shallow talk about the popular test coverage tool
the incompalibility between powermok and emma can not co-exist the mock object with java reflect Emma is inactive proje
原创 javascript : instanceof和typeof的區別
instanceof和typeof都能用來判斷一個變量是否爲空或是什麼類型的變量。 typeof用以獲取一個變量的類型,typeof一般只能返回如下幾個結 果:number,boolean,string,function,ob
原创 Xml Parser by leverging Xpath
File jarFile = new File(getClass().getProtectionDomain().getCodeSource().getLocation().getPath());