在有状态session bean的生命周期内.不同客户端之间不会相互干扰..
解决方案 »
- spring发送邮件问题
- 关于用LOMBOZ ECLIPSE连接MySQL数据库数据乱码问题
- jsp 显示xml问题????????????
- 研究过tomcat内存管理的人过来瞧瞧,呵呵
- 学习J2EE的方法之我见--xp1204,希望对新人有帮助,写了两个晚上.
- resin中如何将特定的目录加入CLASSPATH中(在web.xml中配置),使web程序能找到
- struts上传文件抛Read timed out异常,请关注!
- 舍不得啊,以后不做J2EE了,散分
- 连接数据库的JavaBean中使用数据源时的Connection回收问题
- 寻求J2EE直观认识(急)
- 一个关于tomcat的简单问题
- 组建点石软件虚拟股份公司的公告
上面那段代码除了VALUE变量定义上不同外,没有别的不同啊,请问有状态和无状态在编写代码时的区别在哪里呢?
是不是和环境上下文变量有关系?
you can define servral ejbCreate..(..) methods, and each can take different
arguments, however, you must provide at least one ejbCreate..(..) method in you session bean
and, inversely with stateless session bean's ejbCreate(), you can only define a single empty ejbCreate() method with no parameters.
if it had parameters, and the bean initialized itself to those parameters, the bean would never remember what it initialized itself to upon subsequent calls, since it is stateless