org.objectweb.jonas.container
Class StatelessSessionBean

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.SessionBean
                      extended byorg.objectweb.jonas.container.StatelessSessionBean
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean

public class StatelessSessionBean
extends SessionBean

This class implements the StatelessSessionBean 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
StatelessSessionBean(java.lang.String objectName, JStatelessFactory factoryToManage)
           
 
Method Summary
 int getMaxPoolSize()
          Accessor for bean instances pool management.
 int getMinPoolSize()
          Accessor for bean instances pool management.
 int getNbInstances()
          Accessor for bean instances pool management.
 void reducePoolToMinSize()
          Operation for bean instances pool management.
 
Methods inherited from class org.objectweb.jonas.container.SessionBean
getSessionTimeOut, setSessionTimeOut
 
Methods inherited from class org.objectweb.jonas.container.EJB
getAllDataSourceName, getAllJMSConnectionFactoryName, getAllJMSDestinationName, 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

StatelessSessionBean

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

getMinPoolSize

public int getMinPoolSize()
Accessor for bean instances pool management.

Returns:
the minimum size of the bean instances pool.

getMaxPoolSize

public int getMaxPoolSize()
Accessor for bean instances pool management.

Returns:
the maximum size of the bean instances pool

getNbInstances

public int getNbInstances()
Accessor for bean instances pool management.

Returns:
the current number of created bean instances

reducePoolToMinSize

public void reducePoolToMinSize()
Operation for bean instances pool management. Allows reducing the number of instances.