生成Thread Dump在不同的操作系统中做起来也不同。在Windows中,是在JVM运行的控制台窗口中按下Ctrl-Break。对基于Linux和Unix的系统,则用kill命令将SIGQUIT发送到JVM。这可以通过命令kill – 3 完成,这里的pid是JVM的进程ID
I use code(DB2 JDBC 4 type driver):
Connection conn = ...;
Statement stat = conn.prepareCall(query);
state.execute();
...
resultSet.getMetaData();
and I get exception like:
com.ibm.db2.jcc.b.SqlException: [ibm][db2][jcc][10335][10366] Invalid
operation: Connection is closed.
at com.ibm. ...
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't affect thread synchronization
- two thread work together like pass ball
package com.demo.thread;
...
I have a generic interface like:
public interface Ia<E> {
public void add(E element);
public E get();
}
I can implement it like:
1.
public class A implements Ia {
public void add(Object element) {
}
public Object get() {
return null;
}
}
2 ...
generic class is common so far, but generic interface is a little bit confused, the program below make concept clearly:
public interface Ia<E> {
public void add(E element);
public E get();
}
public interface Ib<T> extends Ia<T> {
public void myString();
}
public cl ...
Two ways we can use now:
1. use java listen to a port, let jdb connect to it
$java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y Demo
Listening for transport dt_socket at address: 33586
$jdb -attach 33586
2. use jdb listen to a port, let java connect to it
$jdb -listen 9090
$ja ...
sometimes, it need implement two interfaces, like:
public interface IAface {
public static final String A = "AFACE";
public int doSmile();
}
public interface IBface {
public static final String B = "BFACE";
public String doSmile();
}
usually, it can be done like:
public cla ...
some history:
objectweb Celtix -> objectweb Celtix + codehaus Xfire -> Apache CeltiXire -> Apache CXF
- 浏览: 24945 次
- 性别:


- 详细资料
搜索本博客
最近加入圈子
最新评论
-
I'm back
Hi Jnn,Are you still working on CXF/Came ...
-- by alexgreenbar -
I'm back
IONA just closed China office, but there ...
-- by jnn -
How to design your own e ...
Good article。Thank youI know how to deve ...
-- by reverocean -
I'm back
Nice to here u again. welcome back.
-- by fat1 -
I'm back
CORBA(Orbix) is just an old product of I ...
-- by alexgreenbar






评论排行榜