资源简介
环境是: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\me
文件 2797 2015-12-02 21:00 cheshi\build.xm
文件 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\me
文件 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.xm
文件 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.xm
文件 68068 2015-12-02 21:00 cheshi\cheshi-ejb\nbproject\build-impl.xm
文件 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.xm
文件 4714 2015-12-02 21:00 cheshi\cheshi-ejb\nbproject\project.properties
文件 619 2015-12-02 21:00 cheshi\cheshi-ejb\nbproject\project.xm
文件 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\me
文件 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个文件信息
- 上一篇:mygps.zip
- 下一篇:QT读取数据并绘制曲线
相关资源
- 清翔电子MCS51开发板资料_新版 01_开发
- PCIe速度测试例程
- Labview与CH372CH375的通信测试
- 德卡D3读卡器测试程序驱动文件
- stm32 ds18b20 温度传感器 测试通过
- ADNS-3080光流传感器测试程序Arduino
- 一个测试报告的模板,有点用
- 音频测试软件
- GIS项目开发文档(分析、设计、实现
- 2410的led测试程序keil可以用
- 报文模拟仿真测试工具2.0
- 短信测试软件
- 硬件测试面试常见题PDF
- Junit4单元测试
- 软件方法测试RTX时钟
- 软件工程文档模板1可行性研究报告
- 历年深信服软件测试师考试题
- VC 6 Modbus RTU测试程序
- 小学数学测试成绩查询软件
- 一个不错的测试用例计划——物业管
- 哲学家进餐问题 算法 vc源代码 测试通
- CD7110客显测试程序
- 软件开发过程文档(开发大纲 编写规
- pb (powerbuilder) 编写的自动转台控制
- 学生心理测试系统!!!
- 物业管理系统测试计划范文
- autoit自动化测试小工具及帮助(二)
- 61850客户端服务端测试程序
- EM算法,能够比较准确的实现对二维数
- OpenSaml使用引导,及测试IDP,SP源码
评论
共有 条评论