Index: ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapperMBean.java =================================================================== --- ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapperMBean.java (revision 102303) +++ ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapperMBean.java (working copy) @@ -28,6 +28,10 @@ */ public interface MdbDelegateWrapperMBean extends ServiceDelegateWrapperMBean { + int getMinSession(); + + int getMaxSession(); + int getMinPoolSize(); int getMaxPoolSize(); Index: ejb3/src/main/org/jboss/ejb3/mdb/MessagingContainer.java =================================================================== --- ejb3/src/main/org/jboss/ejb3/mdb/MessagingContainer.java (revision 102303) +++ ejb3/src/main/org/jboss/ejb3/mdb/MessagingContainer.java (working copy) @@ -342,6 +342,7 @@ protected static final String DESTINATION_TYPE = "destinationType"; protected static final String PROVIDER_ADAPTER_JNDI = "providerAdapterJNDI"; protected static final String MAX_SESSION = "maxSession"; + protected static final String MIN_SESSION = "minSession"; protected void initializePool() throws Exception { @@ -355,6 +356,14 @@ return property.getValue(); return "java:/DefaultJMSProvider"; } + + protected String getMinSession() + { + ActivationConfigPropertyMetaData property = (ActivationConfigPropertyMetaData)getActivationConfigProperties().get(MIN_SESSION); + if (property != null) + return property.getValue(); + return null; + } protected String getMaxSession() { Index: ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapper.java =================================================================== --- ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapper.java (revision 102303) +++ ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapper.java (working copy) @@ -72,4 +72,16 @@ { getMDB().stopDelivery(); } + + public int getMinSession() + { + String minSession = ((MDB)delegate).getMinSession(); + return (minSession == null) ? 1 : Integer.parseInt(minSession); + } + + public int getMaxSession() + { + String maxSession = ((MDB)delegate).getMaxSession(); + return (maxSession == null) ? 15 : Integer.parseInt(maxSession); + } }