question no: 7
which of the following statements regarding the lifecycle of a session bean are correct?
1. java.lang.illegalstateexception is thrown if sessioncontext.getejbobject is invoked when a stateful session bean instance is passivated.
2. sessioncontext.getrollbackonly does not throw an exception when a session bean with bean-managed transaction demarcation is activated.
3. an exception is not thrown when sessioncontext.getusertransaction is called in the afterbegin method of a bean with container-managed transactions.
4. jndi access to java:comp/env is permitted in all the sessionsynchronization methods of a stateful session bean with container-managed transaction demarcation.
5. accessing resource managers in the sessionsynchronization.afterbegin method of a stateful session bean with bean-managed transaction does not throw an exception.
第二部分:概念题
1. 描述struts体系结构?对应各个部分的开发工作主要包括哪些?
2. xml包括哪些解释技术,区别是什么?
3. jsp有哪些内置对象和动作?它们的作用分别是什么?
4、sql问答题
selectfrom table
和
selectfrom table
where name like ’%%’ and addr like ’%%’
and
的检索结果为何不同?
5、sql问答题
表结构:
1、 表名:g_cardapply
字段:
g_applyno varchar 8;//申请单号(关键字)
g_applydate bigint 8;//申请日期
g_state varchar 2;//申请状态
2、 表名:g_cardapplydetail
字段:
g_applyno varchar 8;//申请单号(关键字)
g_name varchar 30;//申请人姓名
g_idcard varchar 18;//申请人身份证号
g_state varchar 2;//申请状态
其中,两个表的关联字段为申请单号。
题目:
1、 查询身份证号码为440401430103082的申请日期
2、 查询同一个身份证号码有两条以上记录的身份证号码及记录个数
3、 将身份证号码为440401430103082的记录在两个表中的申请状态均改为07
4、 删除g_cardapplydetail表中所有姓李的记录
广告咨询:QQ:721800271
版权声明:
凡注明来源为"www.zzredu.com"、"郑州教育网"的所有文字、图片、音视频、美术设计和程序等作品,版权均属郑州教育网或相关权利人专属所有或持有所有。未经本网书面授权,不得进行一切形式的下载、转载或建立镜像。否则以侵权论,依法追究相关法律责任。