Changing Beans

32 views
Skip to first unread message

Ryan Cuprak

unread,
Jul 27, 2017, 12:19:50 AM7/27/17
to Payara Forum
Is it possible to change a bean's pool size without repackaging and re-deploying? For example, if I set the max pool size for a particular MDB to 35 via glassfish-ejb-jar.xml but then need to tune this in production, is it possible to make a via either the web or command line interface? 

Thanks,
-Ryan

Ondro Mihályi

unread,
Aug 7, 2017, 6:29:14 AM8/7/17
to Payara Forum
Hi Ryan,

To be honest, I don't think this is possible. AFAIK, from admin console, it's only possible to set default pool size values for all MDBs globally. Per MDB, it's only possible to specify the values using the deployment descriptor.

However, you can provide an alternate deployment descriptor during deployment. This is supported in the "asadmin deploy" command with the "--altdd" argument. Therefore it's possible to tweak MDBs without repackaging, but it requires redeploying the app. The Admin console doesn't provide means to do that in the UI.

Ondro

Steve Millidge

unread,
Aug 30, 2017, 4:34:07 PM8/30/17
to Payara Forum
This is probably a pretty simple enhancement request if only increases are allowed from the maximum.

If you care to take it on the relevant class is here ;-);
https://github.com/payara/Payara/blob/master/appserver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/util/pool/NonBlockingPool.java

Alternatively raise a GitHub issue and I'll mark it as an enhancement.
Reply all
Reply to author
Forward
0 new messages