[jboss-cvs] JBossAS SVN: r102408 - branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Mar 15 11:06:45 EDT 2010
Author: bshim
Date: 2010-03-15 11:06:45 -0400 (Mon, 15 Mar 2010)
New Revision: 102408
Modified:
branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapper.java
branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapperMBean.java
branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MessagingContainer.java
Log:
JBPAPP-1834 attributes minSession maxSession show up via jmx-console
Modified: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapper.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapper.java 2010-03-15 14:43:16 UTC (rev 102407)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapper.java 2010-03-15 15:06:45 UTC (rev 102408)
@@ -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);
+ }
}
Modified: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapperMBean.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapperMBean.java 2010-03-15 14:43:16 UTC (rev 102407)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MdbDelegateWrapperMBean.java 2010-03-15 15:06:45 UTC (rev 102408)
@@ -28,6 +28,10 @@
*/
public interface MdbDelegateWrapperMBean extends ServiceDelegateWrapperMBean
{
+ int getMinSession();
+
+ int getMaxSession();
+
int getMinPoolSize();
int getMaxPoolSize();
Modified: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MessagingContainer.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MessagingContainer.java 2010-03-15 14:43:16 UTC (rev 102407)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/mdb/MessagingContainer.java 2010-03-15 15:06:45 UTC (rev 102408)
@@ -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()
{
More information about the jboss-cvs-commits
mailing list