下面的这道java面试题怎么做?
Whichofthefollowingstatementsregardingthelifecycleofasessionbeanarecorrect?1.java.lan...
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. 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. 展开
3个回答
展开全部
以下哪一个关于一个会话bean的生命周期是正确的吗?
1。java.lang.illegalstateexception如果将sessioncontext。getejbobject()时调用有状态会话bean实例的钝化。
2。sessioncontext getrollbackonly()。不抛出异常,当一个会话Bean管理的事务划分豆激活。
3。一个例外是不被当为sessioncontext getusertransaction()。容器豆afterBegin方法管理事务。
4。JNDI访问Java:压缩机/环境都是有状态会话bean的sessionsynchronization方法允许容器管理的事务划分。
5。资源管理器的访问有状态会话bean使用bean管理事务sessionsynchronization.afterbegin方法不会抛出异常。
1。java.lang.illegalstateexception如果将sessioncontext。getejbobject()时调用有状态会话bean实例的钝化。
2。sessioncontext getrollbackonly()。不抛出异常,当一个会话Bean管理的事务划分豆激活。
3。一个例外是不被当为sessioncontext getusertransaction()。容器豆afterBegin方法管理事务。
4。JNDI访问Java:压缩机/环境都是有状态会话bean的sessionsynchronization方法允许容器管理的事务划分。
5。资源管理器的访问有状态会话bean使用bean管理事务sessionsynchronization.afterbegin方法不会抛出异常。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
很简单。跟我念:
Please speak Chinese。
Please speak Chinese。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
英文醉了:Please speak Chinese。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询