Liên kết ở trên khá lỗi thời. Đối với WebLogic 12c, bạn có thể xác định thời gian chờ giao dịch trong bộ mô tả giao dịch cho mỗi EJB trong bộ mô tả triển khai WebLogic weblogic-ejb-jar.xml, xem weblogic-ejb-jar.xml Deployment Descriptor Reference.
Đối với một thông điệp điều khiển được nó trông như thế này:
<weblogic-enterprise-bean>
<ejb-name>TestMessageBeanLow</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>1</max-beans-in-free-pool>
</pool>
<destination-jndi-name>jms/ActiveMQ/TestRequestQueue_LOW</destination-jndi-name>
<connection-factory-jndi-name>jms/ActiveMQ/TestConnectionFactory</connection-factory-jndi-name>
</message-driven-descriptor>
<transaction-descriptor>
<trans-timeout-seconds>60</trans-timeout-seconds>
</transaction-descriptor>
<resource-description>
<res-ref-name>jms/ConnectionFactory</res-ref-name>
<jndi-name>jms/ActiveMQ/TestConnectionFactory</jndi-name>
</resource-description>
</weblogic-enterprise-bean>
Nếu bạn không thể thiết lập thời gian chờ với giao diện điều khiển, xem [câu trả lời này] (http://stackoverflow.com/a/17580412/1782379). – bsiamionau