How do I configure the max pool size of a MDB?
-MDB1.class -> max of 5 beans in pool
-MDB2.class -> max of 10 beans in pool
I need to configure limit of MDB in pool.
I use Glassfish V3 and JVM6.
Have you tried "asadmin set ... "?
$ asadmin get 'configs.config.cluster1-config.mdb-container.*'
The above get command shows the current setttings for mdb-container. You can use "asadmin set" to modify them.
I believe this configuration is for all MDBs in the EJB Container. What if I had 2 MDBs but I wanted one of them to have less or more priority of the pool. I mean, of a pool of 50 beans available, one MDB would use 10 and the other 40.
You can set it for individual mdb in sun-ejb-jar.xml
ok it did work using that sun-ejb-jar.xml, thanks. Now lets say I deployed my application and I forgot what was the max pool size of that MDB. Is there any way to find out?
You can try viewing it in admin console under Applications | yourApp, then choose descriptor. Not sure if sun-ejb-jar.xml data is available there.
I usually look at internal files in domain1/applications/yourApp, or domain1/generated/yourApp
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.