JRMPReverseConnectTest.java 文件源码

java
阅读 16 收藏 0 点赞 0 评论 0

项目:APacheSynapseSimplePOC 作者:
public void run ( Callable<Object> payload ) throws Exception {
    JRMPListener l = new JRMPListener(port, new BadAttributeValueExpException("foo"));
    Thread t = new Thread(l, "JRMP listener");
    try {
        t.start();
        try {
            payload.call();
        }
        catch ( Exception e ) {
            // ignore
        }
        Assert.assertTrue("Did not have connection", l.waitFor(1000));
    }
    finally {
        l.close();
        t.interrupt();
        t.join();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号