org.objectweb.jonas.container
Class MessageDrivenBean

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.objectweb.jonas.management.ReconfigDispatcher
          extended byorg.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
              extended byorg.objectweb.jonas.container.EJB
                  extended byorg.objectweb.jonas.container.MessageDrivenBean
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean

public class MessageDrivenBean
extends EJB

This class implements the MessageDrivenBean type specified in JSR77

Author:
Adriana Danes

Field Summary
 
Fields inherited from class org.objectweb.jonas.container.EJB
desc, ejbToManage, fileName
 
Fields inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
MessageDrivenBean(java.lang.String objectName, JMdbEndpointFactory factoryToManage)
           
MessageDrivenBean(java.lang.String objectName, JMdbFactory factoryToManage)
           
 
Method Summary
 java.util.Set getAllJMSDestinationName()
          return all the destination used by this ejb, including his associate destination
 int getCacheSize()
           
 int getMaxCacheSize()
           
 java.lang.String getMdbJMSAssociateDestinationName()
           
 int getMinPoolSize()
           
 int getPoolSize()
           
 
Methods inherited from class org.objectweb.jonas.container.EJB
getAllDataSourceName, getAllJMSConnectionFactoryName, getAllMailFactoryMName, getAllMailFactorySName, getAllURLs, getCurrentInstancePoolSize, getDisplayName, getEjbClass, getFileName, getHomeClass, getJndiName, getLocalClass, getLocalHomeClass, getName, getRemoteClass
 
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
handleNotification, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDrivenBean

public MessageDrivenBean(java.lang.String objectName,
                         JMdbFactory factoryToManage)
Parameters:
objectName - JMX object name
factoryToManage - JMdbFactory factory to manage

MessageDrivenBean

public MessageDrivenBean(java.lang.String objectName,
                         JMdbEndpointFactory factoryToManage)
Parameters:
objectName - JMX object name
factoryToManage - JMdbEndpointFactory factory to manage
Method Detail

getMdbJMSAssociateDestinationName

public java.lang.String getMdbJMSAssociateDestinationName()
Returns:
the name of the associate destination

getAllJMSDestinationName

public java.util.Set getAllJMSDestinationName()
return all the destination used by this ejb, including his associate destination

Overrides:
getAllJMSDestinationName in class EJB
Returns:
String set with the name of the Ejb Destinations

getMinPoolSize

public int getMinPoolSize()
Returns:
min-pool-size value

getMaxCacheSize

public int getMaxCacheSize()
Returns:
max-cache-size value

getCacheSize

public int getCacheSize()
Returns:
nb of instances (current cache size)

getPoolSize

public int getPoolSize()
Returns:
pool-size value