• 大小: 65KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-24
  • 语言: 其他
  • 标签: 测试  

资源简介

环境是:netbeans8.1,NetBeans自带glassfish4.1,JDK7 输出老是1,不能递增+1,也即是有状态会话bean不能保存状态,请各位大哥帮忙看看,问题在哪?

资源截图

代码片段和文件信息

/*
 * To change this license header choose License Headers in Project Properties.
 * To change this template file choose Tools | Templates
 * and open the template in the editor.
 */
package abc;

import javax.ejb.Stateful;

/**
 *
 * @author yw
 */
@Stateful
public class SessionBean implements SessionBeanLocal {

    private int i = 0;

    @Override
    public int getI() {
        i++;
        System.out.println(i);
        return i;
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3085  2015-12-03 08:53  cheshi\build\cheshi-ejb.jar

     文件       5818  2015-12-03 08:53  cheshi\build\cheshi-war.war

     文件          0  2015-12-03 08:53  cheshi\build\gfv3ee6.dpf

     文件         23  2015-12-03 08:36  cheshi\build\meta-INF\MANIFEST.MF

     文件       2797  2015-12-02 21:00  cheshi\build.xml

     文件          0  2015-12-03 08:53  cheshi\cheshi-ejb\build\classes\.netbeans_automatic_build

     文件          0  2015-12-03 08:53  cheshi\cheshi-ejb\build\classes\.netbeans_update_resources

     文件        681  2015-12-03 08:53  cheshi\cheshi-ejb\build\classes\abc\SessionBean.class

     文件        198  2015-12-03 08:53  cheshi\cheshi-ejb\build\classes\abc\SessionBeanLocal.class

     文件        103  2015-12-03 08:36  cheshi\cheshi-ejb\build\classes\meta-INF\MANIFEST.MF

     文件        705  2015-12-03 08:53  cheshi\cheshi-ejb\build\classes\session\NewSessionBean.class

     文件        208  2015-12-03 08:53  cheshi\cheshi-ejb\build\classes\session\NewSessionBeanLocal.class

     文件       3245  2015-12-02 21:00  cheshi\cheshi-ejb\build.xml

     文件       3085  2015-12-03 08:53  cheshi\cheshi-ejb\dist\cheshi-ejb.jar

     文件       6784  2015-12-02 21:00  cheshi\cheshi-ejb\nbproject\ant-deploy.xml

     文件      68068  2015-12-02 21:00  cheshi\cheshi-ejb\nbproject\build-impl.xml

     文件        469  2015-12-02 21:00  cheshi\cheshi-ejb\nbproject\genfiles.properties

     文件        598  2015-12-02 21:00  cheshi\cheshi-ejb\nbproject\private\private.properties

     文件        565  2015-12-03 08:55  cheshi\cheshi-ejb\nbproject\private\private.xml

     文件       4714  2015-12-02 21:00  cheshi\cheshi-ejb\nbproject\project.properties

     文件        619  2015-12-02 21:00  cheshi\cheshi-ejb\nbproject\project.xml

     文件         23  2015-12-02 21:00  cheshi\cheshi-ejb\src\conf\MANIFEST.MF

     文件        477  2015-12-02 21:09  cheshi\cheshi-ejb\src\java\abc\SessionBean.java

     文件        336  2015-12-02 21:04  cheshi\cheshi-ejb\src\java\abc\SessionBeanLocal.java

     文件        454  2015-12-03 08:36  cheshi\cheshi-war\build\web\a.xhtml

     文件        445  2015-12-03 08:36  cheshi\cheshi-war\build\web\b.xhtml

     文件        103  2015-12-03 08:36  cheshi\cheshi-war\build\web\meta-INF\MANIFEST.MF

     文件          0  2015-12-03 08:53  cheshi\cheshi-war\build\web\WEB-INF\classes\.netbeans_automatic_build

     文件          0  2015-12-03 08:53  cheshi\cheshi-war\build\web\WEB-INF\classes\.netbeans_update_resources

     文件        582  2015-12-03 08:53  cheshi\cheshi-war\build\web\WEB-INF\classes\a\A.class

............此处省略108个文件信息

评论

共有 条评论