在weblogic的console里面把time out时间设长点即可。

解决方案 »

  1.   

    该方法的container transaction是required,是不是问题所在呢?
    在这种模式下,你不能编写事务
    这由容器管理
    代码如下
    try{
    .........//多表操作
    }catch(Exception e){
      ctx.rollbackOnly()
    }即可
    如果是bean管理
    代码如下
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    h.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
    ctx = new InitialContext(h);
    Usertransction tu = (transctionUser )ctx.lookup("javax.transction.UserTrasction");
    try{tu.begin();
    .........//多表操作
    tu.commit();}catch(Exception e){
    tu.rollback();
    }
    我测试过了,运行很好!!