360doc--lygivw的文章 http://www.ahfyzs.com/rssperson/20080.aspx 360doc (http://www.ahfyzs.com) zh-cn 360doc--個人圖書館 安裝openi http://www.ahfyzs.com/content/10/0728/16/1973531_42058268.shtml 2014/7/14 9:28:24
安裝openi.users.properties : contains user entries as user_name=user_password roles.properties : contains role entries as user_name=role_1,role_2,role_n (OpenI requires roles "openi" and "app_admin" for admin user) To customize JBoss authentication using JDBC database (i.e. user logins and role definitions stored in relational database tables), see the following section for details.
IBM Rational AppScan安全報告 http://www.ahfyzs.com/content/13/0411/14/1107705_277582951.shtml 2013/5/28 9:26:13
}value = value.replaceAll("\\|", "");value = value.replaceAll("&", "&amp;");value = value.replaceAll(";", "");value = value.replaceAll("@", "");value = value.replaceAll("''", "");value = value.replaceAll("\"", "");value = value.replaceAll("\\''", "");value = value.replaceAll("\\\"", "");value = value.replaceAll("<", "&lt;");
JDK1.5新特性--java.util.concurrent BlockingQue... http://www.ahfyzs.com/content/08/0113/11/15643_969109.shtml 2010/12/10 10:50:33
import java.util.concurrent.public void scanFile(File file) { if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirectory() || pathname.getPath().endsWith(&quot;.java&quot;);
JDK1.5新特性--java.util.concurrent ExecutorCom... http://www.ahfyzs.com/content/08/0113/11/15643_969119.shtml 2010/12/10 10:50:05
import java.util.concurrent.CompletionService&lt;String&gt; serv = new ExecutorCompletionService&lt;String&gt;(exec);Callable&lt;String&gt; downImg = new Callable&lt;String&gt;() { public String call() throws Exception { Thread.sleep((long) (Math.random() * 10000));運行結(jié)果:Show web contentDownloaded Image 1Downloaded Image 2Downloaded Image 4Downloaded Image 0Downloaded Image 3E
JDK1.5新特性--java.util.concurrent Semaphore(7... http://www.ahfyzs.com/content/08/0113/11/15643_969120.shtml 2010/12/10 10:49:07
下面的Demo中申明了一個只有5個許可的Semaphore,而有20個線程要訪問這個資源,通過acquire()和release()獲取和釋放訪問許可。運行結(jié)果:Accessing: 0Accessing: 1Accessing: 2Accessing: 3Accessing: 4Accessing: 5Accessing: 6Accessing: 7Accessing: 8Accessing: 9Accessing: 10Accessing: 11Accessing: 12Accessing: 13Accessing: 14Accessing: 15Accessing: 16Accessing: 17Accessing: 18Accessing: 19.
JDK1.5新特性--java.util.concurrent CountDownLa... http://www.ahfyzs.com/content/08/0113/11/15643_969111.shtml 2010/12/10 10:47:32
從名字可以看出,CountDownLatch是一個倒數(shù)計數(shù)的鎖,當?shù)箶?shù)到0時觸發(fā)事件,也就是開鎖,其他人就可以進入了。CountDownLatch最重要的方法是countDown()和await(),前者主要是倒數(shù)一次,后者是等待倒數(shù)到0,如果沒有到達0,就只有阻塞等待了。運行結(jié)果:Game StartNo.4 arrivedNo.1 arrivedNo.7 arrivedNo.9 arrivedNo.3 arrivedNo.2 arrivedNo.8 arrivedNo.10 arrivedNo.6 arrivedNo.5 arrivedGame Over.
JDK1.5新特性--java.util.concurrent Future(5) http://www.ahfyzs.com/content/08/0113/11/15643_969114.shtml 2010/12/10 10:45:39
package concurrent;import java.util.concurrent.Callable&lt;String&gt; call = new Callable&lt;String&gt;() { public String call() throws Exception { Thread.sleep(1000 * 5);// 重要的事情 Thread.sleep(1000 * 3); System.out.println(&quot;Let's do important things.&quot;); // 其他不重要的事情 String obj = task.get(); System.out.println(obj); // 關(guān)閉線程池 exec.shutdown(); }}
跳槽的技巧——平穩(wěn)淡出公司10要點 http://www.ahfyzs.com/content/07/1008/09/20080_795665.shtml 2007/10/8 9:33:28
只有拿到并簽署了新公司的Offer,你才能向現(xiàn)公司提出辭職。向自己的直接老板辭職。找老板有空的時候,單獨面對面提交辭職報告。這是對老板的尊重,也有助于了解老板的反應。不要用電話或電子郵件發(fā)辭職報告。當你提出走人,如果你對公司和老板很重要,老板會真誠地了解你對公司、對他的意見,不要說任何不滿。老板還會很誠懇地問你,有什么抱怨,意見,千萬不要說太多,最好什么都不說,反而要贊美和感謝公司和老板為你做的一切。
InfoQ: 用Spring 2.0和AspectJ簡化企業(yè)應用程序 http://www.ahfyzs.com/content/07/1007/23/20080_795343.shtml 2007/10/7 23:37:05
用Spring 2.0和AspectJ簡化企業(yè)應用程序。xmlns:aop=&quot;http://www.springframework.org/schema/aop&quot; xsi:schemaLocation= &quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd&quot;&gt;Method.invoke(Unknown Source)at org.springframework.aop.aspectj.
WebSphere ESB 入門:創(chuàng)建 POJO 并將其作為服務發(fā)布 http://www.ahfyzs.com/content/07/0322/09/20080_408145.shtml 2007/3/22 9:51:50
了解如何將服務組件與獨立引用相關(guān)聯(lián),以及如何使用獨立引用跨 ESB 訪問服務。在 WebSphere ESB 中發(fā)布的每個服務組件都具有一個定義良好的接口。我們可以在 WebSphere Integration Developer 中為上述服務組件創(chuàng)建接口 TemperatureConverterInterface: 圖 2. 使用 New Java Interface Wizard 創(chuàng)建 WSDL 接口。通過本文,您已經(jīng)了解了如何使用自底向上方法(從接口到實現(xiàn))創(chuàng)建服務組件以及如何在 IBM WebSphere ESB 中發(fā)布它。