jms - How to restrict pool size of MDB on Glassfish v3 -


my message driven bean executes highly intensive operations restrict it's pool size or server have been overloaded. have tried ( code ) doesn't work, it's pool still 32 ( empirically tested, time time restart server there no pooled instances ).

@messagedriven( mappedname = "jms/testtopic", activationconfig = {     @activationconfigproperty( propertyname = "acknowledgemode", propertyvalue = "auto-acknowledge" ),     @activationconfigproperty( propertyname = "destinationtype", propertyvalue = "javax.jms.topic" ),     @activationconfigproperty( propertyname = "subscriptiondurability", propertyvalue = "durable" ),     @activationconfigproperty( propertyname = "clientid", propertyvalue = "reader" ),     @activationconfigproperty( propertyname = "subscriptionname", propertyvalue = "reader" ),     @activationconfigproperty( propertyname = "endpointpoolmaxsize", propertyvalue = "1" ),     @activationconfigproperty( propertyname = "endpointpoolresizecount", propertyvalue = "1" ),     @activationconfigproperty( propertyname = "endpointpoolsteadysize", propertyvalue = "0" ) } ) public class reader implements messagelistener { 

i using ejb 3 on glassfish v3 on jdk 6. application uses ee 6 standard.

can me how restrict pool, please? help.

i recommend creating sun-ejb-jar.xml , put pool configuration in there. see bean-pool in http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_1-0.dtd raw, gory details. see bean-pool in http://download.oracle.com/docs/cd/e19798-01/821-1750/6nmnbjlfi/index.html details, nicely polished.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -