我找到了为Jboss版本EAP 6.0创建和编辑bean池配置的解决方案
Worker MDB:
@MessageDriven(activationConfig = { @ActivationConfigProperty(prop ertyName="destinationType" , propertyValue="javax.jms.Queue"), @ActivationConfigProperty(propertyName="destination" , propertyValue="queue/replenish") @ActivationConfigProperty(prop ertyName=”minSessions” , propertyValue=”25”) @ActivationConfigProperty(prop ertyName=”maxSessions” , propertyValue=”50”) })
对于Jboss EAP 7.0和Jboss AS 6.1.0.Final,我需要相同的解决方案吗? [如何使用管理控制台和CLI工具为Jboss EAP 7.0和Jboss AS 6.1.0.Final创建或编辑bean池,“创建Bean池”和“编辑Bean池”? slsb-strict-max-pool mdb-strict-max-pool]
1 回答
我找到了这个解决方案,但@pool是基于Jboss特定的注释
在链接中找到:http://docs.jboss.org/ejb3/docs/reference/1.0.7/html/SessionBean_and_MDB_configuration.html
请建议上面解释注释是否是实现和使用strictMaxPool或NOT的正确方法?
如果它不是正确的方式那么我如何配置相同的“strictMaxPool”通过xml文件或配置文件或注释为基础?