Java
alexgreenbar
这个作者很懒,什么都没留下…
展开
-
DB2 JDBC driver's bug?, Connection is closed
I use code(DB2 JDBC 4 type driver): [code] Connection conn = ...; Statement stat = conn.prepareCall(query); state.execute(); ... resultSet.getMetaData(); [/code] and I get exception like: [...2007-11-28 14:05:00 · 346 阅读 · 0 评论 -
a simple program reveal thread synchronization
Here's a simple program but reveal thread synchronization mechanism: - only one thread can enter critical region at a fix time - two thread enter critical region one by one, and loop - the time won...2007-11-20 13:12:25 · 103 阅读 · 0 评论 -
Is this a good/right way to use generic interface?
I have a generic interface like: [code] public interface Ia { public void add(E element); public E get(); } [/code] I can implement it like: 1. [code] public class A implements I...2007-09-06 17:38:00 · 117 阅读 · 0 评论 -
A simple sample show generic interface usage
generic class is common so far, but generic interface is a little bit confused, the program below make concept clearly: [code] public interface Ia { public void add(E element); public E ...2007-09-06 17:12:53 · 130 阅读 · 0 评论 -
java remote debug in jdk 5.0
Two ways we can use now: 1. use java listen to a port, let jdb connect to it [code] $java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y Demo Listening for transport dt_socket at address: 3...2007-08-08 14:22:55 · 79 阅读 · 0 评论 -
hard to resolve method signature conflict in two interfaces
sometimes, it need implement two interfaces, like: [code] public interface IAface { public static final String A = "AFACE"; public int doSmile(); } public interface IBface { public st...2007-08-08 10:06:00 · 104 阅读 · 0 评论 -
Re: CXF 2.0 发布了
some history: objectweb Celtix -> objectweb Celtix + codehaus Xfire -> Apache CeltiXire -> Apache CXF2007-07-24 11:41:10 · 106 阅读 · 0 评论 -
create java Thread dump
生成Thread Dump在不同的操作系统中做起来也不同。在Windows中,是在JVM运行的控制台窗口中按下Ctrl-Break。对基于Linux和Unix的系统,则用kill命令将SIGQUIT发送到JVM。这可以通过命令kill – 3 完成,这里的pid是JVM的进程ID...2007-12-12 13:17:51 · 155 阅读 · 0 评论