Show Table of Contents
23.4. 配置 Session Bean
23.4.1. Session Bean 访问超时
Stateful 和 Singleton Session Bean 有一个用于管理并行访问的访问超时值。这个值指定对 Session Bean 的方法的请求超时前阻塞的时间。
超时值和单位可以用
@javax.ejb.AccessTimeout 注解指定。它可以在 Session Bean(应用于所有的方法)或某个方法上指定来覆盖 Bean 的配置。
如果没有指定,JBoss EAP 6 将提供一个默认的超时值 5000 毫秒。
请参考 AccessTimeout 的 Javadocs:http://docs.oracle.com/javaee/6/api/javax/ejb/AccessTimeout.html

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.