Web相关
Tomcat load balance/cluster/fail off 2. SSO based on CAS tomcat JBoss portal SSL 3. Acegi filter / JAAS 4.
IBM SOA 产品线
Model Phase Websphere Business Modeler Rational Software Architect 2. Assemble Phase Rational Appliction Developer Websp...
Hibernate笔记
inverse=true | false 2. cascade 3. lazy-loading 4. session-per-request & open session filter 5. transaction demarcation
多线程等待机制
现有一个遗留系统中,用到了很多多线程。其中等待机制是这么做的: 1. 主线程在需要等待的时候,先开启一个等待线程。初始化时预定一个时间。等待线程启动后立刻 wait()/wait(nTime). 2. 主线程 join 等待线程 3. 外部事件到达时,interrupt 等待线程。E...
Message Broker
Message Broker based on RMI
database batching insert
In DB2, e.g if you issue below sql statement 100 times, insert into TableA (id , fields) values (1, ‘val1’); insert into TableA (id , fields) value...
LDAP command
#install ldap 1. install BerkeleyDB.4.6 2. add /usr/local/BerkeleyDB.4.6/lib to /etc/ld.so.conf, then execute ldconfi...
RMI Implementation
RMI provides the solution of communication between Java processes. For building a RMI Server/Client Application, below steps are considered: 1...
日志系统
异步log to file 1. 启动一个多线程,维护一个List列表。List中存放的是需要log的字符串。早期用Vector来考虑同步的问题,甚至可以包装Vector。加入wait/notify机制。 2. 主程序启动时打开文件,主程序结束时关闭文件。其他还有异常,rotate ...
获取java程序的系统参数
执行java程序时传入的系统参数可以通过以下方式在程序中获取: java -D参数1=值1 java程序名 Properties props = new Properties(System.getProperties()); String outputMode &...